diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/CHANGELOG.md b/sdk/compute/azure-resourcemanager-compute-bulkactions/CHANGELOG.md
index 5cb7ea06fea0..f80a01bc8d59 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/CHANGELOG.md
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/CHANGELOG.md
@@ -1,14 +1,532 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.2 (2026-07-22)
-### Features Added
+- Azure Resource Manager Compute BulkActions client library for Java. This package contains Microsoft Azure SDK for Compute BulkActions Management SDK. Package api-version 2026-07-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ResourceOperation` was modified
+
+* `java.lang.String errorCode()` -> `java.lang.String errorCode()`
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `models.ResourceOperationDetails operation()` -> `models.ResourceOperationDetails operation()`
+* `java.lang.String errorDetails()` -> `java.lang.String errorDetails()`
+* `java.lang.String resourceId()` -> `java.lang.String resourceId()`
+* `toJson(com.azure.json.JsonWriter)` was removed
+
+### Features Added
+
+* `models.EventGridAndResourceGraph` was added
+
+* `models.VirtualMachinePublicIPAddressDnsSettingsConfiguration` was added
+
+* `models.WinRMConfiguration` was added
+
+* `models.ScheduledEventsProfile` was added
+
+* `models.LaunchBulkInstancesOperationProperties` was added
+
+* `models.StorageAccountTypes` was added
+
+* `models.DomainNameLabelScopeTypes` was added
+
+* `models.DiffDiskOptions` was added
+
+* `models.VirtualMachineIpTag` was added
+
+* `models.RecurringScheduledActionsExecutionParameters` was added
+
+* `models.EvictionPolicy` was added
+
+* `models.LocationBasedLaunchBulkInstancesOperation$UpdateStages` was added
+
+* `models.WindowsVMGuestPatchMode` was added
+
+* `models.ScheduledActionResources` was added
+
+* `models.LinuxPatchAssessmentMode` was added
+
+* `models.DiagnosticsProfile` was added
+
+* `models.ResourceIdentityType` was added
+
+* `models.ExecuteCreateContent` was added
+
+* `models.WindowsConfiguration` was added
+
+* `models.ProtocolTypes` was added
+
+* `models.WindowsPatchAssessmentMode` was added
+
+* `models.RecurringScheduledActionsProvisioningState` was added
+
+* `models.ScheduledActionExtensions` was added
+
+* `models.ScheduledActionOperationStatus` was added
+
+* `models.DeleteOptions` was added
+
+* `models.ScheduledAction$DefinitionStages` was added
+
+* `models.AdditionalUnattendContent` was added
+
+* `models.ScheduledAction$UpdateStages` was added
+
+* `models.OccurrenceResource` was added
+
+* `models.VirtualMachinePublicIPAddressConfiguration` was added
+
+* `models.RecurringScheduledActionsDeadlineType` was added
+
+* `models.ApiError` was added
+
+* `models.LinuxPatchSettings` was added
+
+* `models.UserInitiatedReboot` was added
+
+* `models.VaultSecretGroup` was added
+
+* `models.DiskControllerTypes` was added
+
+* `models.ManagedServiceIdentity` was added
+
+* `models.WindowsVMGuestPatchAutomaticByPlatformSettings` was added
+
+* `models.OSDisk` was added
+
+* `models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting` was added
+
+* `models.VmSizeProperties` was added
+
+* `models.OSProfileProvisioningData` was added
+
+* `models.ReimagePayload` was added
+
+* `models.AcceleratorType` was added
+
+* `models.AcknowledgeBulkOperationErrorsRequest` was added
+
+* `models.BulkInstancesInnerError` was added
+
+* `models.DiffDiskPlacement` was added
+
+* `models.KeyVaultKeyReference` was added
+
+* `models.ResourcesWithContext` was added
+
+* `models.OccurrenceProperties` was added
+
+* `models.VirtualMachineIdentity` was added
+
+* `models.DiskCreateOptionTypes` was added
+
+* `models.LocationBasedBulkCreateCustom$Definition` was added
+
+* `models.BulkCreateCustomPriorityProfile` was added
+
+* `models.OccurrenceState` was added
+
+* `models.SecurityTypes` was added
+
+* `models.ReimageResourceOverride` was added
+
+* `models.FlexProperties` was added
+
+* `models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting` was added
+
+* `models.ProxyAgentSettings` was added
+
+* `models.ExecuteVdiCreateRequest` was added
+
+* `models.LinuxVMGuestPatchAutomaticByPlatformSettings` was added
+
+* `models.ScheduledAction$Definition` was added
+
+* `models.BulkCreateCustoms` was added
+
+* `models.ImageReference` was added
+
+* `models.OccurrenceResultSummary` was added
+
+* `models.StorageProfile` was added
+
+* `models.ZonePreference` was added
+
+* `models.VMDiskSecurityProfile` was added
+
+* `models.ResourceOperationResponse` was added
+
+* `models.PublicIPAddressSku` was added
+
+* `models.ApiErrorBase` was added
+
+* `models.VMGalleryApplication` was added
+
+* `models.LocationBasedBulkCreateCustom$DefinitionStages` was added
+
+* `models.SecurityEncryptionTypes` was added
+
+* `models.BulkCreateCustomOverrideBase` was added
+
+* `models.LocationBasedBulkCreateCustom` was added
+
+* `models.KeyVaultSecretReference` was added
+
+* `models.LocationBasedLaunchBulkInstancesOperation` was added
+
+* `models.ResourcePatchRequest` was added
+
+* `models.PatchSettings` was added
+
+* `models.HardwareProfile` was added
+
+* `models.BulkActionVmExtensionProperties` was added
+
+* `models.OSProfile` was added
+
+* `models.UefiSettings` was added
+
+* `models.Mode` was added
+
+* `models.OperationStatusResult` was added
+
+* `models.ResourceAttachRequest` was added
+
+* `models.AcceleratorManufacturer` was added
+
+* `models.PriorityType` was added
+
+* `models.VirtualMachineInfo` was added
+
+* `models.ExecuteReimageRequest` was added
+
+* `models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration` was added
+
+* `models.UserAssignedIdentitiesValue` was added
+
+* `models.OccurrenceExtensions` was added
+
+* `models.ResourceStatus` was added
+
+* `models.LinuxConfiguration` was added
+
+* `models.ApplicationProfile` was added
+
+* `models.NetworkInterfaceReference` was added
+
+* `models.ResourceNotificationDetails` was added
+
+* `models.Language` was added
+
+* `models.DiskDetachOptionTypes` was added
+
+* `models.LocationBasedLaunchBulkInstancesOperation$Definition` was added
+
+* `models.ComputeProfile` was added
+
+* `models.OccurrenceExtensionProperties` was added
+
+* `models.NotificationType` was added
+
+* `models.AllInstancesDown` was added
+
+* `models.ScheduledActionProperties` was added
+
+* `models.NetworkApiVersion` was added
+
+* `models.ScheduledAction` was added
+
+* `models.DelayRequest` was added
+
+* `models.VirtualMachineNetworkInterfaceConfiguration` was added
+
+* `models.DataDisk` was added
+
+* `models.ScheduledActionResourceInput` was added
+
+* `models.SshConfiguration` was added
+
+* `models.Modes` was added
+
+* `models.BulkCreateCustomOverridesProfile` was added
+
+* `models.ScheduledEventsPolicy` was added
+
+* `models.DistributionStrategy` was added
+
+* `models.ManagedServiceIdentityType` was added
+
+* `models.BulkCreateCustomDistributionStrategy` was added
+
+* `models.ProvisioningState` was added
+
+* `models.VMAttributeSupport` was added
+
+* `models.IPVersions` was added
+
+* `models.ResourceProvisionVdiPayload` was added
+
+* `models.AdditionalCapabilities` was added
+
+* `models.RecurringScheduledActionsRetryPolicy` was added
+
+* `models.OptimizationPreference` was added
+
+* `models.SshPublicKey` was added
+
+* `models.InnerError` was added
+
+* `models.PublicIPAddressSkuTier` was added
+
+* `models.NetworkInterfaceAuxiliarySku` was added
+
+* `models.BulkactionVMExtension` was added
+
+* `models.ResourceProvisioningState` was added
+
+* `models.SettingNames` was added
+
+* `models.LocationBasedLaunchBulkInstancesOperation$Update` was added
+
+* `models.Plan` was added
+
+* `models.NotificationProperties` was added
+
+* `models.CancelOccurrenceRequest` was added
+
+* `models.DiffDiskSettings` was added
+
+* `models.NetworkInterfaceAuxiliaryMode` was added
+
+* `models.DiskDeleteOptionTypes` was added
+
+* `models.UserInitiatedRedeploy` was added
+
+* `models.ScheduledActionUpdateProperties` was added
+
+* `models.BulkCreateCustomOverride` was added
+
+* `models.EncryptionIdentity` was added
+
+* `models.NetworkProfile` was added
+
+* `models.ScheduledAction$Update` was added
+
+* `models.VirtualMachineReimageParameters` was added
+
+* `models.ResourceOperationStatus` was added
+
+* `models.ResourceResultSummary` was added
+
+* `models.SecurityProfile` was added
+
+* `models.VirtualMachine` was added
+
+* `models.WeekDay` was added
+
+* `models.HostEndpointSettings` was added
+
+* `models.AdditionalUnattendContentPassName` was added
+
+* `models.ApiEntityReference` was added
+
+* `models.LocationBasedBulkCreateCustom$Update` was added
+
+* `models.ZoneAllocationPolicy` was added
+
+* `models.Error` was added
+
+* `models.VirtualMachineNetworkInterfaceConfigurationProperties` was added
+
+* `models.VMCategory` was added
+
+* `models.VirtualMachineNetworkInterfaceIPConfiguration` was added
+
+* `models.CachingTypes` was added
+
+* `models.BulkCreateCustomProperties` was added
+
+* `models.ScheduledActionsScheduleUpdate` was added
+
+* `models.BulkCreateCustomAllocationStrategy` was added
+
+* `models.VirtualMachineNetworkInterfaceIPConfigurationProperties` was added
+
+* `models.ScheduledActionType` was added
+
+* `models.DiskEncryptionSettings` was added
+
+* `models.AdditionalUnattendContentComponentName` was added
+
+* `models.ResourceType` was added
+
+* `models.ReimageResourceOperationResponse` was added
+
+* `models.LocalStorageDiskType` was added
+
+* `models.VaultCertificate` was added
+
+* `models.TerminateNotificationProfile` was added
+
+* `models.LocationBasedLaunchBulkInstancesOperation$DefinitionStages` was added
+
+* `models.CapacityReservationProfile` was added
+
+* `models.Occurrence` was added
+
+* `models.CapacityType` was added
+
+* `models.CpuManufacturer` was added
+
+* `models.LocationBasedBulkCreateCustom$UpdateStages` was added
+
+* `models.BulkCreateCustomZoneAllocationPolicy` was added
+
+* `models.ScheduledEventsAdditionalPublishingTargets` was added
+
+* `models.VMOperationStatus` was added
+
+* `models.VMAttributeMinMaxInteger` was added
+
+* `models.RecurringScheduledActionsResourceOperationType` was added
+
+* `models.ScheduledActionUpdate` was added
+
+* `models.VmSizeProfile` was added
+
+* `models.Month` was added
+
+* `models.ResourceProvisionPayload` was added
+
+* `models.ScheduledActionResource` was added
+
+* `models.PublicIPAddressSkuName` was added
+
+* `models.DiskEncryptionSetParametersContent` was added
+
+* `models.CreateResourceOperationResponse` was added
+
+* `models.OperatingSystemTypes` was added
+
+* `models.AllocationStrategy` was added
+
+* `models.ResourceDetachRequest` was added
+
+* `models.ArchitectureType` was added
+
+* `models.AcknowledgeBulkOperationErrorsResponse` was added
+
+* `models.LaunchBulkInstancesOperations` was added
+
+* `models.ScheduledActions` was added
+
+* `models.VirtualHardDisk` was added
+
+* `models.ScheduledActionsSchedule` was added
+
+* `models.OccurrenceExtensionResource` was added
+
+* `models.VMAttributeMinMaxDouble` was added
+
+* `models.LinuxVMGuestPatchMode` was added
+
+* `models.UserAssignedIdentity` was added
+
+* `models.ManagedDiskParametersContent` was added
+
+* `models.Occurrences` was added
+
+* `models.BootDiagnostics` was added
+
+* `models.BulkactionVMProperties` was added
+
+* `models.PriorityProfile` was added
+
+* `models.NetworkInterfaceReferenceProperties` was added
+
+* `models.OSImageNotificationProfile` was added
+
+* `models.VirtualMachinePublicIPAddressConfigurationProperties` was added
+
+* `models.ResourceWithContext` was added
+
+* `models.PublicIPAllocationMethod` was added
+
+* `models.WinRMListener` was added
+
+* `models.OsType` was added
+
+* `models.ScheduledActionsExtensionProperties` was added
+
+* `models.BulkCreateCustomVmSizeProfile` was added
+
+* `models.VMAttributes` was added
+
+* `models.HyperVGeneration` was added
+
+#### `models.VirtualMachineBulkOperations` was modified
+
+* `bulkListOperationErrors(java.lang.String,java.lang.String,java.lang.Integer,com.azure.core.util.Context)` was added
+* `bulkAcknowledgeOperationErrors(java.lang.String,java.lang.String,models.AcknowledgeBulkOperationErrorsRequest)` was added
+* `bulkListOperationErrors(java.lang.String,java.lang.String)` was added
+* `bulkReimageOperation(java.lang.String,java.lang.String,models.ExecuteReimageRequest)` was added
+* `bulkAcknowledgeOperationErrorsWithResponse(java.lang.String,java.lang.String,models.AcknowledgeBulkOperationErrorsRequest,com.azure.core.util.Context)` was added
+* `bulkCreateOperation(java.lang.String,java.lang.String,models.ExecuteCreateContent)` was added
+* `bulkReimageOperationWithResponse(java.lang.String,java.lang.String,models.ExecuteReimageRequest,com.azure.core.util.Context)` was added
+* `bulkVdiFlexCreateOperation(java.lang.String,java.lang.String,models.ExecuteVdiCreateRequest)` was added
+* `bulkCreateOperationWithResponse(java.lang.String,java.lang.String,models.ExecuteCreateContent,com.azure.core.util.Context)` was added
+* `bulkVdiFlexCreateOperationWithResponse(java.lang.String,java.lang.String,models.ExecuteVdiCreateRequest,com.azure.core.util.Context)` was added
+
+#### `models.ExecuteDeallocateContent` was modified
+
+* `withResourcesWithContext(models.ResourcesWithContext)` was added
+* `resourcesWithContext()` was added
+
+#### `models.ResourceOperation` was modified
+
+* `innerModel()` was added
+* `virtualMachineInfo()` was added
+
+#### `models.ResourceOperationDetails` was modified
+
+* `resourceNotificationDetails()` was added
+
+#### `models.ExecutionParameters` was modified
+
+* `withVerifyVmAgentHealth(java.lang.Boolean)` was added
+* `optimizationPreference()` was added
+* `verifyVmAgentHealth()` was added
+* `withOptimizationPreference(models.OptimizationPreference)` was added
+
+#### `models.ResourceOperationType` was modified
+
+* `GET_INSTANCE_VIEW` was added
+
+#### `models.ExecuteStartContent` was modified
+
+* `resourcesWithContext()` was added
+* `withResourcesWithContext(models.ResourcesWithContext)` was added
+
+#### `ComputeBulkActionsManager` was modified
+
+* `launchBulkInstancesOperations()` was added
+* `bulkCreateCustoms()` was added
+* `occurrenceExtensions()` was added
+* `scheduledActions()` was added
+* `scheduledActionExtensions()` was added
+* `occurrences()` was added
+* `scheduledActionOperationStatus()` was added
+
+#### `models.ExecuteHibernateContent` was modified
+
+* `resourcesWithContext()` was added
+* `withResourcesWithContext(models.ResourcesWithContext)` was added
+
+#### `models.ExecuteDeleteContent` was modified
-### Other Changes
+* `resourcesWithContext()` was added
+* `withResourcesWithContext(models.ResourcesWithContext)` was added
## 1.0.0-beta.1 (2026-07-01)
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/README.md b/sdk/compute/azure-resourcemanager-compute-bulkactions/README.md
index a722a2568faa..c29c15619ef9 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/README.md
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Compute BulkActions client library for Java.
-This package contains Microsoft Azure SDK for Compute BulkActions Management SDK. Package api-version 2026-06-06. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Compute BulkActions Management SDK. Package api-version 2026-07-06-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-compute-bulkactions
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/SAMPLE.md b/sdk/compute/azure-resourcemanager-compute-bulkactions/SAMPLE.md
index c59f50bf6f75..940c1c0262f1 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/SAMPLE.md
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/SAMPLE.md
@@ -1,49 +1,1781 @@
# Code snippets and samples
+## BulkCreateCustom
+
+- [Cancel](#bulkcreatecustom_cancel)
+- [CreateOrUpdate](#bulkcreatecustom_createorupdate)
+- [Delete](#bulkcreatecustom_delete)
+- [Get](#bulkcreatecustom_get)
+- [GetAsyncOperationStatus](#bulkcreatecustom_getasyncoperationstatus)
+- [ListByResourceGroup](#bulkcreatecustom_listbyresourcegroup)
+- [ListBySubscription](#bulkcreatecustom_listbysubscription)
+
+## LaunchBulkInstancesOperation
+
+- [Cancel](#launchbulkinstancesoperation_cancel)
+- [CreateOrUpdate](#launchbulkinstancesoperation_createorupdate)
+- [Delete](#launchbulkinstancesoperation_delete)
+- [Get](#launchbulkinstancesoperation_get)
+- [GetOperationStatus](#launchbulkinstancesoperation_getoperationstatus)
+- [ListByResourceGroup](#launchbulkinstancesoperation_listbyresourcegroup)
+- [ListBySubscription](#launchbulkinstancesoperation_listbysubscription)
+- [ListVirtualMachines](#launchbulkinstancesoperation_listvirtualmachines)
+
+## OccurrenceExtension
+
+- [ListOccurrenceByVms](#occurrenceextension_listoccurrencebyvms)
+
+## Occurrences
+
+- [Cancel](#occurrences_cancel)
+- [Delay](#occurrences_delay)
+- [Get](#occurrences_get)
+- [ListByScheduledAction](#occurrences_listbyscheduledaction)
+- [ListResources](#occurrences_listresources)
+
## Operations
-- [List](#operations_list)
+- [List](#operations_list)
+
+## ScheduledActionExtension
+
+- [ListByVms](#scheduledactionextension_listbyvms)
+
+## ScheduledActionOperationStatus
+
+- [Get](#scheduledactionoperationstatus_get)
+
+## ScheduledActions
+
+- [AttachResources](#scheduledactions_attachresources)
+- [CancelNextOccurrence](#scheduledactions_cancelnextoccurrence)
+- [CreateOrUpdate](#scheduledactions_createorupdate)
+- [Delete](#scheduledactions_delete)
+- [DetachResources](#scheduledactions_detachresources)
+- [Disable](#scheduledactions_disable)
+- [Enable](#scheduledactions_enable)
+- [GetByResourceGroup](#scheduledactions_getbyresourcegroup)
+- [List](#scheduledactions_list)
+- [ListByResourceGroup](#scheduledactions_listbyresourcegroup)
+- [ListResources](#scheduledactions_listresources)
+- [PatchResources](#scheduledactions_patchresources)
+- [TriggerManualOccurrence](#scheduledactions_triggermanualoccurrence)
+- [Update](#scheduledactions_update)
+
+## VirtualMachineBulkOperations
+
+- [BulkAcknowledgeOperationErrors](#virtualmachinebulkoperations_bulkacknowledgeoperationerrors)
+- [BulkCancelOperations](#virtualmachinebulkoperations_bulkcanceloperations)
+- [BulkCreateOperation](#virtualmachinebulkoperations_bulkcreateoperation)
+- [BulkDeallocateOperation](#virtualmachinebulkoperations_bulkdeallocateoperation)
+- [BulkDeleteOperation](#virtualmachinebulkoperations_bulkdeleteoperation)
+- [BulkGetOperationsStatus](#virtualmachinebulkoperations_bulkgetoperationsstatus)
+- [BulkHibernateOperation](#virtualmachinebulkoperations_bulkhibernateoperation)
+- [BulkListOperationErrors](#virtualmachinebulkoperations_bulklistoperationerrors)
+- [BulkReimageOperation](#virtualmachinebulkoperations_bulkreimageoperation)
+- [BulkStartOperation](#virtualmachinebulkoperations_bulkstartoperation)
+- [BulkVdiFlexCreateOperation](#virtualmachinebulkoperations_bulkvdiflexcreateoperation)
+### BulkCreateCustom_Cancel
+
+```java
+/**
+ * Samples for BulkCreateCustom Cancel.
+ */
+public final class BulkCreateCustomCancelSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_Cancel_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_Cancel_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomCancelMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms()
+ .cancel("rgBulkactions", "eastus", "20496756-e4bc-402c-8e7e-8ffed8e00c41",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### BulkCreateCustom_CreateOrUpdate
+
+```java
+import com.azure.core.management.SubResource;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomAllocationStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomDistributionStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomOverride;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomOverrideBase;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomOverridesProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomPriorityProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomVmSizeProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomZoneAllocationPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkactionVMProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.CachingTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.CapacityType;
+import com.azure.resourcemanager.compute.bulkactions.models.ComputeProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.DeleteOptions;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskCreateOptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskDeleteOptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.EvictionPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.ImageReference;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedDiskParametersContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkApiVersion;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.OSDisk;
+import com.azure.resourcemanager.compute.bulkactions.models.OSProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.OperatingSystemTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.PriorityType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.SshConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.SshPublicKey;
+import com.azure.resourcemanager.compute.bulkactions.models.StorageAccountTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.StorageProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceConfigurationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceIPConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceIPConfigurationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ZonePreference;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for BulkCreateCustom CreateOrUpdate.
+ */
+public final class BulkCreateCustomCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_CreateOrUpdate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_CreateOrUpdate_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomCreateOrUpdateMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms()
+ .define("89f31926-145c-410c-a56a-5bc97359274c")
+ .withExistingLocation("rgBulkactions", "eastus")
+ .withTags(mapOf("workload", "batch-render", "env", "prod"))
+ .withProperties(new BulkCreateCustomProperties().withCapacity(10)
+ .withCapacityType(CapacityType.VM)
+ .withPriorityProfile(new BulkCreateCustomPriorityProfile().withType(PriorityType.SPOT)
+ .withMaxPricePerVM(0.2D)
+ .withEvictionPolicy(EvictionPolicy.DELETE)
+ .withAllocationStrategy(BulkCreateCustomAllocationStrategy.LOWEST_PRICE))
+ .withVmSizesProfile(Arrays.asList(
+ new BulkCreateCustomVmSizeProfile().withName("Standard_D2s_v5").withRank(1),
+ new BulkCreateCustomVmSizeProfile().withName("Standard_D4s_v5")
+ .withRank(2)
+ .withOverride(new BulkCreateCustomOverrideBase()
+ .withVirtualMachineProfile(new BulkactionVMProperties().withStorageProfile(
+ new StorageProfile().withImageReference(new ImageReference().withPublisher("Canonical")
+ .withOffer("0001-com-ubuntu-server-jammy")
+ .withSku("22_04-lts-arm64")
+ .withVersion("latest")))))))
+ .withComputeProfile(new ComputeProfile().withVirtualMachineProfile(new BulkactionVMProperties()
+ .withStorageProfile(new StorageProfile()
+ .withImageReference(new ImageReference().withPublisher("Canonical")
+ .withOffer("0001-com-ubuntu-server-jammy")
+ .withSku("22_04-lts-gen2")
+ .withVersion("latest"))
+ .withOsDisk(new OSDisk().withOsType(OperatingSystemTypes.LINUX)
+ .withCaching(CachingTypes.READ_WRITE)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withManagedDisk(new ManagedDiskParametersContent()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withOsProfile(new OSProfile().withComputerName("bulkvm")
+ .withAdminUsername("azureuser")
+ .withLinuxConfiguration(new LinuxConfiguration().withDisablePasswordAuthentication(true)
+ .withSsh(new SshConfiguration().withPublicKeys(
+ Arrays.asList(new SshPublicKey().withPath("/home/azureuser/.ssh/authorized_keys")
+ .withKeyData("fakeTokenPlaceholder"))))))
+ .withNetworkProfile(new NetworkProfile()
+ .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)
+ .withNetworkInterfaceConfigurations(
+ Arrays.asList(new VirtualMachineNetworkInterfaceConfiguration().withName("bulkvm-nic")
+ .withProperties(new VirtualMachineNetworkInterfaceConfigurationProperties()
+ .withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)
+ .withIpConfigurations(Arrays.asList(
+ new VirtualMachineNetworkInterfaceIPConfiguration().withName("bulkvm-ipconfig")
+ .withProperties(
+ new VirtualMachineNetworkInterfaceIPConfigurationProperties()
+ .withSubnet(new SubResource().withId(
+ "/subscriptions/1FBA3C66-5C9C-4391-B72F-9F52735FC9F2/resourceGroups/rgBulkactions/providers/Microsoft.Network/virtualNetworks/bulkvnet/subnets/default"))
+ .withPrimary(true)))))))))
+ .withComputeApiVersion("2024-11-01"))
+ .withZoneAllocationPolicy(new BulkCreateCustomZoneAllocationPolicy()
+ .withDistributionStrategy(BulkCreateCustomDistributionStrategy.BEST_EFFORT_BALANCED)
+ .withZonePreferences(Arrays.asList(new ZonePreference().withZone("1").withRank(1),
+ new ZonePreference().withZone("2").withRank(2))))
+ .withOverridesProfile(new BulkCreateCustomOverridesProfile().withVirtualMachineNamePrefix("bulkvm")
+ .withOverrides(Arrays.asList(
+ new BulkCreateCustomOverride().withVirtualMachineName("bulkvm-payments-0")
+ .withTags(mapOf("workload", "payments", "env", "prod")),
+ new BulkCreateCustomOverride().withTags(mapOf("workload", "batch")))))
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(
+ new RetryPolicy().withRetryWindowInMinutes(30).withOnFailureAction(ResourceOperationType.DELETE))))
+ .withZones(Arrays.asList("1", "2"))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### BulkCreateCustom_Delete
+
+```java
+/**
+ * Samples for BulkCreateCustom Delete.
+ */
+public final class BulkCreateCustomDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_Delete_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomDeleteMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms()
+ .delete("rgBulkactions", "eastus", "709c2556-6a82-45ee-ba68-b935bb4e8ba0", true,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### BulkCreateCustom_Get
+
+```java
+/**
+ * Samples for BulkCreateCustom Get.
+ */
+public final class BulkCreateCustomGetSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_Get_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void
+ bulkCreateCustomGetMaximumSet(com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms()
+ .getWithResponse("rgBulkactions", "eastus", "85c374f7-9857-4fd7-9267-81019219c362",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### BulkCreateCustom_GetAsyncOperationStatus
+
+```java
+/**
+ * Samples for BulkCreateCustom GetAsyncOperationStatus.
+ */
+public final class BulkCreateCustomGetAsyncOperationStatusSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_GetAsyncOperationStatus_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_GetAsyncOperationStatus_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomGetAsyncOperationStatusMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms()
+ .getAsyncOperationStatusWithResponse("eastus", "f1ac145b-9d8b-417d-8101-9962d03c0904",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### BulkCreateCustom_ListByResourceGroup
+
+```java
+/**
+ * Samples for BulkCreateCustom ListByResourceGroup.
+ */
+public final class BulkCreateCustomListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_ListByResourceGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_ListByResourceGroup_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomListByResourceGroupMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms().listByResourceGroup("rgBulkactions", "eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### BulkCreateCustom_ListBySubscription
+
+```java
+/**
+ * Samples for BulkCreateCustom ListBySubscription.
+ */
+public final class BulkCreateCustomListBySubscriptionSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/BulkCreateCustom_ListBySubscription_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: BulkCreateCustom_ListBySubscription_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void bulkCreateCustomListBySubscriptionMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.bulkCreateCustoms().listBySubscription("eastus", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_Cancel
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation Cancel.
+ */
+public final class LaunchBulkInstancesOperationCancelSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_Cancel_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_Cancel_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationCancelExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .cancel("rgBulkactions", "useast2euap", "434d5a2a-167a-4e26-a89c-fbe622dfd0bc",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_CreateOrUpdate
+
+```java
+import com.azure.core.management.SubResource;
+import com.azure.resourcemanager.compute.bulkactions.models.AcceleratorManufacturer;
+import com.azure.resourcemanager.compute.bulkactions.models.AcceleratorType;
+import com.azure.resourcemanager.compute.bulkactions.models.AdditionalCapabilities;
+import com.azure.resourcemanager.compute.bulkactions.models.AdditionalUnattendContent;
+import com.azure.resourcemanager.compute.bulkactions.models.AdditionalUnattendContentComponentName;
+import com.azure.resourcemanager.compute.bulkactions.models.AdditionalUnattendContentPassName;
+import com.azure.resourcemanager.compute.bulkactions.models.AllInstancesDown;
+import com.azure.resourcemanager.compute.bulkactions.models.AllocationStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.ApiEntityReference;
+import com.azure.resourcemanager.compute.bulkactions.models.ApplicationProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.ArchitectureType;
+import com.azure.resourcemanager.compute.bulkactions.models.BootDiagnostics;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkActionVmExtensionProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkactionVMExtension;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkactionVMProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.CachingTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.CapacityReservationProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.CapacityType;
+import com.azure.resourcemanager.compute.bulkactions.models.ComputeProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.CpuManufacturer;
+import com.azure.resourcemanager.compute.bulkactions.models.DataDisk;
+import com.azure.resourcemanager.compute.bulkactions.models.DeleteOptions;
+import com.azure.resourcemanager.compute.bulkactions.models.DiagnosticsProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.DiffDiskOptions;
+import com.azure.resourcemanager.compute.bulkactions.models.DiffDiskPlacement;
+import com.azure.resourcemanager.compute.bulkactions.models.DiffDiskSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskControllerTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskCreateOptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskDeleteOptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskDetachOptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskEncryptionSetParametersContent;
+import com.azure.resourcemanager.compute.bulkactions.models.DiskEncryptionSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.DistributionStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.DomainNameLabelScopeTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.EncryptionIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.EventGridAndResourceGraph;
+import com.azure.resourcemanager.compute.bulkactions.models.EvictionPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.HardwareProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.HostEndpointSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.HyperVGeneration;
+import com.azure.resourcemanager.compute.bulkactions.models.IPVersions;
+import com.azure.resourcemanager.compute.bulkactions.models.ImageReference;
+import com.azure.resourcemanager.compute.bulkactions.models.KeyVaultKeyReference;
+import com.azure.resourcemanager.compute.bulkactions.models.KeyVaultSecretReference;
+import com.azure.resourcemanager.compute.bulkactions.models.LaunchBulkInstancesOperationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxPatchAssessmentMode;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxPatchSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxVMGuestPatchAutomaticByPlatformSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.LinuxVMGuestPatchMode;
+import com.azure.resourcemanager.compute.bulkactions.models.LocalStorageDiskType;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedDiskParametersContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.compute.bulkactions.models.Mode;
+import com.azure.resourcemanager.compute.bulkactions.models.Modes;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkApiVersion;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkInterfaceAuxiliaryMode;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkInterfaceAuxiliarySku;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkInterfaceReference;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkInterfaceReferenceProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.NetworkProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.OSDisk;
+import com.azure.resourcemanager.compute.bulkactions.models.OSImageNotificationProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.OSProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.OperatingSystemTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.PatchSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.Plan;
+import com.azure.resourcemanager.compute.bulkactions.models.PriorityProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.PriorityType;
+import com.azure.resourcemanager.compute.bulkactions.models.ProtocolTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.ProxyAgentSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.PublicIPAddressSku;
+import com.azure.resourcemanager.compute.bulkactions.models.PublicIPAddressSkuName;
+import com.azure.resourcemanager.compute.bulkactions.models.PublicIPAddressSkuTier;
+import com.azure.resourcemanager.compute.bulkactions.models.PublicIPAllocationMethod;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledEventsAdditionalPublishingTargets;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledEventsPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledEventsProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.SecurityEncryptionTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.SecurityProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.SecurityTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.SettingNames;
+import com.azure.resourcemanager.compute.bulkactions.models.SshConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.SshPublicKey;
+import com.azure.resourcemanager.compute.bulkactions.models.StorageAccountTypes;
+import com.azure.resourcemanager.compute.bulkactions.models.StorageProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.TerminateNotificationProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.UefiSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.UserAssignedIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.UserInitiatedReboot;
+import com.azure.resourcemanager.compute.bulkactions.models.UserInitiatedRedeploy;
+import com.azure.resourcemanager.compute.bulkactions.models.VMAttributeMinMaxDouble;
+import com.azure.resourcemanager.compute.bulkactions.models.VMAttributeMinMaxInteger;
+import com.azure.resourcemanager.compute.bulkactions.models.VMAttributeSupport;
+import com.azure.resourcemanager.compute.bulkactions.models.VMAttributes;
+import com.azure.resourcemanager.compute.bulkactions.models.VMCategory;
+import com.azure.resourcemanager.compute.bulkactions.models.VMDiskSecurityProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.VMGalleryApplication;
+import com.azure.resourcemanager.compute.bulkactions.models.VaultCertificate;
+import com.azure.resourcemanager.compute.bulkactions.models.VaultSecretGroup;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualHardDisk;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineIpTag;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceConfigurationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceIPConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineNetworkInterfaceIPConfigurationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachinePublicIPAddressConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachinePublicIPAddressConfigurationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachinePublicIPAddressDnsSettingsConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.VmSizeProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.VmSizeProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.WinRMConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.WinRMListener;
+import com.azure.resourcemanager.compute.bulkactions.models.WindowsConfiguration;
+import com.azure.resourcemanager.compute.bulkactions.models.WindowsPatchAssessmentMode;
+import com.azure.resourcemanager.compute.bulkactions.models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting;
+import com.azure.resourcemanager.compute.bulkactions.models.WindowsVMGuestPatchAutomaticByPlatformSettings;
+import com.azure.resourcemanager.compute.bulkactions.models.WindowsVMGuestPatchMode;
+import com.azure.resourcemanager.compute.bulkactions.models.ZoneAllocationPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ZonePreference;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for LaunchBulkInstancesOperation CreateOrUpdate.
+ */
+public final class LaunchBulkInstancesOperationCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_CreateOrUpdate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_CreateOrUpdate_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationCreateOrUpdateExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .define("4ad45156-c829-4cd4-aafa-ecabe28aa029")
+ .withExistingLocation("rgBulkactions", "useast2euap")
+ .withTags(mapOf("key1909", "fakeTokenPlaceholder"))
+ .withProperties(new LaunchBulkInstancesOperationProperties().withCapacity(21)
+ .withCapacityType(CapacityType.VM)
+ .withPriorityProfile(new PriorityProfile().withType(PriorityType.REGULAR)
+ .withMaxPricePerVM(23.0D)
+ .withEvictionPolicy(EvictionPolicy.DELETE)
+ .withAllocationStrategy(AllocationStrategy.LOWEST_PRICE))
+ .withVmSizesProfile(Arrays.asList(new VmSizeProfile().withName("frbnnpdkq").withRank(7)))
+ .withVmAttributes(new VMAttributes().withVCpuCount(new VMAttributeMinMaxInteger().withMin(0).withMax(0))
+ .withMemoryInGiB(new VMAttributeMinMaxDouble().withMin(0.0D).withMax(0.0D))
+ .withArchitectureTypes(Arrays.asList(ArchitectureType.ARM64))
+ .withMemoryInGiBPerVCpu(new VMAttributeMinMaxDouble().withMin(0.0D).withMax(0.0D))
+ .withLocalStorageSupport(VMAttributeSupport.EXCLUDED)
+ .withLocalStorageInGiB(new VMAttributeMinMaxDouble().withMin(0.0D).withMax(0.0D))
+ .withLocalStorageDiskTypes(Arrays.asList(LocalStorageDiskType.HDD))
+ .withDataDiskCount(new VMAttributeMinMaxInteger().withMin(0).withMax(0))
+ .withNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(0).withMax(0))
+ .withNetworkBandwidthInMbps(new VMAttributeMinMaxDouble().withMin(0.0D).withMax(0.0D))
+ .withRdmaSupport(VMAttributeSupport.EXCLUDED)
+ .withRdmaNetworkInterfaceCount(new VMAttributeMinMaxInteger().withMin(0).withMax(0))
+ .withAcceleratorSupport(VMAttributeSupport.EXCLUDED)
+ .withAcceleratorManufacturers(Arrays.asList(AcceleratorManufacturer.AMD))
+ .withAcceleratorTypes(Arrays.asList(AcceleratorType.GPU))
+ .withAcceleratorCount(new VMAttributeMinMaxInteger().withMin(0).withMax(0))
+ .withVmCategories(Arrays.asList(VMCategory.GENERAL_PURPOSE))
+ .withCpuManufacturers(Arrays.asList(CpuManufacturer.INTEL))
+ .withHyperVGenerations(Arrays.asList(HyperVGeneration.GEN1))
+ .withBurstableSupport(VMAttributeSupport.EXCLUDED)
+ .withAllowedVMSizes(Arrays.asList("dwcsrlrzrzzqleqivkzwpczpf", "dwcsrlrzrzzqleqivkzwpczpf",
+ "dwcsrlrzrzzqleqivkzwpczpf", "dwcsrlrzrzzqleqivkzwpczpf", "dwcsrlrzrzzqleqivkzwpczpf",
+ "dwcsrlrzrzzqleqivkzwpczpf", "dwcsrlrzrzzqleqivkzwpczpf"))
+ .withExcludedVMSizes(Arrays.asList("igehpnuaybwy", "igehpnuaybwy", "igehpnuaybwy", "igehpnuaybwy",
+ "igehpnuaybwy", "igehpnuaybwy", "igehpnuaybwy")))
+ .withComputeProfile(
+ new ComputeProfile()
+ .withVirtualMachineProfile(new BulkactionVMProperties()
+ .withScheduledEventsPolicy(new ScheduledEventsPolicy()
+ .withUserInitiatedRedeploy(
+ new UserInitiatedRedeploy().withUserInitiatedRedeployAutomaticallyApprove(true))
+ .withUserInitiatedReboot(
+ new UserInitiatedReboot().withUserInitiatedRebootAutomaticallyApprove(true))
+ .withScheduledEventsAdditionalPublishingTargets(
+ new ScheduledEventsAdditionalPublishingTargets()
+ .withEventGridAndResourceGraph(new EventGridAndResourceGraph().withEnable(true)
+ .withScheduledEventsApiVersion("lifncbftlkounuyfn")))
+ .withAllInstancesDown(
+ new AllInstancesDown().withAllInstancesDownAutomaticallyApprove(true)))
+ .withStorageProfile(new StorageProfile()
+ .withImageReference(new ImageReference()
+ .withId("cdbrkpdicibtlliq")
+ .withPublisher("ojlplghybdamadvsrq")
+ .withOffer("uvnqoxhkxefqwbsvjgbswqy")
+ .withSku("hajdxhjmlkx")
+ .withVersion("u")
+ .withSharedGalleryImageId("fz")
+ .withCommunityGalleryImageId("tsfpcq"))
+ .withOsDisk(new OSDisk().withOsType(OperatingSystemTypes.WINDOWS)
+ .withEncryptionSettings(new DiskEncryptionSettings()
+ .withDiskEncryptionKey(
+ new KeyVaultSecretReference().withSecretUrl("fakeTokenPlaceholder")
+ .withSourceVault(new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withKeyEncryptionKey(
+ new KeyVaultKeyReference().withKeyUrl("fakeTokenPlaceholder")
+ .withSourceVault(new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withEnabled(true))
+ .withName("opogpznvctmraoajgizcyrfvpt")
+ .withVhd(new VirtualHardDisk().withUri("elpzggtxubepzgjqvdbjmbu"))
+ .withImage(new VirtualHardDisk().withUri("elpzggtxubepzgjqvdbjmbu"))
+ .withCaching(CachingTypes.NONE)
+ .withWriteAcceleratorEnabled(true)
+ .withDiffDiskSettings(new DiffDiskSettings().withOption(DiffDiskOptions.LOCAL)
+ .withPlacement(DiffDiskPlacement.CACHE_DISK))
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(2)
+ .withManagedDisk(new ManagedDiskParametersContent().withId("numddbqmkxuu")
+ .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)
+ .withDiskEncryptionSet(
+ new DiskEncryptionSetParametersContent().withId("magvkzhdmzhktjlqkkk"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY)
+ .withDiskEncryptionSet(new DiskEncryptionSetParametersContent()
+ .withId("magvkzhdmzhktjlqkkk"))))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE))
+ .withDataDisks(Arrays.asList(new DataDisk().withLun(7)
+ .withName("nbthfzqsxyqvqnbgcljxbwyyoj")
+ .withVhd(new VirtualHardDisk().withUri("elpzggtxubepzgjqvdbjmbu"))
+ .withImage(new VirtualHardDisk().withUri("elpzggtxubepzgjqvdbjmbu"))
+ .withCaching(CachingTypes.NONE)
+ .withWriteAcceleratorEnabled(true)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(19)
+ .withManagedDisk(new ManagedDiskParametersContent().withId("numddbqmkxuu")
+ .withStorageAccountType(StorageAccountTypes.STANDARD_LRS)
+ .withDiskEncryptionSet(
+ new DiskEncryptionSetParametersContent().withId("magvkzhdmzhktjlqkkk"))
+ .withSecurityProfile(new VMDiskSecurityProfile()
+ .withSecurityEncryptionType(SecurityEncryptionTypes.VMGUEST_STATE_ONLY)
+ .withDiskEncryptionSet(new DiskEncryptionSetParametersContent()
+ .withId("magvkzhdmzhktjlqkkk"))))
+ .withSourceResource(new ApiEntityReference().withId("qnukyordmomtjjqabovlsxl"))
+ .withToBeDetached(true)
+ .withDetachOption(DiskDetachOptionTypes.FORCE_DETACH)
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withDiskControllerType(DiskControllerTypes.SCSI))
+ .withHardwareProfile(new HardwareProfile().withVmSize("szrnjqwbruz")
+ .withVmSizeProperties(
+ new VmSizeProperties().withVCpusAvailable(24).withVCpusPerCore(6)))
+ .withAdditionalCapabilities(
+ new AdditionalCapabilities().withUltraSSDEnabled(true).withHibernationEnabled(true))
+ .withOsProfile(
+ new OSProfile().withComputerName("bplxnfp")
+ .withAdminUsername("fxzbi")
+ .withAdminPassword("fakeTokenPlaceholder")
+ .withCustomData("hbdlirohsgnbrahscboc")
+ .withWindowsConfiguration(new WindowsConfiguration().withProvisionVMAgent(true)
+ .withEnableAutomaticUpdates(true)
+ .withTimeZone("t")
+ .withAdditionalUnattendContent(Arrays.asList(new AdditionalUnattendContent()
+ .withPassName(AdditionalUnattendContentPassName.OOBE_SYSTEM)
+ .withComponentName(
+ AdditionalUnattendContentComponentName.MICROSOFT_WINDOWS_SHELL_SETUP)
+ .withSettingName(SettingNames.AUTO_LOGON)
+ .withContent("rguazthnx")))
+ .withPatchSettings(
+ new PatchSettings().withPatchMode(WindowsVMGuestPatchMode.MANUAL)
+ .withEnableHotpatching(true)
+ .withAssessmentMode(WindowsPatchAssessmentMode.IMAGE_DEFAULT)
+ .withAutomaticByPlatformSettings(
+ new WindowsVMGuestPatchAutomaticByPlatformSettings()
+ .withRebootSetting(
+ WindowsVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN)
+ .withBypassPlatformSafetyChecksOnUserSchedule(true)))
+ .withWinRM(new WinRMConfiguration().withListeners(
+ Arrays.asList(new WinRMListener().withProtocol(ProtocolTypes.HTTP)
+ .withCertificateUrl("quhfapfpyeeocwvwtvuggoqqwt")))))
+ .withLinuxConfiguration(new LinuxConfiguration()
+ .withDisablePasswordAuthentication(true)
+ .withSsh(new SshConfiguration().withPublicKeys(
+ Arrays.asList(new SshPublicKey().withPath("mrdfxnfjazxog")
+ .withKeyData("fakeTokenPlaceholder"))))
+ .withProvisionVMAgent(true)
+ .withPatchSettings(
+ new LinuxPatchSettings().withPatchMode(LinuxVMGuestPatchMode.IMAGE_DEFAULT)
+ .withAssessmentMode(LinuxPatchAssessmentMode.IMAGE_DEFAULT)
+ .withAutomaticByPlatformSettings(
+ new LinuxVMGuestPatchAutomaticByPlatformSettings()
+ .withRebootSetting(
+ LinuxVMGuestPatchAutomaticByPlatformRebootSetting.UNKNOWN)
+ .withBypassPlatformSafetyChecksOnUserSchedule(true)))
+ .withEnableVMAgentPlatformUpdates(true))
+ .withSecrets(Arrays.asList(new VaultSecretGroup()
+ .withSourceVault(new SubResource().withId("lvzxxyypkeqlflftmfn"))
+ .withVaultCertificates(Arrays
+ .asList(new VaultCertificate().withCertificateUrl("crgbpfdvlohwkupdjp")
+ .withCertificateStore("hyx")))))
+ .withAllowExtensionOperations(true)
+ .withRequireGuestProvisionSignal(true))
+ .withNetworkProfile(new NetworkProfile()
+ .withNetworkInterfaces(Arrays
+ .asList(new NetworkInterfaceReference().withId("ymfxctb")
+ .withProperties(new NetworkInterfaceReferenceProperties()
+ .withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE))))
+ .withNetworkApiVersion(NetworkApiVersion.TWO_ZERO_TWO_ZERO_ONE_ONE_ZERO_ONE)
+ .withNetworkInterfaceConfigurations(Arrays.asList(
+ new VirtualMachineNetworkInterfaceConfiguration().withName("qrkzoctmzjketostzabnra")
+ .withProperties(new VirtualMachineNetworkInterfaceConfigurationProperties()
+ .withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)
+ .withEnableAcceleratedNetworking(true)
+ .withDisableTcpStateTracking(true)
+ .withEnableFpga(true)
+ .withEnableIPForwarding(true)
+ .withNetworkSecurityGroup(new SubResource().withId("lvzxxyypkeqlflftmfn"))
+ .withDnsSettings(
+ new VirtualMachineNetworkInterfaceDnsSettingsConfiguration()
+ .withDnsServers(Arrays.asList("tqcqopnanyyiavfwhqbkarxtrfqbww")))
+ .withIpConfigurations(
+ Arrays.asList(new VirtualMachineNetworkInterfaceIPConfiguration()
+ .withName("gqymuvgzzfmxqvdadx")
+ .withProperties(
+ new VirtualMachineNetworkInterfaceIPConfigurationProperties()
+ .withSubnet(new SubResource().withId("lvzxxyypkeqlflftmfn"))
+ .withPrimary(true)
+ .withPublicIPAddressConfiguration(
+ new VirtualMachinePublicIPAddressConfiguration()
+ .withName("cwxsqjijtwbsyqdwht")
+ .withProperties(
+ new VirtualMachinePublicIPAddressConfigurationProperties()
+ .withIdleTimeoutInMinutes(17)
+ .withDeleteOption(DeleteOptions.DELETE)
+ .withDnsSettings(
+ new VirtualMachinePublicIPAddressDnsSettingsConfiguration()
+ .withDomainNameLabel("fampou")
+ .withDomainNameLabelScope(
+ DomainNameLabelScopeTypes.TENANT_REUSE))
+ .withIpTags(
+ Arrays.asList(new VirtualMachineIpTag()
+ .withIpTagType(
+ "hkjoxhqadudjartwooezaxl")
+ .withTag("xywunkjglkmmwfpf")))
+ .withPublicIPPrefix(new SubResource()
+ .withId("lvzxxyypkeqlflftmfn"))
+ .withPublicIPAddressVersion(IPVersions.IPV4)
+ .withPublicIPAllocationMethod(
+ PublicIPAllocationMethod.DYNAMIC))
+ .withSku(new PublicIPAddressSku()
+ .withName(PublicIPAddressSkuName.BASIC)
+ .withTier(PublicIPAddressSkuTier.REGIONAL))
+ .withTags(mapOf("key5442", "fakeTokenPlaceholder")))
+ .withPrivateIPAddressVersion(IPVersions.IPV4)
+ .withApplicationSecurityGroups(Arrays.asList(
+ new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withApplicationGatewayBackendAddressPools(Arrays.asList(
+ new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withLoadBalancerBackendAddressPools(Arrays.asList(
+ new SubResource().withId("lvzxxyypkeqlflftmfn"))))))
+ .withDscpConfiguration(new SubResource().withId("lvzxxyypkeqlflftmfn"))
+ .withAuxiliaryMode(NetworkInterfaceAuxiliaryMode.NONE)
+ .withAuxiliarySku(NetworkInterfaceAuxiliarySku.NONE))
+ .withTags(mapOf("key9436", "fakeTokenPlaceholder")))))
+ .withSecurityProfile(new SecurityProfile()
+ .withUefiSettings(new UefiSettings().withSecureBootEnabled(true).withVTpmEnabled(true))
+ .withEncryptionAtHost(true)
+ .withSecurityType(SecurityTypes.TRUSTED_LAUNCH)
+ .withEncryptionIdentity(
+ new EncryptionIdentity().withUserAssignedIdentityResourceId("tnajlgbwcepmhytzb"))
+ .withProxyAgentSettings(new ProxyAgentSettings().withEnabled(true)
+ .withMode(Mode.AUDIT)
+ .withKeyIncarnationId(4)
+ .withWireServer(new HostEndpointSettings().withMode(Modes.AUDIT)
+ .withInVMAccessControlProfileReferenceId("xvlzroy"))
+ .withImds(new HostEndpointSettings().withMode(Modes.AUDIT)
+ .withInVMAccessControlProfileReferenceId("xvlzroy"))
+ .withAddProxyAgentExtension(true)))
+ .withDiagnosticsProfile(new DiagnosticsProfile().withBootDiagnostics(
+ new BootDiagnostics().withEnabled(true).withStorageUri("pxuhtzehlfsqolbdleirgj")))
+ .withLicenseType("ymwuemwuntbignqyvzqflvjpcdus")
+ .withExtensionsTimeBudget("dnyqmcijikzkltjav")
+ .withScheduledEventsProfile(new ScheduledEventsProfile()
+ .withTerminateNotificationProfile(
+ new TerminateNotificationProfile().withNotBeforeTimeout("owbwifqrlsdmm")
+ .withEnable(true))
+ .withOsImageNotificationProfile(
+ new OSImageNotificationProfile().withNotBeforeTimeout("ataqykjdakdvyyzdspaqnhd")
+ .withEnable(true)))
+ .withUserData("nwjvxe")
+ .withCapacityReservation(new CapacityReservationProfile()
+ .withCapacityReservationGroup(new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withApplicationProfile(
+ new ApplicationProfile()
+ .withGalleryApplications(
+ Arrays.asList(new VMGalleryApplication().withTags("cmygipvpkegyclvpznfu")
+ .withOrder(8)
+ .withPackageReferenceId("afrfkjdrtzftmwramfyu")
+ .withConfigurationReference("nmfaspclhidtznslsps")
+ .withTreatFailureAsDeploymentFailure(true)
+ .withEnableAutomaticUpgrade(true))))
+ .withVmExtensions(
+ Arrays
+ .asList(
+ new BulkactionVMExtension().withName("jkpmcxwuahpzwkvexgzpypk")
+ .withProperties(new BulkActionVmExtensionProperties()
+ .withForceUpdateTag("dockqxgatsfzhctxrncuw")
+ .withPublisher("qesyfldbfoaexyoywhcxafdtdwcg")
+ .withType("ptlmlzpbpbkfbu")
+ .withTypeHandlerVersion("crllsludntz")
+ .withAutoUpgradeMinorVersion(true)
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(mapOf())
+ .withProtectedSettings(mapOf())
+ .withSuppressFailures(true)
+ .withProtectedSettingsFromKeyVault(new KeyVaultSecretReference()
+ .withSecretUrl("fakeTokenPlaceholder")
+ .withSourceVault(new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withProvisionAfterExtensions(Arrays.asList("onbtyoeifafiktrkmal"))))))
+ .withExtensions(
+ Arrays
+ .asList(new BulkactionVMExtension().withName("jkpmcxwuahpzwkvexgzpypk")
+ .withProperties(new BulkActionVmExtensionProperties()
+ .withForceUpdateTag("dockqxgatsfzhctxrncuw")
+ .withPublisher("qesyfldbfoaexyoywhcxafdtdwcg")
+ .withType("ptlmlzpbpbkfbu")
+ .withTypeHandlerVersion("crllsludntz")
+ .withAutoUpgradeMinorVersion(true)
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(mapOf())
+ .withProtectedSettings(mapOf())
+ .withSuppressFailures(true)
+ .withProtectedSettingsFromKeyVault(
+ new KeyVaultSecretReference().withSecretUrl("fakeTokenPlaceholder")
+ .withSourceVault(new SubResource().withId("lvzxxyypkeqlflftmfn")))
+ .withProvisionAfterExtensions(Arrays.asList("onbtyoeifafiktrkmal")))))
+ .withComputeApiVersion("qqxldedyfmfmidkvtkixh"))
+ .withZoneAllocationPolicy(
+ new ZoneAllocationPolicy().withDistributionStrategy(DistributionStrategy.BEST_EFFORT_SINGLE_ZONE)
+ .withZonePreferences(
+ Arrays.asList(new ZonePreference().withZone("ixksjnaxwelhfpsoyjfaezievquqv").withRank(19))))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withZones(Arrays.asList("hzqzrbvpgsudtesi"))
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
+ .withUserAssignedIdentities(mapOf("key9643", new UserAssignedIdentity())))
+ .withPlan(new Plan().withName("iemasqqkbixbewezyrhnpntjd")
+ .withPublisher("bvggylbvfstnscuupuithafvvgc")
+ .withProduct("bguuzrknnuohugjhernflurpx")
+ .withPromotionCode("fakeTokenPlaceholder")
+ .withVersion("uyxetqmmzvqianqv"))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_Delete
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation Delete.
+ */
+public final class LaunchBulkInstancesOperationDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_Delete_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationDeleteExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .delete("rgBulkactions", "useast2euap", "8a71b9df-efee-48a9-a381-4e6d60b4304f", true,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_Get
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation Get.
+ */
+public final class LaunchBulkInstancesOperationGetSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_Get_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationGetExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .getWithResponse("rgBulkactions", "useast2euap", "495544ae-8710-4e8b-bca3-49a1dbb1623a",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_GetOperationStatus
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation GetOperationStatus.
+ */
+public final class LaunchBulkInstancesOperationGetOperationStatusSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_GetOperationStatus_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_GetOperationStatus_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationGetOperationStatusExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .getOperationStatusWithResponse("useast2euap", "8596407e-8834-4a62-8d3c-9231af92d785",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_ListByResourceGroup
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation ListByResourceGroup.
+ */
+public final class LaunchBulkInstancesOperationListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_ListByResourceGroup_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_ListByResourceGroup_Example - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationListByResourceGroupExampleGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .listByResourceGroup("rgBulkactions", "useast2euap", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_ListByResourceGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_ListByResourceGroup_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationListByResourceGroupExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .listByResourceGroup("rgBulkactions", "useast2euap", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_ListBySubscription
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation ListBySubscription.
+ */
+public final class LaunchBulkInstancesOperationListBySubscriptionSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_ListBySubscription_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_ListBySubscription_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationListBySubscriptionExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations().listBySubscription("useast2euap", com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_ListBySubscription_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_ListBySubscription_Example - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationListBySubscriptionExampleGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations().listBySubscription("useast2euap", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### LaunchBulkInstancesOperation_ListVirtualMachines
+
+```java
+/**
+ * Samples for LaunchBulkInstancesOperation ListVirtualMachines.
+ */
+public final class LaunchBulkInstancesOperationListVirtualMachinesSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/LaunchBulkInstancesOperation_ListVirtualMachines_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: LaunchBulkInstancesOperation_ListVirtualMachines_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void launchBulkInstancesOperationListVirtualMachinesExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.launchBulkInstancesOperations()
+ .listVirtualMachines("rgBulkactions", "useast2euap", "b038ec94-0860-42a5-b149-f1ce5f144e15",
+ "onywxjwswbhlbkbbusgmkfgabdku", "tcbhwfqtoiwnlbjdbsnukxpgpa", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### OccurrenceExtension_ListOccurrenceByVms
+
+```java
+/**
+ * Samples for OccurrenceExtension ListOccurrenceByVms.
+ */
+public final class OccurrenceExtensionListOccurrenceByVmsSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: OccurrenceExtension_ListOccurrenceByVms_MaximumSet - generated by [MaximumSet] rule.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void occurrenceExtensionListOccurrenceByVmsMaximumSetGeneratedByMaximumSetRule(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrenceExtensions()
+ .listOccurrenceByVms(
+ "subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Occurrences_Cancel
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOccurrenceRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for Occurrences Cancel.
+ */
+public final class OccurrencesCancelSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Occurrences_Cancel_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Occurrences_Cancel_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void
+ occurrencesCancelMaximumSet(com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrences()
+ .cancel("rgcompute", "myScheduledAction", "CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ new CancelOccurrenceRequest().withResourceIds(Arrays.asList(
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Occurrences_Delay
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.DelayRequest;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+
+/**
+ * Samples for Occurrences Delay.
+ */
+public final class OccurrencesDelaySamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Occurrences_Delay_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Occurrences_Delay_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void
+ occurrencesDelayMaximumSet(com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrences()
+ .delay("rgcompute", "myScheduledAction", "CB26D7CB-3E27-465F-99C8-EAF7A4118245", new DelayRequest()
+ .withDelay(OffsetDateTime.parse("2025-05-22T17:00:00.000-07:00"))
+ .withResourceIds(Arrays.asList(
+ "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Occurrences_Get
+
+```java
+/**
+ * Samples for Occurrences Get.
+ */
+public final class OccurrencesGetSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Occurrences_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Occurrences_Get_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void
+ occurrencesGetMaximumSet(com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrences()
+ .getWithResponse("rgcompute", "myScheduledAction", "67b5bada-4772-43fc-8dbb-402476d98a45",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Occurrences_ListByScheduledAction
+
+```java
+/**
+ * Samples for Occurrences ListByScheduledAction.
+ */
+public final class OccurrencesListByScheduledActionSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Occurrences_ListByScheduledAction_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void occurrencesListByScheduledActionMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrences().listByScheduledAction("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Occurrences_ListResources
+
+```java
+/**
+ * Samples for Occurrences ListResources.
+ */
+public final class OccurrencesListResourcesSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Occurrences_ListResources_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Occurrences_ListResources_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void occurrencesListResourcesMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.occurrences()
+ .listResources("rgcompute", "myScheduledAction", "CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+/**
+ * Samples for Operations List.
+ */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Operations_List_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_Minimum_Gen_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void operationsListMinimumGenExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/Operations_List_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: Operations_List_MaximumSet_Gen_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void operationsListMaximumSetGenExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActionExtension_ListByVms
+
+```java
+/**
+ * Samples for ScheduledActionExtension ListByVms.
+ */
+public final class ScheduledActionExtensionListByVmsSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActionExtension_ListByVms_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionExtensionListByVmsMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActionExtensions()
+ .listByVms(
+ "subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActionOperationStatus_Get
+
+```java
+/**
+ * Samples for ScheduledActionOperationStatus Get.
+ */
+public final class ScheduledActionOperationStatusGetSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActionOperationStatus_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActionOperationStatus_Get_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionOperationStatusGetMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActionOperationStatus()
+ .getWithResponse("eastus", "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_AttachResources
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.Language;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceAttachRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionResourceInput;
+import java.util.Arrays;
+
+/**
+ * Samples for ScheduledActions AttachResources.
+ */
+public final class ScheduledActionsAttachResourcesSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_AttachResources_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsAttachResourcesMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .attachResources("rgcompute", "myScheduledAction", new ResourceAttachRequest()
+ .withResources(Arrays.asList(new ScheduledActionResourceInput().withResourceId(
+ "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")
+ .withNotificationSettings(
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
+ .withType(NotificationType.EMAIL)
+ .withLanguage(Language.EN_US)
+ .withDisabled(true))))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_CancelNextOccurrence
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOccurrenceRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for ScheduledActions CancelNextOccurrence.
+ */
+public final class ScheduledActionsCancelNextOccurrenceSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_CancelNextOccurrence_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsCancelNextOccurrenceMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .cancelNextOccurrence("rgcompute", "myScheduledAction",
+ new CancelOccurrenceRequest().withResourceIds(Arrays.asList(
+ "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.Language;
+import com.azure.resourcemanager.compute.bulkactions.models.Month;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationType;
+import com.azure.resourcemanager.compute.bulkactions.models.OptimizationPreference;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsDeadlineType;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsRetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceType;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionType;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionsSchedule;
+import com.azure.resourcemanager.compute.bulkactions.models.WeekDay;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ScheduledActions CreateOrUpdate.
+ */
+public final class ScheduledActionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_CreateOrUpdate_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsCreateOrUpdateMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .define("myScheduledAction")
+ .withRegion("eastus")
+ .withExistingResourceGroup("rgcompute")
+ .withTags(mapOf("key2102", "fakeTokenPlaceholder"))
+ .withProperties(
+ new ScheduledActionProperties().withResourceType(ResourceType.VIRTUAL_MACHINE)
+ .withActionType(ScheduledActionType.START)
+ .withStartTime(OffsetDateTime.parse("2025-04-17T00:23:55.281Z"))
+ .withEndTime(OffsetDateTime.parse("2025-04-17T00:23:55.286Z"))
+ .withSchedule(new ScheduledActionsSchedule().withScheduledTime("19:00:00")
+ .withTimeZone("America/Los_Angeles")
+ .withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
+ .withRequestedMonths(Arrays.asList(Month.JANUARY))
+ .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withExecutionParameters(new RecurringScheduledActionsExecutionParameters()
+ .withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RecurringScheduledActionsRetryPolicy().withRetryCount(17)
+ .withRetryWindowInMinutes(29)))
+ .withDeadlineType(RecurringScheduledActionsDeadlineType.UNKNOWN))
+ .withNotificationSettings(
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
+ .withType(NotificationType.EMAIL)
+ .withLanguage(Language.EN_US)
+ .withDisabled(true)))
+ .withDisabled(true))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ScheduledActions_Delete
+
+```java
+/**
+ * Samples for ScheduledActions Delete.
+ */
+public final class ScheduledActionsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_Delete_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_Delete_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsDeleteMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().delete("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_DetachResources
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceDetachRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for ScheduledActions DetachResources.
+ */
+public final class ScheduledActionsDetachResourcesSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_DetachResources_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsDetachResourcesMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .detachResources("rgcompute", "myScheduledAction", new ResourceDetachRequest().withResources(Arrays.asList(
+ "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_Disable
+
+```java
+/**
+ * Samples for ScheduledActions Disable.
+ */
+public final class ScheduledActionsDisableSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_Disable_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_Disable_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsDisableMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().disable("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_Enable
+
+```java
+/**
+ * Samples for ScheduledActions Enable.
+ */
+public final class ScheduledActionsEnableSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_Enable_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_Enable_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsEnableMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().enable("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_GetByResourceGroup
+
+```java
+/**
+ * Samples for ScheduledActions GetByResourceGroup.
+ */
+public final class ScheduledActionsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_Get_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_Get_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void
+ scheduledActionsGetMaximumSet(com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .getByResourceGroupWithResponse("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_List
+
+```java
+/**
+ * Samples for ScheduledActions List.
+ */
+public final class ScheduledActionsListSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_ListBySubscription_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsListBySubscriptionMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_ListByResourceGroup
+
+```java
+/**
+ * Samples for ScheduledActions ListByResourceGroup.
+ */
+public final class ScheduledActionsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_ListByResourceGroup_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsListByResourceGroupMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().listByResourceGroup("rgcompute", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_ListResources
-## VirtualMachineBulkOperations
+```java
+/**
+ * Samples for ScheduledActions ListResources.
+ */
+public final class ScheduledActionsListResourcesSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_ListResources_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsListResourcesMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions().listResources("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
+ }
+}
+```
-- [BulkCancelOperations](#virtualmachinebulkoperations_bulkcanceloperations)
-- [BulkDeallocateOperation](#virtualmachinebulkoperations_bulkdeallocateoperation)
-- [BulkDeleteOperation](#virtualmachinebulkoperations_bulkdeleteoperation)
-- [BulkGetOperationsStatus](#virtualmachinebulkoperations_bulkgetoperationsstatus)
-- [BulkHibernateOperation](#virtualmachinebulkoperations_bulkhibernateoperation)
-- [BulkStartOperation](#virtualmachinebulkoperations_bulkstartoperation)
-### Operations_List
+### ScheduledActions_PatchResources
```java
+import com.azure.resourcemanager.compute.bulkactions.models.Language;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourcePatchRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionResourceInput;
+import java.util.Arrays;
+
/**
- * Samples for Operations List.
+ * Samples for ScheduledActions PatchResources.
*/
-public final class OperationsListSamples {
+public final class ScheduledActionsPatchResourcesSamples {
/*
- * x-ms-original-file: 2026-06-06/Operations_List_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
*/
/**
- * Sample code: Operations_List - generated by [MaximumSet] rule.
+ * Sample code: ScheduledActions_PatchResources_MaximumSet.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void operationsListGeneratedByMaximumSetRule(
+ public static void scheduledActionsPatchResourcesMaximumSet(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ manager.scheduledActions()
+ .patchResourcesWithResponse("rgcompute", "myScheduledAction", new ResourcePatchRequest()
+ .withResources(Arrays.asList(new ScheduledActionResourceInput().withResourceId(
+ "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")
+ .withNotificationSettings(
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
+ .withType(NotificationType.EMAIL)
+ .withLanguage(Language.EN_US)
+ .withDisabled(true))))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ScheduledActions_TriggerManualOccurrence
+
+```java
+/**
+ * Samples for ScheduledActions TriggerManualOccurrence.
+ */
+public final class ScheduledActionsTriggerManualOccurrenceSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_TriggerManualOccurrence_MaximumSet.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void scheduledActionsTriggerManualOccurrenceMaximumSet(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.scheduledActions()
+ .triggerManualOccurrence("rgcompute", "myScheduledAction", com.azure.core.util.Context.NONE);
}
+}
+```
+
+### ScheduledActions_Update
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.Language;
+import com.azure.resourcemanager.compute.bulkactions.models.Month;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationType;
+import com.azure.resourcemanager.compute.bulkactions.models.OptimizationPreference;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsDeadlineType;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.RecurringScheduledActionsRetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceType;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionType;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionUpdate;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionUpdateProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionsScheduleUpdate;
+import com.azure.resourcemanager.compute.bulkactions.models.WeekDay;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ScheduledActions Update.
+ */
+public final class ScheduledActionsUpdateSamples {
/*
- * x-ms-original-file: 2026-06-06/Operations_List_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/ScheduledActions_Update_MaximumSet_Gen.json
*/
/**
- * Sample code: Operations_List - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_Update_MaximumSet.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void operationsListGeneratedByMinimumSetRule(
+ public static void scheduledActionsUpdateMaximumSet(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ manager.scheduledActions()
+ .update("rgcompute", "myScheduledAction",
+ new ScheduledActionUpdate().withTags(mapOf("key9989", "fakeTokenPlaceholder"))
+ .withProperties(new ScheduledActionUpdateProperties().withResourceType(ResourceType.VIRTUAL_MACHINE)
+ .withActionType(ScheduledActionType.START)
+ .withStartTime(OffsetDateTime.parse("2025-04-17T00:23:58.149Z"))
+ .withEndTime(OffsetDateTime.parse("2025-04-17T00:23:58.149Z"))
+ .withSchedule(new ScheduledActionsScheduleUpdate().withScheduledTime("19:00:00")
+ .withTimeZone("America/Los_Angeles")
+ .withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
+ .withRequestedMonths(Arrays.asList(Month.JANUARY))
+ .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withExecutionParameters(new RecurringScheduledActionsExecutionParameters()
+ .withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RecurringScheduledActionsRetryPolicy().withRetryCount(17)
+ .withRetryWindowInMinutes(29)))
+ .withDeadlineType(RecurringScheduledActionsDeadlineType.UNKNOWN))
+ .withNotificationSettings(
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
+ .withType(NotificationType.EMAIL)
+ .withLanguage(Language.EN_US)
+ .withDisabled(true)))
+ .withDisabled(true)),
+ com.azure.core.util.Context.NONE);
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.AcknowledgeBulkOperationErrorsRequest;
+import java.util.Arrays;
+
+/**
+ * Samples for VirtualMachineBulkOperations BulkAcknowledgeOperationErrors.
+ */
+public final class VirtualMachineBulkOperationsBulkAcknowledgeOperationErrorsSamples {
+ /*
+ * x-ms-original-file:
+ * 2026-07-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MinimumSet_Gen.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkAcknowledgeOperationErrorsMinimumSetGen(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkAcknowledgeOperationErrorsWithResponse("rgBulkactions", "useast2euap",
+ new AcknowledgeBulkOperationErrorsRequest().withOperationIds(
+ Arrays.asList("af449548-8e1a-4079-874e-2caa4ff783cc")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * 2026-07-06-preview/VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkAcknowledgeOperationErrors_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkAcknowledgeOperationErrorsExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkAcknowledgeOperationErrorsWithResponse("rgBulkactions", "useast2euap",
+ new AcknowledgeBulkOperationErrorsRequest().withOperationIds(
+ Arrays.asList("af449548-8e1a-4079-874e-2caa4ff783cc")),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -59,36 +1791,147 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkCancelOperationsSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkCancel_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkCancel_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkCancel_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkCancelExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkCancelOperationsWithResponse("rgBulkactions", "useast2euap",
+ new CancelOperationsContent().withOperationIds(Arrays.asList("af449548-8e1a-4079-874e-2caa4ff783cc")),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkCancel_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkCancel_Example - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkCancelExampleGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkCancelOperationsWithResponse("rgBulkactions", "useast2euap",
+ new CancelOperationsContent().withOperationIds(Arrays.asList("af449548-8e1a-4079-874e-2caa4ff783cc")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualMachineBulkOperations_BulkCreateOperation
+
+```java
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteCreateContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceProvisionPayload;
+import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
+import java.nio.charset.StandardCharsets;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for VirtualMachineBulkOperations BulkCreateOperation.
+ */
+public final class VirtualMachineBulkOperationsBulkCreateOperationSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkCreate_MaximumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkCancel - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkCreate_Example.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkCancelGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkCreateExample(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkCancelOperationsWithResponse("myResourceGroup", "eastus2euap",
- new CancelOperationsContent().withOperationIds(Arrays.asList("a1b2c3d4-e5f6-7890-abcd-ef0123456789")),
+ .bulkCreateOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteCreateContent()
+ .withResourceConfigParameters(new ResourceProvisionPayload().withBaseProfile(mapOf("plan",
+ BinaryData.fromBytes(
+ "{name=iemasqqkbixbewezyrhnpntjd, publisher=bvggylbvfstnscuupuithafvvgc, product=bguuzrknnuohugjhernflurpx, promotionCode=bxgonranwqoryfkhkfaumdgz, version=uyxetqmmzvqianqv}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "zones", BinaryData.fromBytes("[wczj]".getBytes(StandardCharsets.UTF_8)), "identity",
+ BinaryData.fromBytes(
+ "{type=SystemAssigned, userAssignedIdentities={key7={}}}".getBytes(StandardCharsets.UTF_8)),
+ "extendedLocation",
+ BinaryData.fromBytes("{name=gbnxzymbdkxhwjpqkur, type=EdgeZone}".getBytes(StandardCharsets.UTF_8)),
+ "placement",
+ BinaryData.fromBytes(
+ "{zonePlacementPolicy=Any, includeZones=[inagtbtedobdea], excludeZones=[pvvwrhuhdpvbacwmesblpgwzk]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "tags", BinaryData.fromBytes("{key6824=cefndldgkx}".getBytes(StandardCharsets.UTF_8)), "properties",
+ BinaryData.fromBytes(
+ "{scheduledEventsPolicy={userInitiatedRedeploy={automaticallyApprove=true}, userInitiatedReboot={automaticallyApprove=true}, scheduledEventsAdditionalPublishingTargets={eventGridAndResourceGraph={enable=true, scheduledEventsApiVersion=lifncbftlkounuyfn}}, allInstancesDown={automaticallyApprove=true}}, storageProfile={imageReference={publisher=ojlplghybdamadvsrq, offer=uvnqoxhkxefqwbsvjgbswqy, sku=hajdxhjmlkx, version=u, sharedGalleryImageId=fz, communityGalleryImageId=tsfpcq, id=cdbrkpdicibtlliq}, osDisk={osType=Windows, encryptionSettings={diskEncryptionKey={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, keyEncryptionKey={keyUrl=mjjkvgpoohatw, sourceVault={id=lvzxxyypkeqlflftmfn}}, enabled=true}, name=opogpznvctmraoajgizcyrfvpt, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, diffDiskSettings={option=Local, placement=CacheDisk}, createOption=FromImage, diskSizeGB=2, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, deleteOption=Delete}, dataDisks=[{lun=7, name=nbthfzqsxyqvqnbgcljxbwyyoj, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, createOption=FromImage, diskSizeGB=19, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, sourceResource={id=qnukyordmomtjjqabovlsxl}, toBeDetached=true, detachOption=ForceDetach, deleteOption=Delete}], diskControllerType=SCSI}, hardwareProfile={vmSize=szrnjqwbruz, vmSizeProperties={vCpusAvailable=24, vCpusPerCore=6}}, additionalCapabilities={ultraSSDEnabled=true, hibernationEnabled=true}, osProfile={computerName=bplxnfp, adminUsername=fxzbi, adminPassword=, customData=hbdlirohsgnbrahscboc, windowsConfiguration={provisionVMAgent=true, enableAutomaticUpdates=true, timeZone=t, additionalUnattendContent=[{passName=OobeSystem, componentName=Microsoft-Windows-Shell-Setup, settingName=AutoLogon, content=rguazthnx}], patchSettings={patchMode=Manual, enableHotpatching=true, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, winRM={listeners=[{protocol=Http, certificateUrl=quhfapfpyeeocwvwtvuggoqqwt}]}}, linuxConfiguration={disablePasswordAuthentication=true, ssh={publicKeys=[{path=mrdfxnfjazxog, keyData=wfhrknkehgesontscqyrewfmhgwt}]}, provisionVMAgent=true, patchSettings={patchMode=ImageDefault, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, enableVMAgentPlatformUpdates=true}, secrets=[{sourceVault={id=lvzxxyypkeqlflftmfn}, vaultCertificates=[{certificateUrl=crgbpfdvlohwkupdjp, certificateStore=hyx}]}], allowExtensionOperations=true, requireGuestProvisionSignal=true}, networkProfile={networkInterfaces=[{properties={primary=true, deleteOption=Delete}, id=ymfxctb}], networkApiVersion=2020-11-01, networkInterfaceConfigurations=[{name=qrkzoctmzjketostzabnra, properties={primary=true, deleteOption=Delete, enableAcceleratedNetworking=true, disableTcpStateTracking=true, enableFpga=true, enableIPForwarding=true, networkSecurityGroup={id=lvzxxyypkeqlflftmfn}, dnsSettings={dnsServers=[tqcqopnanyyiavfwhqbkarxtrfqbww]}, ipConfigurations=[{name=gqymuvgzzfmxqvdadx, properties={subnet={id=lvzxxyypkeqlflftmfn}, primary=true, publicIPAddressConfiguration={name=cwxsqjijtwbsyqdwht, properties={idleTimeoutInMinutes=17, deleteOption=Delete, dnsSettings={domainNameLabel=fampou, domainNameLabelScope=TenantReuse}, ipTags=[{ipTagType=hkjoxhqadudjartwooezaxl, tag=xywunkjglkmmwfpf}], publicIPPrefix={id=lvzxxyypkeqlflftmfn}, publicIPAddressVersion=IPv4, publicIPAllocationMethod=Dynamic}, sku={name=Basic, tier=Regional}, tags={key5442=qhpwpnylvmdthxazhxamnbhdfpf}}, privateIPAddressVersion=IPv4, applicationSecurityGroups=[{id=lvzxxyypkeqlflftmfn}], applicationGatewayBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}], loadBalancerBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}]}}], dscpConfiguration={id=lvzxxyypkeqlflftmfn}, auxiliaryMode=None, auxiliarySku=None}, tags={key9436=bjbadzbfvpszbsickv}}]}, securityProfile={uefiSettings={secureBootEnabled=true, vTpmEnabled=true}, encryptionAtHost=true, securityType=TrustedLaunch, encryptionIdentity={userAssignedIdentityResourceId=tnajlgbwcepmhytzb}, proxyAgentSettings={enabled=true, mode=Audit, keyIncarnationId=4, wireServer={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, imds={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, addProxyAgentExtension=true}}, diagnosticsProfile={bootDiagnostics={enabled=true, storageUri=pxuhtzehlfsqolbdleirgj}}, licenseType=ymwuemwuntbignqyvzqflvjpcdus, extensionsTimeBudget=dnyqmcijikzkltjav, scheduledEventsProfile={terminateNotificationProfile={notBeforeTimeout=owbwifqrlsdmm, enable=true}, osImageNotificationProfile={notBeforeTimeout=ataqykjdakdvyyzdspaqnhd, enable=true}}, userData=nwjvxe, capacityReservation={capacityReservationGroup={id=lvzxxyypkeqlflftmfn}}, applicationProfile={galleryApplications=[{tags=cmygipvpkegyclvpznfu, order=8, packageReferenceId=afrfkjdrtzftmwramfyu, configurationReference=nmfaspclhidtznslsps, treatFailureAsDeploymentFailure=true, enableAutomaticUpgrade=true}]}, vmExtensions=[{name=jkpmcxwuahpzwkvexgzpypk, properties={forceUpdateTag=dockqxgatsfzhctxrncuw, publisher=qesyfldbfoaexyoywhcxafdtdwcg, type=ptlmlzpbpbkfbu, typeHandlerVersion=crllsludntz, autoUpgradeMinorVersion=true, enableAutomaticUpgrade=true, settings={}, protectedSettings={}, suppressFailures=true, protectedSettingsFromKeyVault={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, provisionAfterExtensions=[onbtyoeifafiktrkmal]}}]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "computeApiVersion",
+ BinaryData.fromBytes("axcvphjtsdjzcwqczcglmq".getBytes(StandardCharsets.UTF_8)), "name",
+ BinaryData.fromBytes("dbozdvegpdvqxltqipvmqsfgunpe".getBytes(StandardCharsets.UTF_8))))
+ .withResourceOverrides(Arrays.asList(mapOf("plan", BinaryData.fromBytes(
+ "{name=iemasqqkbixbewezyrhnpntjd, publisher=bvggylbvfstnscuupuithafvvgc, product=bguuzrknnuohugjhernflurpx, promotionCode=bxgonranwqoryfkhkfaumdgz, version=uyxetqmmzvqianqv}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "zones", BinaryData.fromBytes("[wczj]".getBytes(StandardCharsets.UTF_8)), "identity",
+ BinaryData.fromBytes(
+ "{type=SystemAssigned, userAssignedIdentities={key7={}}}".getBytes(StandardCharsets.UTF_8)),
+ "extendedLocation",
+ BinaryData
+ .fromBytes("{name=gbnxzymbdkxhwjpqkur, type=EdgeZone}".getBytes(StandardCharsets.UTF_8)),
+ "placement",
+ BinaryData.fromBytes(
+ "{zonePlacementPolicy=Any, includeZones=[inagtbtedobdea], excludeZones=[pvvwrhuhdpvbacwmesblpgwzk]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "tags", BinaryData.fromBytes("{key6824=cefndldgkx}".getBytes(StandardCharsets.UTF_8)),
+ "properties",
+ BinaryData.fromBytes(
+ "{scheduledEventsPolicy={userInitiatedRedeploy={automaticallyApprove=true}, userInitiatedReboot={automaticallyApprove=true}, scheduledEventsAdditionalPublishingTargets={eventGridAndResourceGraph={enable=true, scheduledEventsApiVersion=lifncbftlkounuyfn}}, allInstancesDown={automaticallyApprove=true}}, storageProfile={imageReference={publisher=ojlplghybdamadvsrq, offer=uvnqoxhkxefqwbsvjgbswqy, sku=hajdxhjmlkx, version=u, sharedGalleryImageId=fz, communityGalleryImageId=tsfpcq, id=cdbrkpdicibtlliq}, osDisk={osType=Windows, encryptionSettings={diskEncryptionKey={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, keyEncryptionKey={keyUrl=mjjkvgpoohatw, sourceVault={id=lvzxxyypkeqlflftmfn}}, enabled=true}, name=opogpznvctmraoajgizcyrfvpt, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, diffDiskSettings={option=Local, placement=CacheDisk}, createOption=FromImage, diskSizeGB=2, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, deleteOption=Delete}, dataDisks=[{lun=7, name=nbthfzqsxyqvqnbgcljxbwyyoj, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, createOption=FromImage, diskSizeGB=19, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, sourceResource={id=qnukyordmomtjjqabovlsxl}, toBeDetached=true, detachOption=ForceDetach, deleteOption=Delete}], diskControllerType=SCSI}, hardwareProfile={vmSize=szrnjqwbruz, vmSizeProperties={vCpusAvailable=24, vCpusPerCore=6}}, additionalCapabilities={ultraSSDEnabled=true, hibernationEnabled=true}, osProfile={computerName=bplxnfp, adminUsername=fxzbi, adminPassword=, customData=hbdlirohsgnbrahscboc, windowsConfiguration={provisionVMAgent=true, enableAutomaticUpdates=true, timeZone=t, additionalUnattendContent=[{passName=OobeSystem, componentName=Microsoft-Windows-Shell-Setup, settingName=AutoLogon, content=rguazthnx}], patchSettings={patchMode=Manual, enableHotpatching=true, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, winRM={listeners=[{protocol=Http, certificateUrl=quhfapfpyeeocwvwtvuggoqqwt}]}}, linuxConfiguration={disablePasswordAuthentication=true, ssh={publicKeys=[{path=mrdfxnfjazxog, keyData=wfhrknkehgesontscqyrewfmhgwt}]}, provisionVMAgent=true, patchSettings={patchMode=ImageDefault, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, enableVMAgentPlatformUpdates=true}, secrets=[{sourceVault={id=lvzxxyypkeqlflftmfn}, vaultCertificates=[{certificateUrl=crgbpfdvlohwkupdjp, certificateStore=hyx}]}], allowExtensionOperations=true, requireGuestProvisionSignal=true}, networkProfile={networkInterfaces=[{properties={primary=true, deleteOption=Delete}, id=ymfxctb}], networkApiVersion=2020-11-01, networkInterfaceConfigurations=[{name=qrkzoctmzjketostzabnra, properties={primary=true, deleteOption=Delete, enableAcceleratedNetworking=true, disableTcpStateTracking=true, enableFpga=true, enableIPForwarding=true, networkSecurityGroup={id=lvzxxyypkeqlflftmfn}, dnsSettings={dnsServers=[tqcqopnanyyiavfwhqbkarxtrfqbww]}, ipConfigurations=[{name=gqymuvgzzfmxqvdadx, properties={subnet={id=lvzxxyypkeqlflftmfn}, primary=true, publicIPAddressConfiguration={name=cwxsqjijtwbsyqdwht, properties={idleTimeoutInMinutes=17, deleteOption=Delete, dnsSettings={domainNameLabel=fampou, domainNameLabelScope=TenantReuse}, ipTags=[{ipTagType=hkjoxhqadudjartwooezaxl, tag=xywunkjglkmmwfpf}], publicIPPrefix={id=lvzxxyypkeqlflftmfn}, publicIPAddressVersion=IPv4, publicIPAllocationMethod=Dynamic}, sku={name=Basic, tier=Regional}, tags={key5442=qhpwpnylvmdthxazhxamnbhdfpf}}, privateIPAddressVersion=IPv4, applicationSecurityGroups=[{id=lvzxxyypkeqlflftmfn}], applicationGatewayBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}], loadBalancerBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}]}}], dscpConfiguration={id=lvzxxyypkeqlflftmfn}, auxiliaryMode=None, auxiliarySku=None}, tags={key9436=bjbadzbfvpszbsickv}}]}, securityProfile={uefiSettings={secureBootEnabled=true, vTpmEnabled=true}, encryptionAtHost=true, securityType=TrustedLaunch, encryptionIdentity={userAssignedIdentityResourceId=tnajlgbwcepmhytzb}, proxyAgentSettings={enabled=true, mode=Audit, keyIncarnationId=4, wireServer={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, imds={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, addProxyAgentExtension=true}}, diagnosticsProfile={bootDiagnostics={enabled=true, storageUri=pxuhtzehlfsqolbdleirgj}}, licenseType=ymwuemwuntbignqyvzqflvjpcdus, extensionsTimeBudget=dnyqmcijikzkltjav, scheduledEventsProfile={terminateNotificationProfile={notBeforeTimeout=owbwifqrlsdmm, enable=true}, osImageNotificationProfile={notBeforeTimeout=ataqykjdakdvyyzdspaqnhd, enable=true}}, userData=nwjvxe, capacityReservation={capacityReservationGroup={id=lvzxxyypkeqlflftmfn}}, applicationProfile={galleryApplications=[{tags=cmygipvpkegyclvpznfu, order=8, packageReferenceId=afrfkjdrtzftmwramfyu, configurationReference=nmfaspclhidtznslsps, treatFailureAsDeploymentFailure=true, enableAutomaticUpgrade=true}]}, vmExtensions=[{name=jkpmcxwuahpzwkvexgzpypk, properties={forceUpdateTag=dockqxgatsfzhctxrncuw, publisher=qesyfldbfoaexyoywhcxafdtdwcg, type=ptlmlzpbpbkfbu, typeHandlerVersion=crllsludntz, autoUpgradeMinorVersion=true, enableAutomaticUpgrade=true, settings={}, protectedSettings={}, suppressFailures=true, protectedSettingsFromKeyVault={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, provisionAfterExtensions=[onbtyoeifafiktrkmal]}}]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "computeApiVersion",
+ BinaryData.fromBytes("axcvphjtsdjzcwqczcglmq".getBytes(StandardCharsets.UTF_8)), "name",
+ BinaryData.fromBytes("dbozdvegpdvqxltqipvmqsfgunpe".getBytes(StandardCharsets.UTF_8)))))
+ .withResourceCount(23)
+ .withResourcePrefix("flivkboavfhjuiucwdjof"))
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN))),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkCancel_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkCreate_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkCancel - generated by [MinimumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkCreate_Example - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkCancelGeneratedByMinimumSetRule(
+ public static void virtualMachineBulkOperationsBulkCreateExampleGeneratedByMinimumSetRule(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkCancelOperationsWithResponse("myResourceGroup", "eastus2euap",
- new CancelOperationsContent().withOperationIds(Arrays.asList("a1b2c3d4-e5f6-7890-abcd-ef0123456789")),
+ .bulkCreateOperationWithResponse("rgBulkactions", "useast2euap",
+ new ExecuteCreateContent()
+ .withResourceConfigParameters(new ResourceProvisionPayload().withResourceCount(23))
+ .withExecutionParameters(new ExecutionParameters()),
com.azure.core.util.Context.NONE);
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
@@ -107,38 +1950,38 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkDeallocateOperationSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkDeallocate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkDeallocate - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkDeallocate - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkDeallocateGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkDeallocateGeneratedByMinimumSetRule(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
.bulkDeallocateOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteDeallocateContent()
- .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
- .withRetryWindowInMinutes(20)
- .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkDeallocate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkDeallocate_MaximumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkDeallocate - generated by [MinimumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkDeallocate_Example.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkDeallocateGeneratedByMinimumSetRule(
+ public static void virtualMachineBulkOperationsBulkDeallocateExample(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkDeallocateOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteDeallocateContent()
- .withExecutionParameters(new ExecutionParameters())
+ .bulkDeallocateOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteDeallocateContent()
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
com.azure.core.util.Context.NONE);
@@ -161,41 +2004,41 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkDeleteOperationSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkDelete_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkDelete_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkDelete - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkDelete - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkDeleteGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkDeleteGeneratedByMinimumSetRule(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
.bulkDeleteOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteDeleteContent()
- .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
- .withRetryWindowInMinutes(20)
- .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")))
- .withForceDeletion(true), com.azure.core.util.Context.NONE);
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkDelete_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkDelete_MaximumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkDelete - generated by [MinimumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkDelete_Example.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkDeleteGeneratedByMinimumSetRule(
+ public static void virtualMachineBulkOperationsBulkDeleteExample(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkDeleteOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteDeleteContent()
- .withExecutionParameters(new ExecutionParameters())
+ .bulkDeleteOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteDeleteContent()
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
- com.azure.core.util.Context.NONE);
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")))
+ .withForceDeletion(true), com.azure.core.util.Context.NONE);
}
}
```
@@ -211,34 +2054,34 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkGetOperationsStatusSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkGetOperationsStatus_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkGetOperationsStatus - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkGetOperationsStatus_Example - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkGetOperationsStatusGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkGetOperationsStatusExampleGeneratedByMinimumSetRule(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkGetOperationsStatusWithResponse("myResourceGroup", "eastus2euap",
- new GetOperationStatusContent().withOperationIds(Arrays.asList("a1b2c3d4-e5f6-7890-abcd-ef0123456789")),
+ .bulkGetOperationsStatusWithResponse("rgBulkactions", "useast2euap",
+ new GetOperationStatusContent().withOperationIds(Arrays.asList("406e7856-f94b-48ae-93ee-b062afee54e5")),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkGetOperationsStatus_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkGetOperationsStatus_MaximumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkGetOperationsStatus - generated by [MinimumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkGetOperationsStatus_Example.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkGetOperationsStatusGeneratedByMinimumSetRule(
+ public static void virtualMachineBulkOperationsBulkGetOperationsStatusExample(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkGetOperationsStatusWithResponse("myResourceGroup", "eastus2euap",
- new GetOperationStatusContent().withOperationIds(Arrays.asList("a1b2c3d4-e5f6-7890-abcd-ef0123456789")),
+ .bulkGetOperationsStatusWithResponse("rgBulkactions", "useast2euap",
+ new GetOperationStatusContent().withOperationIds(Arrays.asList("406e7856-f94b-48ae-93ee-b062afee54e5")),
com.azure.core.util.Context.NONE);
}
}
@@ -250,7 +2093,9 @@ public final class VirtualMachineBulkOperationsBulkGetOperationsStatusSamples {
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteHibernateContent;
import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceWithContext;
import com.azure.resourcemanager.compute.bulkactions.models.Resources;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourcesWithContext;
import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
import java.util.Arrays;
@@ -259,7 +2104,29 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkHibernateOperationSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkHibernate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkHibernate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkHibernate_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkHibernateExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkHibernateOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteHibernateContent()
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withResourcesWithContext(
+ new ResourcesWithContext().withResources(Arrays.asList(new ResourceWithContext().withResourceId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")
+ .withResourceContext("hibernateContext")))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkHibernate_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineBulkOperations_BulkHibernate - generated by [MinimumSet] rule.
@@ -275,24 +2142,92 @@ public final class VirtualMachineBulkOperationsBulkHibernateOperationSamples {
"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
com.azure.core.util.Context.NONE);
}
+}
+```
+### VirtualMachineBulkOperations_BulkListOperationErrors
+
+```java
+/**
+ * Samples for VirtualMachineBulkOperations BulkListOperationErrors.
+ */
+public final class VirtualMachineBulkOperationsBulkListOperationErrorsSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkHibernate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkHibernate - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkListOperationErrors_MinimumSet_Gen.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkHibernateGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkListOperationErrorsMinimumSetGen(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkHibernateOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteHibernateContent()
+ .bulkListOperationErrors("rgBulkactions", "useast2euap", null, com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkListOperationErrors_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkListOperationErrors_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkListOperationErrorsExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkListOperationErrors("rgBulkactions", "useast2euap", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualMachineBulkOperations_BulkReimageOperation
+
+```java
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteReimageRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.OSProfileProvisioningData;
+import com.azure.resourcemanager.compute.bulkactions.models.ReimagePayload;
+import com.azure.resourcemanager.compute.bulkactions.models.ReimageResourceOverride;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.Resources;
+import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineReimageParameters;
+import java.util.Arrays;
+
+/**
+ * Samples for VirtualMachineBulkOperations BulkReimageOperation.
+ */
+public final class VirtualMachineBulkOperationsBulkReimageOperationSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkReimage_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkReimage_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkReimageExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkReimageOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteReimageRequest()
.withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
- .withRetryWindowInMinutes(20)
+ .withRetryWindowInMinutes(19)
.withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")))
+ .withReimageParameters(new ReimagePayload()
+ .withBaseProfile(new VirtualMachineReimageParameters().withTempDisk(true)
+ .withExactVersion("zjmkrnqjmzs")
+ .withOsProfile(new OSProfileProvisioningData().withAdminPassword("fakeTokenPlaceholder")
+ .withCustomData("teyngslcznlxihiitqbul")))
+ .withResourceOverrides(Arrays.asList(new ReimageResourceOverride().withResourceId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")
+ .withProfile(new VirtualMachineReimageParameters().withTempDisk(true)
+ .withExactVersion("zjmkrnqjmzs")
+ .withOsProfile(new OSProfileProvisioningData().withAdminPassword("fakeTokenPlaceholder")
+ .withCustomData("teyngslcznlxihiitqbul")))))),
com.azure.core.util.Context.NONE);
}
}
@@ -304,7 +2239,9 @@ public final class VirtualMachineBulkOperationsBulkHibernateOperationSamples {
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteStartContent;
import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceWithContext;
import com.azure.resourcemanager.compute.bulkactions.models.Resources;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourcesWithContext;
import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
import java.util.Arrays;
@@ -313,42 +2250,182 @@ import java.util.Arrays;
*/
public final class VirtualMachineBulkOperationsBulkStartOperationSamples {
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkStart_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkStart_MinimumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkStart - generated by [MaximumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkStart - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkStartGeneratedByMaximumSetRule(
+ public static void virtualMachineBulkOperationsBulkStartGeneratedByMinimumSetRule(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
.bulkStartOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteStartContent()
- .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
- .withRetryWindowInMinutes(20)
- .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
"/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2026-06-06/VirtualMachineBulkOperations_BulkStart_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkStart_MaximumSet_Gen.json
*/
/**
- * Sample code: VirtualMachineBulkOperations_BulkStart - generated by [MinimumSet] rule.
+ * Sample code: VirtualMachineBulkOperations_BulkStart_Example.
*
* @param manager Entry point to ComputeBulkActionsManager.
*/
- public static void virtualMachineBulkOperationsBulkStartGeneratedByMinimumSetRule(
+ public static void virtualMachineBulkOperationsBulkStartExample(
com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
manager.virtualMachineBulkOperations()
- .bulkStartOperationWithResponse("myResourceGroup", "eastus2euap", new ExecuteStartContent()
- .withExecutionParameters(new ExecutionParameters())
- .withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"))),
+ .bulkStartOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteStartContent()
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withResourcesWithContext(
+ new ResourcesWithContext().withResources(Arrays.asList(new ResourceWithContext().withResourceId(
+ "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM")
+ .withResourceContext("startContext")))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### VirtualMachineBulkOperations_BulkVdiFlexCreateOperation
+
+```java
+import com.azure.core.util.BinaryData;
+import com.azure.resourcemanager.compute.bulkactions.models.AllocationStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.DistributionStrategy;
+import com.azure.resourcemanager.compute.bulkactions.models.EvictionPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteVdiCreateRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecutionParameters;
+import com.azure.resourcemanager.compute.bulkactions.models.FlexProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.OsType;
+import com.azure.resourcemanager.compute.bulkactions.models.PriorityProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.PriorityType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationType;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceProvisionVdiPayload;
+import com.azure.resourcemanager.compute.bulkactions.models.RetryPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.VmSizeProfile;
+import com.azure.resourcemanager.compute.bulkactions.models.ZoneAllocationPolicy;
+import com.azure.resourcemanager.compute.bulkactions.models.ZonePreference;
+import java.nio.charset.StandardCharsets;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for VirtualMachineBulkOperations BulkVdiFlexCreateOperation.
+ */
+public final class VirtualMachineBulkOperationsBulkVdiFlexCreateOperationSamples {
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkVdiFlexCreate_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkVdiFlexCreate_Example.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkVdiFlexCreateExample(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkVdiFlexCreateOperationWithResponse("rgBulkactions", "useast2euap", new ExecuteVdiCreateRequest()
+ .withResourceConfigParameters(new ResourceProvisionVdiPayload().withBaseProfile(mapOf("plan",
+ BinaryData.fromBytes(
+ "{name=iemasqqkbixbewezyrhnpntjd, publisher=bvggylbvfstnscuupuithafvvgc, product=bguuzrknnuohugjhernflurpx, promotionCode=bxgonranwqoryfkhkfaumdgz, version=uyxetqmmzvqianqv}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "zones", BinaryData.fromBytes("[wczj]".getBytes(StandardCharsets.UTF_8)), "identity",
+ BinaryData.fromBytes(
+ "{type=SystemAssigned, userAssignedIdentities={key7={}}}".getBytes(StandardCharsets.UTF_8)),
+ "extendedLocation",
+ BinaryData.fromBytes("{name=gbnxzymbdkxhwjpqkur, type=EdgeZone}".getBytes(StandardCharsets.UTF_8)),
+ "placement",
+ BinaryData.fromBytes(
+ "{zonePlacementPolicy=Any, includeZones=[inagtbtedobdea], excludeZones=[pvvwrhuhdpvbacwmesblpgwzk]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "tags", BinaryData.fromBytes("{key6824=cefndldgkx}".getBytes(StandardCharsets.UTF_8)), "properties",
+ BinaryData.fromBytes(
+ "{scheduledEventsPolicy={userInitiatedRedeploy={automaticallyApprove=true}, userInitiatedReboot={automaticallyApprove=true}, scheduledEventsAdditionalPublishingTargets={eventGridAndResourceGraph={enable=true, scheduledEventsApiVersion=lifncbftlkounuyfn}}, allInstancesDown={automaticallyApprove=true}}, storageProfile={imageReference={publisher=ojlplghybdamadvsrq, offer=uvnqoxhkxefqwbsvjgbswqy, sku=hajdxhjmlkx, version=u, sharedGalleryImageId=fz, communityGalleryImageId=tsfpcq, id=cdbrkpdicibtlliq}, osDisk={osType=Windows, encryptionSettings={diskEncryptionKey={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, keyEncryptionKey={keyUrl=mjjkvgpoohatw, sourceVault={id=lvzxxyypkeqlflftmfn}}, enabled=true}, name=opogpznvctmraoajgizcyrfvpt, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, diffDiskSettings={option=Local, placement=CacheDisk}, createOption=FromImage, diskSizeGB=2, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, deleteOption=Delete}, dataDisks=[{lun=7, name=nbthfzqsxyqvqnbgcljxbwyyoj, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, createOption=FromImage, diskSizeGB=19, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, sourceResource={id=qnukyordmomtjjqabovlsxl}, toBeDetached=true, detachOption=ForceDetach, deleteOption=Delete}], diskControllerType=SCSI}, hardwareProfile={vmSize=szrnjqwbruz, vmSizeProperties={vCpusAvailable=24, vCpusPerCore=6}}, additionalCapabilities={ultraSSDEnabled=true, hibernationEnabled=true}, osProfile={computerName=bplxnfp, adminUsername=fxzbi, adminPassword=, customData=hbdlirohsgnbrahscboc, windowsConfiguration={provisionVMAgent=true, enableAutomaticUpdates=true, timeZone=t, additionalUnattendContent=[{passName=OobeSystem, componentName=Microsoft-Windows-Shell-Setup, settingName=AutoLogon, content=rguazthnx}], patchSettings={patchMode=Manual, enableHotpatching=true, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, winRM={listeners=[{protocol=Http, certificateUrl=quhfapfpyeeocwvwtvuggoqqwt}]}}, linuxConfiguration={disablePasswordAuthentication=true, ssh={publicKeys=[{path=mrdfxnfjazxog, keyData=wfhrknkehgesontscqyrewfmhgwt}]}, provisionVMAgent=true, patchSettings={patchMode=ImageDefault, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, enableVMAgentPlatformUpdates=true}, secrets=[{sourceVault={id=lvzxxyypkeqlflftmfn}, vaultCertificates=[{certificateUrl=crgbpfdvlohwkupdjp, certificateStore=hyx}]}], allowExtensionOperations=true, requireGuestProvisionSignal=true}, networkProfile={networkInterfaces=[{properties={primary=true, deleteOption=Delete}, id=ymfxctb}], networkApiVersion=2020-11-01, networkInterfaceConfigurations=[{name=qrkzoctmzjketostzabnra, properties={primary=true, deleteOption=Delete, enableAcceleratedNetworking=true, disableTcpStateTracking=true, enableFpga=true, enableIPForwarding=true, networkSecurityGroup={id=lvzxxyypkeqlflftmfn}, dnsSettings={dnsServers=[tqcqopnanyyiavfwhqbkarxtrfqbww]}, ipConfigurations=[{name=gqymuvgzzfmxqvdadx, properties={subnet={id=lvzxxyypkeqlflftmfn}, primary=true, publicIPAddressConfiguration={name=cwxsqjijtwbsyqdwht, properties={idleTimeoutInMinutes=17, deleteOption=Delete, dnsSettings={domainNameLabel=fampou, domainNameLabelScope=TenantReuse}, ipTags=[{ipTagType=hkjoxhqadudjartwooezaxl, tag=xywunkjglkmmwfpf}], publicIPPrefix={id=lvzxxyypkeqlflftmfn}, publicIPAddressVersion=IPv4, publicIPAllocationMethod=Dynamic}, sku={name=Basic, tier=Regional}, tags={key5442=qhpwpnylvmdthxazhxamnbhdfpf}}, privateIPAddressVersion=IPv4, applicationSecurityGroups=[{id=lvzxxyypkeqlflftmfn}], applicationGatewayBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}], loadBalancerBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}]}}], dscpConfiguration={id=lvzxxyypkeqlflftmfn}, auxiliaryMode=None, auxiliarySku=None}, tags={key9436=bjbadzbfvpszbsickv}}]}, securityProfile={uefiSettings={secureBootEnabled=true, vTpmEnabled=true}, encryptionAtHost=true, securityType=TrustedLaunch, encryptionIdentity={userAssignedIdentityResourceId=tnajlgbwcepmhytzb}, proxyAgentSettings={enabled=true, mode=Audit, keyIncarnationId=4, wireServer={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, imds={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, addProxyAgentExtension=true}}, diagnosticsProfile={bootDiagnostics={enabled=true, storageUri=pxuhtzehlfsqolbdleirgj}}, licenseType=ymwuemwuntbignqyvzqflvjpcdus, extensionsTimeBudget=dnyqmcijikzkltjav, scheduledEventsProfile={terminateNotificationProfile={notBeforeTimeout=owbwifqrlsdmm, enable=true}, osImageNotificationProfile={notBeforeTimeout=ataqykjdakdvyyzdspaqnhd, enable=true}}, userData=nwjvxe, capacityReservation={capacityReservationGroup={id=lvzxxyypkeqlflftmfn}}, applicationProfile={galleryApplications=[{tags=cmygipvpkegyclvpznfu, order=8, packageReferenceId=afrfkjdrtzftmwramfyu, configurationReference=nmfaspclhidtznslsps, treatFailureAsDeploymentFailure=true, enableAutomaticUpgrade=true}]}, vmExtensions=[{name=jkpmcxwuahpzwkvexgzpypk, properties={forceUpdateTag=dockqxgatsfzhctxrncuw, publisher=qesyfldbfoaexyoywhcxafdtdwcg, type=ptlmlzpbpbkfbu, typeHandlerVersion=crllsludntz, autoUpgradeMinorVersion=true, enableAutomaticUpgrade=true, settings={}, protectedSettings={}, suppressFailures=true, protectedSettingsFromKeyVault={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, provisionAfterExtensions=[onbtyoeifafiktrkmal]}}]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "computeApiVersion",
+ BinaryData.fromBytes("axcvphjtsdjzcwqczcglmq".getBytes(StandardCharsets.UTF_8)), "name",
+ BinaryData.fromBytes("dbozdvegpdvqxltqipvmqsfgunpe".getBytes(StandardCharsets.UTF_8))))
+ .withResourceOverrides(Arrays.asList(mapOf("plan", BinaryData.fromBytes(
+ "{name=iemasqqkbixbewezyrhnpntjd, publisher=bvggylbvfstnscuupuithafvvgc, product=bguuzrknnuohugjhernflurpx, promotionCode=bxgonranwqoryfkhkfaumdgz, version=uyxetqmmzvqianqv}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "zones", BinaryData.fromBytes("[wczj]".getBytes(StandardCharsets.UTF_8)), "identity",
+ BinaryData.fromBytes(
+ "{type=SystemAssigned, userAssignedIdentities={key7={}}}".getBytes(StandardCharsets.UTF_8)),
+ "extendedLocation",
+ BinaryData
+ .fromBytes("{name=gbnxzymbdkxhwjpqkur, type=EdgeZone}".getBytes(StandardCharsets.UTF_8)),
+ "placement",
+ BinaryData.fromBytes(
+ "{zonePlacementPolicy=Any, includeZones=[inagtbtedobdea], excludeZones=[pvvwrhuhdpvbacwmesblpgwzk]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "tags", BinaryData.fromBytes("{key6824=cefndldgkx}".getBytes(StandardCharsets.UTF_8)),
+ "properties",
+ BinaryData.fromBytes(
+ "{scheduledEventsPolicy={userInitiatedRedeploy={automaticallyApprove=true}, userInitiatedReboot={automaticallyApprove=true}, scheduledEventsAdditionalPublishingTargets={eventGridAndResourceGraph={enable=true, scheduledEventsApiVersion=lifncbftlkounuyfn}}, allInstancesDown={automaticallyApprove=true}}, storageProfile={imageReference={publisher=ojlplghybdamadvsrq, offer=uvnqoxhkxefqwbsvjgbswqy, sku=hajdxhjmlkx, version=u, sharedGalleryImageId=fz, communityGalleryImageId=tsfpcq, id=cdbrkpdicibtlliq}, osDisk={osType=Windows, encryptionSettings={diskEncryptionKey={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, keyEncryptionKey={keyUrl=mjjkvgpoohatw, sourceVault={id=lvzxxyypkeqlflftmfn}}, enabled=true}, name=opogpznvctmraoajgizcyrfvpt, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, diffDiskSettings={option=Local, placement=CacheDisk}, createOption=FromImage, diskSizeGB=2, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, deleteOption=Delete}, dataDisks=[{lun=7, name=nbthfzqsxyqvqnbgcljxbwyyoj, vhd={uri=elpzggtxubepzgjqvdbjmbu}, image={uri=elpzggtxubepzgjqvdbjmbu}, caching=None, writeAcceleratorEnabled=true, createOption=FromImage, diskSizeGB=19, managedDisk={storageAccountType=Standard_LRS, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}, securityProfile={securityEncryptionType=VMGuestStateOnly, diskEncryptionSet={id=magvkzhdmzhktjlqkkk}}, id=numddbqmkxuu}, sourceResource={id=qnukyordmomtjjqabovlsxl}, toBeDetached=true, detachOption=ForceDetach, deleteOption=Delete}], diskControllerType=SCSI}, hardwareProfile={vmSize=szrnjqwbruz, vmSizeProperties={vCpusAvailable=24, vCpusPerCore=6}}, additionalCapabilities={ultraSSDEnabled=true, hibernationEnabled=true}, osProfile={computerName=bplxnfp, adminUsername=fxzbi, adminPassword=, customData=hbdlirohsgnbrahscboc, windowsConfiguration={provisionVMAgent=true, enableAutomaticUpdates=true, timeZone=t, additionalUnattendContent=[{passName=OobeSystem, componentName=Microsoft-Windows-Shell-Setup, settingName=AutoLogon, content=rguazthnx}], patchSettings={patchMode=Manual, enableHotpatching=true, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, winRM={listeners=[{protocol=Http, certificateUrl=quhfapfpyeeocwvwtvuggoqqwt}]}}, linuxConfiguration={disablePasswordAuthentication=true, ssh={publicKeys=[{path=mrdfxnfjazxog, keyData=wfhrknkehgesontscqyrewfmhgwt}]}, provisionVMAgent=true, patchSettings={patchMode=ImageDefault, assessmentMode=ImageDefault, automaticByPlatformSettings={rebootSetting=Unknown, bypassPlatformSafetyChecksOnUserSchedule=true}}, enableVMAgentPlatformUpdates=true}, secrets=[{sourceVault={id=lvzxxyypkeqlflftmfn}, vaultCertificates=[{certificateUrl=crgbpfdvlohwkupdjp, certificateStore=hyx}]}], allowExtensionOperations=true, requireGuestProvisionSignal=true}, networkProfile={networkInterfaces=[{properties={primary=true, deleteOption=Delete}, id=ymfxctb}], networkApiVersion=2020-11-01, networkInterfaceConfigurations=[{name=qrkzoctmzjketostzabnra, properties={primary=true, deleteOption=Delete, enableAcceleratedNetworking=true, disableTcpStateTracking=true, enableFpga=true, enableIPForwarding=true, networkSecurityGroup={id=lvzxxyypkeqlflftmfn}, dnsSettings={dnsServers=[tqcqopnanyyiavfwhqbkarxtrfqbww]}, ipConfigurations=[{name=gqymuvgzzfmxqvdadx, properties={subnet={id=lvzxxyypkeqlflftmfn}, primary=true, publicIPAddressConfiguration={name=cwxsqjijtwbsyqdwht, properties={idleTimeoutInMinutes=17, deleteOption=Delete, dnsSettings={domainNameLabel=fampou, domainNameLabelScope=TenantReuse}, ipTags=[{ipTagType=hkjoxhqadudjartwooezaxl, tag=xywunkjglkmmwfpf}], publicIPPrefix={id=lvzxxyypkeqlflftmfn}, publicIPAddressVersion=IPv4, publicIPAllocationMethod=Dynamic}, sku={name=Basic, tier=Regional}, tags={key5442=qhpwpnylvmdthxazhxamnbhdfpf}}, privateIPAddressVersion=IPv4, applicationSecurityGroups=[{id=lvzxxyypkeqlflftmfn}], applicationGatewayBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}], loadBalancerBackendAddressPools=[{id=lvzxxyypkeqlflftmfn}]}}], dscpConfiguration={id=lvzxxyypkeqlflftmfn}, auxiliaryMode=None, auxiliarySku=None}, tags={key9436=bjbadzbfvpszbsickv}}]}, securityProfile={uefiSettings={secureBootEnabled=true, vTpmEnabled=true}, encryptionAtHost=true, securityType=TrustedLaunch, encryptionIdentity={userAssignedIdentityResourceId=tnajlgbwcepmhytzb}, proxyAgentSettings={enabled=true, mode=Audit, keyIncarnationId=4, wireServer={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, imds={mode=Audit, inVMAccessControlProfileReferenceId=xvlzroy}, addProxyAgentExtension=true}}, diagnosticsProfile={bootDiagnostics={enabled=true, storageUri=pxuhtzehlfsqolbdleirgj}}, licenseType=ymwuemwuntbignqyvzqflvjpcdus, extensionsTimeBudget=dnyqmcijikzkltjav, scheduledEventsProfile={terminateNotificationProfile={notBeforeTimeout=owbwifqrlsdmm, enable=true}, osImageNotificationProfile={notBeforeTimeout=ataqykjdakdvyyzdspaqnhd, enable=true}}, userData=nwjvxe, capacityReservation={capacityReservationGroup={id=lvzxxyypkeqlflftmfn}}, applicationProfile={galleryApplications=[{tags=cmygipvpkegyclvpznfu, order=8, packageReferenceId=afrfkjdrtzftmwramfyu, configurationReference=nmfaspclhidtznslsps, treatFailureAsDeploymentFailure=true, enableAutomaticUpgrade=true}]}, vmExtensions=[{name=jkpmcxwuahpzwkvexgzpypk, properties={forceUpdateTag=dockqxgatsfzhctxrncuw, publisher=qesyfldbfoaexyoywhcxafdtdwcg, type=ptlmlzpbpbkfbu, typeHandlerVersion=crllsludntz, autoUpgradeMinorVersion=true, enableAutomaticUpgrade=true, settings={}, protectedSettings={}, suppressFailures=true, protectedSettingsFromKeyVault={secretUrl=vzkogocyw, sourceVault={id=lvzxxyypkeqlflftmfn}}, provisionAfterExtensions=[onbtyoeifafiktrkmal]}}]}"
+ .getBytes(StandardCharsets.UTF_8)),
+ "computeApiVersion",
+ BinaryData.fromBytes("axcvphjtsdjzcwqczcglmq".getBytes(StandardCharsets.UTF_8)), "name",
+ BinaryData.fromBytes("dbozdvegpdvqxltqipvmqsfgunpe".getBytes(StandardCharsets.UTF_8)))))
+ .withResourceCount(10)
+ .withResourcePrefix("mwbopevxbjcunljvruov")
+ .withFlexProperties(new FlexProperties()
+ .withVmSizeProfiles(Arrays.asList(new VmSizeProfile().withName("frbnnpdkq").withRank(7)))
+ .withOsType(OsType.WINDOWS)
+ .withPriorityProfile(new PriorityProfile().withType(PriorityType.REGULAR)
+ .withMaxPricePerVM(23.0D)
+ .withEvictionPolicy(EvictionPolicy.DELETE)
+ .withAllocationStrategy(AllocationStrategy.LOWEST_PRICE))
+ .withZoneAllocationPolicy(new ZoneAllocationPolicy()
+ .withDistributionStrategy(DistributionStrategy.BEST_EFFORT_SINGLE_ZONE)
+ .withZonePreferences(Arrays
+ .asList(new ZonePreference().withZone("ixksjnaxwelhfpsoyjfaezievquqv").withRank(19))))
+ .withMinCapacity(5)))
+ .withExecutionParameters(new ExecutionParameters().withRetryPolicy(new RetryPolicy().withRetryCount(2)
+ .withRetryWindowInMinutes(19)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN))),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-07-06-preview/VirtualMachineBulkOperations_BulkVdiFlexCreate_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: VirtualMachineBulkOperations_BulkVdiFlexCreate_Example - generated by [MinimumSet] rule.
+ *
+ * @param manager Entry point to ComputeBulkActionsManager.
+ */
+ public static void virtualMachineBulkOperationsBulkVdiFlexCreateExampleGeneratedByMinimumSetRule(
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager) {
+ manager.virtualMachineBulkOperations()
+ .bulkVdiFlexCreateOperationWithResponse("rgBulkactions", "useast2euap",
+ new ExecuteVdiCreateRequest()
+ .withResourceConfigParameters(new ResourceProvisionVdiPayload().withResourceCount(10)
+ .withFlexProperties(new FlexProperties()
+ .withVmSizeProfiles(
+ Arrays.asList(new VmSizeProfile().withName("Standard_D2ads_v5").withRank(7)))
+ .withOsType(OsType.WINDOWS)
+ .withPriorityProfile(new PriorityProfile())))
+ .withExecutionParameters(new ExecutionParameters()),
com.azure.core.util.Context.NONE);
}
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
}
```
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/pom.xml b/sdk/compute/azure-resourcemanager-compute-bulkactions/pom.xml
index fe2ad7a66df0..f56b50a8a104 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/pom.xml
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for Compute BulkActions Management
- This package contains Microsoft Azure SDK for Compute BulkActions Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-06-06.
+ This package contains Microsoft Azure SDK for Compute BulkActions Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-07-06-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/ComputeBulkActionsManager.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/ComputeBulkActionsManager.java
index c711dbe53461..b4c9e256fbfc 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/ComputeBulkActionsManager.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/ComputeBulkActionsManager.java
@@ -25,10 +25,24 @@
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.compute.bulkactions.fluent.ComputeBulkActionsManagementClient;
+import com.azure.resourcemanager.compute.bulkactions.implementation.BulkCreateCustomsImpl;
import com.azure.resourcemanager.compute.bulkactions.implementation.ComputeBulkActionsManagementClientBuilder;
+import com.azure.resourcemanager.compute.bulkactions.implementation.LaunchBulkInstancesOperationsImpl;
+import com.azure.resourcemanager.compute.bulkactions.implementation.OccurrenceExtensionsImpl;
+import com.azure.resourcemanager.compute.bulkactions.implementation.OccurrencesImpl;
import com.azure.resourcemanager.compute.bulkactions.implementation.OperationsImpl;
+import com.azure.resourcemanager.compute.bulkactions.implementation.ScheduledActionExtensionsImpl;
+import com.azure.resourcemanager.compute.bulkactions.implementation.ScheduledActionOperationStatusImpl;
+import com.azure.resourcemanager.compute.bulkactions.implementation.ScheduledActionsImpl;
import com.azure.resourcemanager.compute.bulkactions.implementation.VirtualMachineBulkOperationsImpl;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustoms;
+import com.azure.resourcemanager.compute.bulkactions.models.LaunchBulkInstancesOperations;
+import com.azure.resourcemanager.compute.bulkactions.models.OccurrenceExtensions;
+import com.azure.resourcemanager.compute.bulkactions.models.Occurrences;
import com.azure.resourcemanager.compute.bulkactions.models.Operations;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionExtensions;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionOperationStatus;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActions;
import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineBulkOperations;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
@@ -46,6 +60,20 @@ public final class ComputeBulkActionsManager {
private VirtualMachineBulkOperations virtualMachineBulkOperations;
+ private LaunchBulkInstancesOperations launchBulkInstancesOperations;
+
+ private BulkCreateCustoms bulkCreateCustoms;
+
+ private ScheduledActions scheduledActions;
+
+ private ScheduledActionExtensions scheduledActionExtensions;
+
+ private ScheduledActionOperationStatus scheduledActionOperationStatus;
+
+ private Occurrences occurrences;
+
+ private OccurrenceExtensions occurrenceExtensions;
+
private final ComputeBulkActionsManagementClient clientObject;
private ComputeBulkActionsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -286,6 +314,94 @@ public VirtualMachineBulkOperations virtualMachineBulkOperations() {
return virtualMachineBulkOperations;
}
+ /**
+ * Gets the resource collection API of LaunchBulkInstancesOperations. It manages
+ * LocationBasedLaunchBulkInstancesOperation.
+ *
+ * @return Resource collection API of LaunchBulkInstancesOperations.
+ */
+ public LaunchBulkInstancesOperations launchBulkInstancesOperations() {
+ if (this.launchBulkInstancesOperations == null) {
+ this.launchBulkInstancesOperations
+ = new LaunchBulkInstancesOperationsImpl(clientObject.getLaunchBulkInstancesOperations(), this);
+ }
+ return launchBulkInstancesOperations;
+ }
+
+ /**
+ * Gets the resource collection API of BulkCreateCustoms. It manages LocationBasedBulkCreateCustom.
+ *
+ * @return Resource collection API of BulkCreateCustoms.
+ */
+ public BulkCreateCustoms bulkCreateCustoms() {
+ if (this.bulkCreateCustoms == null) {
+ this.bulkCreateCustoms = new BulkCreateCustomsImpl(clientObject.getBulkCreateCustoms(), this);
+ }
+ return bulkCreateCustoms;
+ }
+
+ /**
+ * Gets the resource collection API of ScheduledActions. It manages ScheduledAction.
+ *
+ * @return Resource collection API of ScheduledActions.
+ */
+ public ScheduledActions scheduledActions() {
+ if (this.scheduledActions == null) {
+ this.scheduledActions = new ScheduledActionsImpl(clientObject.getScheduledActions(), this);
+ }
+ return scheduledActions;
+ }
+
+ /**
+ * Gets the resource collection API of ScheduledActionExtensions.
+ *
+ * @return Resource collection API of ScheduledActionExtensions.
+ */
+ public ScheduledActionExtensions scheduledActionExtensions() {
+ if (this.scheduledActionExtensions == null) {
+ this.scheduledActionExtensions
+ = new ScheduledActionExtensionsImpl(clientObject.getScheduledActionExtensions(), this);
+ }
+ return scheduledActionExtensions;
+ }
+
+ /**
+ * Gets the resource collection API of ScheduledActionOperationStatus.
+ *
+ * @return Resource collection API of ScheduledActionOperationStatus.
+ */
+ public ScheduledActionOperationStatus scheduledActionOperationStatus() {
+ if (this.scheduledActionOperationStatus == null) {
+ this.scheduledActionOperationStatus
+ = new ScheduledActionOperationStatusImpl(clientObject.getScheduledActionOperationStatus(), this);
+ }
+ return scheduledActionOperationStatus;
+ }
+
+ /**
+ * Gets the resource collection API of Occurrences.
+ *
+ * @return Resource collection API of Occurrences.
+ */
+ public Occurrences occurrences() {
+ if (this.occurrences == null) {
+ this.occurrences = new OccurrencesImpl(clientObject.getOccurrences(), this);
+ }
+ return occurrences;
+ }
+
+ /**
+ * Gets the resource collection API of OccurrenceExtensions.
+ *
+ * @return Resource collection API of OccurrenceExtensions.
+ */
+ public OccurrenceExtensions occurrenceExtensions() {
+ if (this.occurrenceExtensions == null) {
+ this.occurrenceExtensions = new OccurrenceExtensionsImpl(clientObject.getOccurrenceExtensions(), this);
+ }
+ return occurrenceExtensions;
+ }
+
/**
* Gets wrapped service client ComputeBulkActionsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/BulkCreateCustomsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/BulkCreateCustomsClient.java
new file mode 100644
index 000000000000..e688f6148a1f
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/BulkCreateCustomsClient.java
@@ -0,0 +1,314 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedBulkCreateCustomInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in BulkCreateCustomsClient.
+ */
+public interface BulkCreateCustomsClient {
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String location, String name,
+ Context context);
+
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedBulkCreateCustomInner get(String resourceGroupName, String location, String name);
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAsyncOperationStatusWithResponse(String location, String asyncOperationId,
+ Context context);
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner getAsyncOperationStatus(String location, String asyncOperationId);
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedBulkCreateCustomInner> beginCreateOrUpdate(
+ String resourceGroupName, String location, String name, LocationBasedBulkCreateCustomInner resource);
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedBulkCreateCustomInner> beginCreateOrUpdate(
+ String resourceGroupName, String location, String name, LocationBasedBulkCreateCustomInner resource,
+ Context context);
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedBulkCreateCustomInner createOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource);
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedBulkCreateCustomInner createOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource, Context context);
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context);
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name, Boolean deleteInstances, Context context);
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name,
+ Context context);
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name, Context context);
+
+ /**
+ * List BulkCreateCustom resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of BulkCreateCustom resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String location);
+
+ /**
+ * List BulkCreateCustom resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of BulkCreateCustom resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String location,
+ Context context);
+
+ /**
+ * List BulkCreateCustom resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of BulkCreateCustom resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location);
+
+ /**
+ * List BulkCreateCustom resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of BulkCreateCustom resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkActionsManagementClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkActionsManagementClient.java
index 7da885fc87c6..101e7dd5d384 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkActionsManagementClient.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkActionsManagementClient.java
@@ -59,4 +59,53 @@ public interface ComputeBulkActionsManagementClient {
* @return the VirtualMachineBulkOperationsClient object.
*/
VirtualMachineBulkOperationsClient getVirtualMachineBulkOperations();
+
+ /**
+ * Gets the LaunchBulkInstancesOperationsClient object to access its operations.
+ *
+ * @return the LaunchBulkInstancesOperationsClient object.
+ */
+ LaunchBulkInstancesOperationsClient getLaunchBulkInstancesOperations();
+
+ /**
+ * Gets the BulkCreateCustomsClient object to access its operations.
+ *
+ * @return the BulkCreateCustomsClient object.
+ */
+ BulkCreateCustomsClient getBulkCreateCustoms();
+
+ /**
+ * Gets the ScheduledActionsClient object to access its operations.
+ *
+ * @return the ScheduledActionsClient object.
+ */
+ ScheduledActionsClient getScheduledActions();
+
+ /**
+ * Gets the ScheduledActionExtensionsClient object to access its operations.
+ *
+ * @return the ScheduledActionExtensionsClient object.
+ */
+ ScheduledActionExtensionsClient getScheduledActionExtensions();
+
+ /**
+ * Gets the ScheduledActionOperationStatusClient object to access its operations.
+ *
+ * @return the ScheduledActionOperationStatusClient object.
+ */
+ ScheduledActionOperationStatusClient getScheduledActionOperationStatus();
+
+ /**
+ * Gets the OccurrencesClient object to access its operations.
+ *
+ * @return the OccurrencesClient object.
+ */
+ OccurrencesClient getOccurrences();
+
+ /**
+ * Gets the OccurrenceExtensionsClient object to access its operations.
+ *
+ * @return the OccurrenceExtensionsClient object.
+ */
+ OccurrenceExtensionsClient getOccurrenceExtensions();
}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java
new file mode 100644
index 000000000000..eb7c0a3628e2
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java
@@ -0,0 +1,350 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.VirtualMachineInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in LaunchBulkInstancesOperationsClient.
+ */
+public interface LaunchBulkInstancesOperationsClient {
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String location,
+ String name, Context context);
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner get(String resourceGroupName, String location, String name);
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getOperationStatusWithResponse(String location, String asyncOperationId,
+ Context context);
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner getOperationStatus(String location, String asyncOperationId);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name, Boolean deleteInstances, Context context);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name,
+ Context context);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name, Context context);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String location);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String location, Context context);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location, Context context);
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachines(String resourceGroupName, String location, String name);
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachines(String resourceGroupName, String location, String name,
+ String filter, String skiptoken, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrenceExtensionsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrenceExtensionsClient.java
new file mode 100644
index 000000000000..1f228a7670b8
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrenceExtensionsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OccurrenceExtensionResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OccurrenceExtensionsClient.
+ */
+public interface OccurrenceExtensionsClient {
+ /**
+ * List OccurrenceExtensionResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OccurrenceExtensionResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOccurrenceByVms(String resourceUri);
+
+ /**
+ * List OccurrenceExtensionResource resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a OccurrenceExtensionResource list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOccurrenceByVms(String resourceUri, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrencesClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrencesClient.java
new file mode 100644
index 000000000000..aa2a61959c45
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OccurrencesClient.java
@@ -0,0 +1,249 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OccurrenceInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OccurrenceResourceInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOccurrenceRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.DelayRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in OccurrencesClient.
+ */
+public interface OccurrencesClient {
+ /**
+ * Get a Occurrence.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Occurrence along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String scheduledActionName, String occurrenceId,
+ Context context);
+
+ /**
+ * Get a Occurrence.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a Occurrence.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OccurrenceInner get(String resourceGroupName, String scheduledActionName, String occurrenceId);
+
+ /**
+ * List Occurrence resources by ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Occurrence list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByScheduledAction(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * List Occurrence resources by ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Occurrence list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByScheduledAction(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * List resources attached to Scheduled Actions for the given occurrence.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of OccurrenceResource items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResources(String resourceGroupName, String scheduledActionName,
+ String occurrenceId);
+
+ /**
+ * List resources attached to Scheduled Actions for the given occurrence.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of OccurrenceResource items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResources(String resourceGroupName, String scheduledActionName,
+ String occurrenceId, Context context);
+
+ /**
+ * Cancel the occurrence so its pending operations do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginCancel(
+ String resourceGroupName, String scheduledActionName, String occurrenceId, CancelOccurrenceRequest body);
+
+ /**
+ * Cancel the occurrence so its pending operations do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginCancel(
+ String resourceGroupName, String scheduledActionName, String occurrenceId, CancelOccurrenceRequest body,
+ Context context);
+
+ /**
+ * Cancel the occurrence so its pending operations do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner cancel(String resourceGroupName, String scheduledActionName, String occurrenceId,
+ CancelOccurrenceRequest body);
+
+ /**
+ * Cancel the occurrence so its pending operations do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner cancel(String resourceGroupName, String scheduledActionName, String occurrenceId,
+ CancelOccurrenceRequest body, Context context);
+
+ /**
+ * Delay the occurrence to a later time.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner>
+ beginDelay(String resourceGroupName, String scheduledActionName, String occurrenceId, DelayRequest body);
+
+ /**
+ * Delay the occurrence to a later time.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginDelay(
+ String resourceGroupName, String scheduledActionName, String occurrenceId, DelayRequest body, Context context);
+
+ /**
+ * Delay the occurrence to a later time.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner delay(String resourceGroupName, String scheduledActionName, String occurrenceId,
+ DelayRequest body);
+
+ /**
+ * Delay the occurrence to a later time.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param occurrenceId The name of the Occurrence.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner delay(String resourceGroupName, String scheduledActionName, String occurrenceId,
+ DelayRequest body, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionExtensionsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionExtensionsClient.java
new file mode 100644
index 000000000000..b0286489fc22
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionExtensionsClient.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ScheduledActionResourcesInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ScheduledActionExtensionsClient.
+ */
+public interface ScheduledActionExtensionsClient {
+ /**
+ * List ScheduledActionResources resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledActionResources list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVms(String resourceUri);
+
+ /**
+ * List ScheduledActionResources resources by parent.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledActionResources list operation as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVms(String resourceUri, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionOperationStatusClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionOperationStatusClient.java
new file mode 100644
index 000000000000..55c5614efe8f
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionOperationStatusClient.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ScheduledActionOperationStatusClient.
+ */
+public interface ScheduledActionOperationStatusClient {
+ /**
+ * Get the status of a ScheduledActions asynchronous operation. Both the `Azure-AsyncOperation` and `Location`
+ * headers returned by long-running operations point at this endpoint.
+ *
+ * @param location The location name.
+ * @param operationId The operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a ScheduledActions asynchronous operation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String location, String operationId, Context context);
+
+ /**
+ * Get the status of a ScheduledActions asynchronous operation. Both the `Azure-AsyncOperation` and `Location`
+ * headers returned by long-running operations point at this endpoint.
+ *
+ * @param location The location name.
+ * @param operationId The operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a ScheduledActions asynchronous operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner get(String location, String operationId);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionsClient.java
new file mode 100644
index 000000000000..1b0414d2cae8
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ScheduledActionsClient.java
@@ -0,0 +1,692 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OccurrenceInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ScheduledActionInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ScheduledActionResourceInner;
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOccurrenceRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceAttachRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceDetachRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourcePatchRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ScheduledActionsClient.
+ */
+public interface ScheduledActionsClient {
+ /**
+ * Get a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ScheduledAction along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * Get a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a ScheduledAction.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduledActionInner getByResourceGroup(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Create a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ScheduledActionInner> beginCreateOrUpdate(String resourceGroupName,
+ String scheduledActionName, ScheduledActionInner resource);
+
+ /**
+ * Create a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ScheduledActionInner> beginCreateOrUpdate(String resourceGroupName,
+ String scheduledActionName, ScheduledActionInner resource, Context context);
+
+ /**
+ * Create a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduledActionInner createOrUpdate(String resourceGroupName, String scheduledActionName,
+ ScheduledActionInner resource);
+
+ /**
+ * Create a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ScheduledActionInner createOrUpdate(String resourceGroupName, String scheduledActionName,
+ ScheduledActionInner resource, Context context);
+
+ /**
+ * Update a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String resourceGroupName, String scheduledActionName,
+ ScheduledActionUpdate properties);
+
+ /**
+ * Update a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the scheduled action resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpdate(String resourceGroupName, String scheduledActionName,
+ ScheduledActionUpdate properties, Context context);
+
+ /**
+ * Update a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String resourceGroupName, String scheduledActionName, ScheduledActionUpdate properties);
+
+ /**
+ * Update a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param properties The resource properties to be updated.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void update(String resourceGroupName, String scheduledActionName, ScheduledActionUpdate properties,
+ Context context);
+
+ /**
+ * Delete a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Delete a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * Delete a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Delete a ScheduledAction.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String scheduledActionName, Context context);
+
+ /**
+ * List ScheduledAction resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List ScheduledAction resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List ScheduledAction resources by subscription ID.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List ScheduledAction resources by subscription ID.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a ScheduledAction list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+
+ /**
+ * List resources attached to Scheduled Actions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of ScheduledActionResource items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResources(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * List resources attached to Scheduled Actions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return paged collection of ScheduledActionResource items as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listResources(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * Attach resources to the scheduled action so they are included in future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner>
+ beginAttachResources(String resourceGroupName, String scheduledActionName, ResourceAttachRequest body);
+
+ /**
+ * Attach resources to the scheduled action so they are included in future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginAttachResources(
+ String resourceGroupName, String scheduledActionName, ResourceAttachRequest body, Context context);
+
+ /**
+ * Attach resources to the scheduled action so they are included in future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner attachResources(String resourceGroupName, String scheduledActionName,
+ ResourceAttachRequest body);
+
+ /**
+ * Attach resources to the scheduled action so they are included in future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner attachResources(String resourceGroupName, String scheduledActionName,
+ ResourceAttachRequest body, Context context);
+
+ /**
+ * Detach resources from the scheduled action so they are excluded from future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner>
+ beginDetachResources(String resourceGroupName, String scheduledActionName, ResourceDetachRequest body);
+
+ /**
+ * Detach resources from the scheduled action so they are excluded from future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginDetachResources(
+ String resourceGroupName, String scheduledActionName, ResourceDetachRequest body, Context context);
+
+ /**
+ * Detach resources from the scheduled action so they are excluded from future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner detachResources(String resourceGroupName, String scheduledActionName,
+ ResourceDetachRequest body);
+
+ /**
+ * Detach resources from the scheduled action so they are excluded from future occurrences.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner detachResources(String resourceGroupName, String scheduledActionName,
+ ResourceDetachRequest body, Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource along
+ * with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response patchResourcesWithResponse(String resourceGroupName,
+ String scheduledActionName, ResourcePatchRequest body, Context context);
+
+ /**
+ * A synchronous resource action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner patchResources(String resourceGroupName, String scheduledActionName,
+ ResourcePatchRequest body);
+
+ /**
+ * Disable the scheduled action so its future occurrences do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDisable(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Disable the scheduled action so its future occurrences do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDisable(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * Disable the scheduled action so its future occurrences do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void disable(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Disable the scheduled action so its future occurrences do not run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void disable(String resourceGroupName, String scheduledActionName, Context context);
+
+ /**
+ * Enable a previously disabled scheduled action so its future occurrences run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginEnable(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Enable a previously disabled scheduled action so its future occurrences run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginEnable(String resourceGroupName, String scheduledActionName,
+ Context context);
+
+ /**
+ * Enable a previously disabled scheduled action so its future occurrences run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void enable(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Enable a previously disabled scheduled action so its future occurrences run.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void enable(String resourceGroupName, String scheduledActionName, Context context);
+
+ /**
+ * Cancel the next scheduled occurrence of the scheduled action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner>
+ beginCancelNextOccurrence(String resourceGroupName, String scheduledActionName, CancelOccurrenceRequest body);
+
+ /**
+ * Cancel the next scheduled occurrence of the scheduled action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the response from scheduled action resource requests, which
+ * contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ResourceOperationResponseInner> beginCancelNextOccurrence(
+ String resourceGroupName, String scheduledActionName, CancelOccurrenceRequest body, Context context);
+
+ /**
+ * Cancel the next scheduled occurrence of the scheduled action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner cancelNextOccurrence(String resourceGroupName, String scheduledActionName,
+ CancelOccurrenceRequest body);
+
+ /**
+ * Cancel the next scheduled occurrence of the scheduled action.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param body The content of the action request.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from scheduled action resource requests, which contains the status of each resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ResourceOperationResponseInner cancelNextOccurrence(String resourceGroupName, String scheduledActionName,
+ CancelOccurrenceRequest body, Context context);
+
+ /**
+ * Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OccurrenceInner> beginTriggerManualOccurrence(String resourceGroupName,
+ String scheduledActionName);
+
+ /**
+ * Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of concrete proxy resource types can be created by aliasing this type
+ * using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, OccurrenceInner> beginTriggerManualOccurrence(String resourceGroupName,
+ String scheduledActionName, Context context);
+
+ /**
+ * Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OccurrenceInner triggerManualOccurrence(String resourceGroupName, String scheduledActionName);
+
+ /**
+ * Trigger a manual occurrence of the scheduled action immediately, outside its normal schedule.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param scheduledActionName The name of the ScheduledAction.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OccurrenceInner triggerManualOccurrence(String resourceGroupName, String scheduledActionName, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java
index de89952e8a5f..c952d4c8d7ed 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java
@@ -6,19 +6,28 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.AcknowledgeBulkOperationErrorsResponseInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.CreateResourceOperationResponseInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeallocateResourceOperationResponseInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeleteResourceOperationResponseInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.GetOperationStatusResponseInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ReimageResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ResourceOperationInner;
import com.azure.resourcemanager.compute.bulkactions.fluent.models.StartResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.AcknowledgeBulkOperationErrorsRequest;
import com.azure.resourcemanager.compute.bulkactions.models.CancelOperationsContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteCreateContent;
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteDeallocateContent;
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteDeleteContent;
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteHibernateContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteReimageRequest;
import com.azure.resourcemanager.compute.bulkactions.models.ExecuteStartContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteVdiCreateRequest;
import com.azure.resourcemanager.compute.bulkactions.models.GetOperationStatusContent;
/**
@@ -124,6 +133,72 @@ Response bulkStartOperationWithResponse(Str
StartResourceOperationResponseInner bulkStartOperation(String resourceGroupName, String location,
ExecuteStartContent requestBody);
+ /**
+ * BulkCreate: Execute create operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkCreateOperationWithResponse(String resourceGroupName,
+ String location, ExecuteCreateContent requestBody, Context context);
+
+ /**
+ * BulkCreate: Execute create operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CreateResourceOperationResponseInner bulkCreateOperation(String resourceGroupName, String location,
+ ExecuteCreateContent requestBody);
+
+ /**
+ * BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation supports flex properties
+ * to give options on Sku and zone selection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkVdiFlexCreateOperationWithResponse(String resourceGroupName,
+ String location, ExecuteVdiCreateRequest requestBody, Context context);
+
+ /**
+ * BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation supports flex properties
+ * to give options on Sku and zone selection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CreateResourceOperationResponseInner bulkVdiFlexCreateOperation(String resourceGroupName, String location,
+ ExecuteVdiCreateRequest requestBody);
+
/**
* BulkDelete: Execute delete operation for a batch of virtual machines, this operation is triggered as soon as
* Computeschedule receives it.
@@ -218,4 +293,97 @@ Response bulkCancelOperationsWithResponse(String
@ServiceMethod(returns = ReturnType.SINGLE)
CancelOperationsResponseInner bulkCancelOperations(String resourceGroupName, String location,
CancelOperationsContent requestBody);
+
+ /**
+ * BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a reimage request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkReimageOperationWithResponse(String resourceGroupName,
+ String location, ExecuteReimageRequest requestBody, Context context);
+
+ /**
+ * BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a reimage request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReimageResourceOperationResponseInner bulkReimageOperation(String resourceGroupName, String location,
+ ExecuteReimageRequest requestBody);
+
+ /**
+ * BulkListOperationErrors: List bulk operation errors for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from listing bulk operation errors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable bulkListOperationErrors(String resourceGroupName, String location);
+
+ /**
+ * BulkListOperationErrors: List bulk operation errors for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param lookbackInMinutes The number of minutes to look back for errors.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from listing bulk operation errors as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable bulkListOperationErrors(String resourceGroupName, String location,
+ Integer lookbackInMinutes, Context context);
+
+ /**
+ * BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param body The list of operation ids to acknowledge.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from acknowledging bulk operation errors along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkAcknowledgeOperationErrorsWithResponse(
+ String resourceGroupName, String location, AcknowledgeBulkOperationErrorsRequest body, Context context);
+
+ /**
+ * BulkAcknowledgeOperationErrors: Acknowledge bulk operation errors for a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param body The list of operation ids to acknowledge.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from acknowledging bulk operation errors.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AcknowledgeBulkOperationErrorsResponseInner bulkAcknowledgeOperationErrors(String resourceGroupName,
+ String location, AcknowledgeBulkOperationErrorsRequest body);
}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/AcknowledgeBulkOperationErrorsResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/AcknowledgeBulkOperationErrorsResponseInner.java
new file mode 100644
index 000000000000..c1a67eab4ed6
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/AcknowledgeBulkOperationErrorsResponseInner.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from acknowledging bulk operation errors.
+ */
+@Immutable
+public final class AcknowledgeBulkOperationErrorsResponseInner
+ implements JsonSerializable {
+ /*
+ * The set of operation ids that were newly acknowledged
+ */
+ private List acknowledged;
+
+ /*
+ * The set of operation ids that were not found in the completed operations store
+ */
+ private List notFound;
+
+ /*
+ * The set of operation ids that were skipped because they were already acknowledged, not failed, or belong to a
+ * different scope
+ */
+ private List skipped;
+
+ /**
+ * Creates an instance of AcknowledgeBulkOperationErrorsResponseInner class.
+ */
+ private AcknowledgeBulkOperationErrorsResponseInner() {
+ }
+
+ /**
+ * Get the acknowledged property: The set of operation ids that were newly acknowledged.
+ *
+ * @return the acknowledged value.
+ */
+ public List acknowledged() {
+ return this.acknowledged;
+ }
+
+ /**
+ * Get the notFound property: The set of operation ids that were not found in the completed operations store.
+ *
+ * @return the notFound value.
+ */
+ public List notFound() {
+ return this.notFound;
+ }
+
+ /**
+ * Get the skipped property: The set of operation ids that were skipped because they were already acknowledged, not
+ * failed, or belong to a different scope.
+ *
+ * @return the skipped value.
+ */
+ public List skipped() {
+ return this.skipped;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("acknowledged", this.acknowledged, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("notFound", this.notFound, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeArrayField("skipped", this.skipped, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AcknowledgeBulkOperationErrorsResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AcknowledgeBulkOperationErrorsResponseInner if the JsonReader was pointing to an instance
+ * of it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the AcknowledgeBulkOperationErrorsResponseInner.
+ */
+ public static AcknowledgeBulkOperationErrorsResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AcknowledgeBulkOperationErrorsResponseInner deserializedAcknowledgeBulkOperationErrorsResponseInner
+ = new AcknowledgeBulkOperationErrorsResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("acknowledged".equals(fieldName)) {
+ List acknowledged = reader.readArray(reader1 -> reader1.getString());
+ deserializedAcknowledgeBulkOperationErrorsResponseInner.acknowledged = acknowledged;
+ } else if ("notFound".equals(fieldName)) {
+ List notFound = reader.readArray(reader1 -> reader1.getString());
+ deserializedAcknowledgeBulkOperationErrorsResponseInner.notFound = notFound;
+ } else if ("skipped".equals(fieldName)) {
+ List skipped = reader.readArray(reader1 -> reader1.getString());
+ deserializedAcknowledgeBulkOperationErrorsResponseInner.skipped = skipped;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAcknowledgeBulkOperationErrorsResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java
index 670bf5312da1..034a4e4cb042 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -21,7 +20,7 @@ public final class CancelOperationsResponseInner implements JsonSerializable results;
+ private List results;
/**
* Creates an instance of CancelOperationsResponseInner class.
@@ -34,7 +33,7 @@ private CancelOperationsResponseInner() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -66,7 +65,8 @@ public static CancelOperationsResponseInner fromJson(JsonReader jsonReader) thro
reader.nextToken();
if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedCancelOperationsResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..e23ea0326684
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a create request.
+ */
+@Immutable
+public final class CreateResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the create request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the create request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the create request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of CreateResourceOperationResponseInner class.
+ */
+ private CreateResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the create request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the create request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the create request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CreateResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CreateResourceOperationResponseInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the CreateResourceOperationResponseInner.
+ */
+ public static CreateResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CreateResourceOperationResponseInner deserializedCreateResourceOperationResponseInner
+ = new CreateResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
+ deserializedCreateResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCreateResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
index 52b044c2177b..1745d6fc3344 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -37,7 +36,7 @@ public final class DeallocateResourceOperationResponseInner
/*
* The results from the deallocate request if no errors exist
*/
- private List results;
+ private List results;
/**
* Creates an instance of DeallocateResourceOperationResponseInner class.
@@ -77,7 +76,7 @@ public String location() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -118,7 +117,8 @@ public static DeallocateResourceOperationResponseInner fromJson(JsonReader jsonR
} else if ("location".equals(fieldName)) {
deserializedDeallocateResourceOperationResponseInner.location = reader.getString();
} else if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedDeallocateResourceOperationResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java
index ee8045a9a850..58ec0491c533 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -37,7 +36,7 @@ public final class DeleteResourceOperationResponseInner
/*
* The results from the delete request if no errors exist
*/
- private List results;
+ private List results;
/**
* Creates an instance of DeleteResourceOperationResponseInner class.
@@ -77,7 +76,7 @@ public String location() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -118,7 +117,8 @@ public static DeleteResourceOperationResponseInner fromJson(JsonReader jsonReade
} else if ("location".equals(fieldName)) {
deserializedDeleteResourceOperationResponseInner.location = reader.getString();
} else if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedDeleteResourceOperationResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java
index 480ac41b6c40..254c3beed904 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -21,7 +20,7 @@ public final class GetOperationStatusResponseInner implements JsonSerializable results;
+ private List results;
/**
* Creates an instance of GetOperationStatusResponseInner class.
@@ -34,7 +33,7 @@ private GetOperationStatusResponseInner() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -66,7 +65,8 @@ public static GetOperationStatusResponseInner fromJson(JsonReader jsonReader) th
reader.nextToken();
if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedGetOperationStatusResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java
index d7fd6634c845..4d2f0911dec4 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -37,7 +36,7 @@ public final class HibernateResourceOperationResponseInner
/*
* The results from the Hibernate request if no errors exist
*/
- private List results;
+ private List results;
/**
* Creates an instance of HibernateResourceOperationResponseInner class.
@@ -77,7 +76,7 @@ public String location() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -118,7 +117,8 @@ public static HibernateResourceOperationResponseInner fromJson(JsonReader jsonRe
} else if ("location".equals(fieldName)) {
deserializedHibernateResourceOperationResponseInner.location = reader.getString();
} else if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedHibernateResourceOperationResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedBulkCreateCustomInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedBulkCreateCustomInner.java
new file mode 100644
index 000000000000..6b66e6494f6b
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedBulkCreateCustomInner.java
@@ -0,0 +1,275 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.BulkCreateCustomProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.Plan;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Location based BulkCreateCustom resource. The location is part of the resource path.
+ */
+@Fluent
+public final class LocationBasedBulkCreateCustomInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private BulkCreateCustomProperties properties;
+
+ /*
+ * Zones in which the BulkCreateCustom is available
+ */
+ private List zones;
+
+ /*
+ * Resource tags.
+ */
+ private Map tags;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Details of the resource plan.
+ */
+ private Plan plan;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LocationBasedBulkCreateCustomInner class.
+ */
+ public LocationBasedBulkCreateCustomInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public BulkCreateCustomProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the LocationBasedBulkCreateCustomInner object itself.
+ */
+ public LocationBasedBulkCreateCustomInner withProperties(BulkCreateCustomProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the zones property: Zones in which the BulkCreateCustom is available.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Zones in which the BulkCreateCustom is available.
+ *
+ * @param zones the zones value to set.
+ * @return the LocationBasedBulkCreateCustomInner object itself.
+ */
+ public LocationBasedBulkCreateCustomInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the LocationBasedBulkCreateCustomInner object itself.
+ */
+ public LocationBasedBulkCreateCustomInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the LocationBasedBulkCreateCustomInner object itself.
+ */
+ public LocationBasedBulkCreateCustomInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the plan property: Details of the resource plan.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: Details of the resource plan.
+ *
+ * @param plan the plan value to set.
+ * @return the LocationBasedBulkCreateCustomInner object itself.
+ */
+ public LocationBasedBulkCreateCustomInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("plan", this.plan);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LocationBasedBulkCreateCustomInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LocationBasedBulkCreateCustomInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LocationBasedBulkCreateCustomInner.
+ */
+ public static LocationBasedBulkCreateCustomInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LocationBasedBulkCreateCustomInner deserializedLocationBasedBulkCreateCustomInner
+ = new LocationBasedBulkCreateCustomInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.properties
+ = BulkCreateCustomProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedLocationBasedBulkCreateCustomInner.zones = zones;
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedLocationBasedBulkCreateCustomInner.tags = tags;
+ } else if ("identity".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("plan".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.plan = Plan.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLocationBasedBulkCreateCustomInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLocationBasedBulkCreateCustomInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java
new file mode 100644
index 000000000000..fcae773c58d6
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java
@@ -0,0 +1,277 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.LaunchBulkInstancesOperationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.Plan;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Location based LaunchBulkInstancesOperation resource. The location is part of the resource path.
+ */
+@Fluent
+public final class LocationBasedLaunchBulkInstancesOperationInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private LaunchBulkInstancesOperationProperties properties;
+
+ /*
+ * Zones in which the LaunchBulkInstancesOperation is available
+ */
+ private List zones;
+
+ /*
+ * Resource tags.
+ */
+ private Map tags;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Details of the resource plan.
+ */
+ private Plan plan;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LocationBasedLaunchBulkInstancesOperationInner class.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public LaunchBulkInstancesOperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner
+ withProperties(LaunchBulkInstancesOperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the zones property: Zones in which the LaunchBulkInstancesOperation is available.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Zones in which the LaunchBulkInstancesOperation is available.
+ *
+ * @param zones the zones value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the plan property: Details of the resource plan.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: Details of the resource plan.
+ *
+ * @param plan the plan value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("plan", this.plan);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LocationBasedLaunchBulkInstancesOperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LocationBasedLaunchBulkInstancesOperationInner if the JsonReader was pointing to an
+ * instance of it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the LocationBasedLaunchBulkInstancesOperationInner.
+ */
+ public static LocationBasedLaunchBulkInstancesOperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LocationBasedLaunchBulkInstancesOperationInner deserializedLocationBasedLaunchBulkInstancesOperationInner
+ = new LocationBasedLaunchBulkInstancesOperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.properties
+ = LaunchBulkInstancesOperationProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.zones = zones;
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.tags = tags;
+ } else if ("identity".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.identity
+ = ManagedServiceIdentity.fromJson(reader);
+ } else if ("plan".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.plan = Plan.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLocationBasedLaunchBulkInstancesOperationInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceExtensionResourceInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceExtensionResourceInner.java
new file mode 100644
index 000000000000..8a13b9f912df
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceExtensionResourceInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.OccurrenceExtensionProperties;
+import java.io.IOException;
+
+/**
+ * The scheduled action extension.
+ */
+@Immutable
+public final class OccurrenceExtensionResourceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private OccurrenceExtensionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of OccurrenceExtensionResourceInner class.
+ */
+ private OccurrenceExtensionResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public OccurrenceExtensionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OccurrenceExtensionResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OccurrenceExtensionResourceInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OccurrenceExtensionResourceInner.
+ */
+ public static OccurrenceExtensionResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OccurrenceExtensionResourceInner deserializedOccurrenceExtensionResourceInner
+ = new OccurrenceExtensionResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedOccurrenceExtensionResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOccurrenceExtensionResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedOccurrenceExtensionResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedOccurrenceExtensionResourceInner.properties
+ = OccurrenceExtensionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedOccurrenceExtensionResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOccurrenceExtensionResourceInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceInner.java
new file mode 100644
index 000000000000..79db92381ee1
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.OccurrenceProperties;
+import java.io.IOException;
+
+/**
+ * Concrete proxy resource types can be created by aliasing this type using a specific property type.
+ */
+@Immutable
+public final class OccurrenceInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private OccurrenceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of OccurrenceInner class.
+ */
+ private OccurrenceInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public OccurrenceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OccurrenceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OccurrenceInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OccurrenceInner.
+ */
+ public static OccurrenceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OccurrenceInner deserializedOccurrenceInner = new OccurrenceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedOccurrenceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOccurrenceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedOccurrenceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedOccurrenceInner.properties = OccurrenceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedOccurrenceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOccurrenceInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceResourceInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceResourceInner.java
new file mode 100644
index 000000000000..f9c019d00348
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OccurrenceResourceInner.java
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.Error;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceProvisioningState;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.util.List;
+
+/**
+ * Represents an scheduled action resource metadata.
+ */
+@Immutable
+public final class OccurrenceResourceInner implements JsonSerializable {
+ /*
+ * The name of the resource
+ */
+ private String name;
+
+ /*
+ * The compute RP resource id of the resource in the scheduled actions scope.
+ */
+ private String id;
+
+ /*
+ * The type of resource
+ */
+ private String type;
+
+ /*
+ * The ARM Id of the resource.
+ * "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ */
+ private String resourceId;
+
+ /*
+ * The desired notification settings for the specified resource.
+ */
+ private List notificationSettings;
+
+ /*
+ * The time the occurrence is scheduled for the resource.
+ */
+ private OffsetDateTime scheduledTime;
+
+ /*
+ * The current state of the resource
+ */
+ private ResourceProvisioningState provisioningState;
+
+ /*
+ * Error details for the resource. Only populated if resource is in failed state.
+ */
+ private Error errorDetails;
+
+ /**
+ * Creates an instance of OccurrenceResourceInner class.
+ */
+ private OccurrenceResourceInner() {
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: The compute RP resource id of the resource in the scheduled actions scope.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the type property: The type of resource.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the resourceId property: The ARM Id of the resource.
+ * "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the notificationSettings property: The desired notification settings for the specified resource.
+ *
+ * @return the notificationSettings value.
+ */
+ public List notificationSettings() {
+ return this.notificationSettings;
+ }
+
+ /**
+ * Get the scheduledTime property: The time the occurrence is scheduled for the resource.
+ *
+ * @return the scheduledTime value.
+ */
+ public OffsetDateTime scheduledTime() {
+ return this.scheduledTime;
+ }
+
+ /**
+ * Get the provisioningState property: The current state of the resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ResourceProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the errorDetails property: Error details for the resource. Only populated if resource is in failed state.
+ *
+ * @return the errorDetails value.
+ */
+ public Error errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("notificationSettings", this.notificationSettings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OccurrenceResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OccurrenceResourceInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OccurrenceResourceInner.
+ */
+ public static OccurrenceResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OccurrenceResourceInner deserializedOccurrenceResourceInner = new OccurrenceResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.name = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.id = reader.getString();
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.resourceId = reader.getString();
+ } else if ("scheduledTime".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.scheduledTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("type".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.type = reader.getString();
+ } else if ("notificationSettings".equals(fieldName)) {
+ List notificationSettings
+ = reader.readArray(reader1 -> NotificationProperties.fromJson(reader1));
+ deserializedOccurrenceResourceInner.notificationSettings = notificationSettings;
+ } else if ("provisioningState".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.provisioningState
+ = ResourceProvisioningState.fromString(reader.getString());
+ } else if ("errorDetails".equals(fieldName)) {
+ deserializedOccurrenceResourceInner.errorDetails = Error.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOccurrenceResourceInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 000000000000..a19d691a48e1
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java
@@ -0,0 +1,222 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * The current status of an async operation.
+ */
+@Immutable
+public final class OperationStatusResultInner implements JsonSerializable {
+ /*
+ * Fully qualified ID for the async operation.
+ */
+ private String id;
+
+ /*
+ * Name of the async operation.
+ */
+ private String name;
+
+ /*
+ * Operation status.
+ */
+ private String status;
+
+ /*
+ * Percent of the operation that is complete.
+ */
+ private Double percentComplete;
+
+ /*
+ * The start time of the operation.
+ */
+ private OffsetDateTime startTime;
+
+ /*
+ * The end time of the operation.
+ */
+ private OffsetDateTime endTime;
+
+ /*
+ * The operations list.
+ */
+ private List operations;
+
+ /*
+ * If present, details of the operation error.
+ */
+ private ManagementError error;
+
+ /*
+ * Fully qualified ID of the resource against which the original async operation was started.
+ */
+ private String resourceId;
+
+ /**
+ * Creates an instance of OperationStatusResultInner class.
+ */
+ private OperationStatusResultInner() {
+ }
+
+ /**
+ * Get the id property: Fully qualified ID for the async operation.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: Name of the async operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the percentComplete property: Percent of the operation that is complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Double percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * Get the startTime property: The start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: The end time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Get the operations property: The operations list.
+ *
+ * @return the operations value.
+ */
+ public List operations() {
+ return this.operations;
+ }
+
+ /**
+ * Get the error property: If present, details of the operation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
+ * started.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("status", this.status);
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeNumberField("percentComplete", this.percentComplete);
+ jsonWriter.writeStringField("startTime",
+ this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime));
+ jsonWriter.writeStringField("endTime",
+ this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
+ jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("error", this.error);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationStatusResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationStatusResultInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the OperationStatusResultInner.
+ */
+ public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("status".equals(fieldName)) {
+ deserializedOperationStatusResultInner.status = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedOperationStatusResultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOperationStatusResultInner.name = reader.getString();
+ } else if ("percentComplete".equals(fieldName)) {
+ deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getDouble);
+ } else if ("startTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.startTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.endTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("operations".equals(fieldName)) {
+ List operations
+ = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1));
+ deserializedOperationStatusResultInner.operations = operations;
+ } else if ("error".equals(fieldName)) {
+ deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader);
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedOperationStatusResultInner.resourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationStatusResultInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java
new file mode 100644
index 000000000000..91ed7df06b61
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a reimage request.
+ */
+@Immutable
+public final class ReimageResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the reimage request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the reimage request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the reimage request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of ReimageResourceOperationResponseInner class.
+ */
+ private ReimageResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the reimage request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the reimage request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the reimage request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ReimageResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ReimageResourceOperationResponseInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ReimageResourceOperationResponseInner.
+ */
+ public static ReimageResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ReimageResourceOperationResponseInner deserializedReimageResourceOperationResponseInner
+ = new ReimageResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
+ deserializedReimageResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedReimageResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationInner.java
new file mode 100644
index 000000000000..cd9eff5468f8
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationInner.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperationDetails;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachineInfo;
+import java.io.IOException;
+
+/**
+ * High level response from an operation on a resource.
+ */
+@Immutable
+public final class ResourceOperationInner implements JsonSerializable {
+ /*
+ * Unique identifier for the resource involved in the operation, for example Azure resource ID
+ */
+ private String resourceId;
+
+ /*
+ * Resource level error code if it exists
+ */
+ private String errorCode;
+
+ /*
+ * Resource level error details if they exist
+ */
+ private String errorDetails;
+
+ /*
+ * Details of the operation performed on a resource
+ */
+ private ResourceOperationDetails operation;
+
+ /*
+ * Information about the virtual machine
+ */
+ private VirtualMachineInfo virtualMachineInfo;
+
+ /**
+ * Creates an instance of ResourceOperationInner class.
+ */
+ private ResourceOperationInner() {
+ }
+
+ /**
+ * Get the resourceId property: Unique identifier for the resource involved in the operation, for example Azure
+ * resource ID.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the errorCode property: Resource level error code if it exists.
+ *
+ * @return the errorCode value.
+ */
+ public String errorCode() {
+ return this.errorCode;
+ }
+
+ /**
+ * Get the errorDetails property: Resource level error details if they exist.
+ *
+ * @return the errorDetails value.
+ */
+ public String errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Get the operation property: Details of the operation performed on a resource.
+ *
+ * @return the operation value.
+ */
+ public ResourceOperationDetails operation() {
+ return this.operation;
+ }
+
+ /**
+ * Get the virtualMachineInfo property: Information about the virtual machine.
+ *
+ * @return the virtualMachineInfo value.
+ */
+ public VirtualMachineInfo virtualMachineInfo() {
+ return this.virtualMachineInfo;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeStringField("errorCode", this.errorCode);
+ jsonWriter.writeStringField("errorDetails", this.errorDetails);
+ jsonWriter.writeJsonField("operation", this.operation);
+ jsonWriter.writeJsonField("virtualMachineInfo", this.virtualMachineInfo);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ResourceOperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ResourceOperationInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the ResourceOperationInner.
+ */
+ public static ResourceOperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ResourceOperationInner deserializedResourceOperationInner = new ResourceOperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceId".equals(fieldName)) {
+ deserializedResourceOperationInner.resourceId = reader.getString();
+ } else if ("errorCode".equals(fieldName)) {
+ deserializedResourceOperationInner.errorCode = reader.getString();
+ } else if ("errorDetails".equals(fieldName)) {
+ deserializedResourceOperationInner.errorDetails = reader.getString();
+ } else if ("operation".equals(fieldName)) {
+ deserializedResourceOperationInner.operation = ResourceOperationDetails.fromJson(reader);
+ } else if ("virtualMachineInfo".equals(fieldName)) {
+ deserializedResourceOperationInner.virtualMachineInfo = VirtualMachineInfo.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedResourceOperationInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationResponseInner.java
new file mode 100644
index 000000000000..d7aae8faea34
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ResourceOperationResponseInner.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceStatus;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from scheduled action resource requests, which contains the status of each resource.
+ */
+@Immutable
+public final class ResourceOperationResponseInner implements JsonSerializable {
+ /*
+ * The total number of resources operated on
+ */
+ private int totalResources;
+
+ /*
+ * The resource status of for each resource
+ */
+ private List resourcesStatuses;
+
+ /**
+ * Creates an instance of ResourceOperationResponseInner class.
+ */
+ private ResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the totalResources property: The total number of resources operated on.
+ *
+ * @return the totalResources value.
+ */
+ public int totalResources() {
+ return this.totalResources;
+ }
+
+ /**
+ * Get the resourcesStatuses property: The resource status of for each resource.
+ *
+ * @return the resourcesStatuses value.
+ */
+ public List resourcesStatuses() {
+ return this.resourcesStatuses;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("totalResources", this.totalResources);
+ jsonWriter.writeArrayField("resourcesStatuses", this.resourcesStatuses,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ResourceOperationResponseInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ResourceOperationResponseInner.
+ */
+ public static ResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ResourceOperationResponseInner deserializedResourceOperationResponseInner
+ = new ResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("totalResources".equals(fieldName)) {
+ deserializedResourceOperationResponseInner.totalResources = reader.getInt();
+ } else if ("resourcesStatuses".equals(fieldName)) {
+ List resourcesStatuses
+ = reader.readArray(reader1 -> ResourceStatus.fromJson(reader1));
+ deserializedResourceOperationResponseInner.resourcesStatuses = resourcesStatuses;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionInner.java
new file mode 100644
index 000000000000..cd2263de211d
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * The scheduled action resource.
+ */
+@Fluent
+public final class ScheduledActionInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ScheduledActionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ScheduledActionInner class.
+ */
+ public ScheduledActionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ScheduledActionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ScheduledActionInner object itself.
+ */
+ public ScheduledActionInner withProperties(ScheduledActionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ScheduledActionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ScheduledActionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ScheduledActionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ScheduledActionInner if the JsonReader was pointing to an instance of it, or null if it
+ * was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ScheduledActionInner.
+ */
+ public static ScheduledActionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ScheduledActionInner deserializedScheduledActionInner = new ScheduledActionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedScheduledActionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedScheduledActionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedScheduledActionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedScheduledActionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedScheduledActionInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedScheduledActionInner.properties = ScheduledActionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedScheduledActionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedScheduledActionInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourceInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourceInner.java
new file mode 100644
index 000000000000..3a5438709e0b
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourceInner.java
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.NotificationProperties;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * Represents an scheduled action resource metadata.
+ */
+@Immutable
+public final class ScheduledActionResourceInner implements JsonSerializable {
+ /*
+ * The name of the resource
+ */
+ private String name;
+
+ /*
+ * The compute RP resource id of the resource in the scheduled actions scope.
+ */
+ private String id;
+
+ /*
+ * The type of resource
+ */
+ private String type;
+
+ /*
+ * The ARM Id of the resource.
+ * "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}"
+ */
+ private String resourceId;
+
+ /*
+ * The desired notification settings for the specified resource.
+ */
+ private List notificationSettings;
+
+ /**
+ * Creates an instance of ScheduledActionResourceInner class.
+ */
+ private ScheduledActionResourceInner() {
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: The compute RP resource id of the resource in the scheduled actions scope.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the type property: The type of resource.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the resourceId property: The ARM Id of the resource.
+ * "subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}".
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the notificationSettings property: The desired notification settings for the specified resource.
+ *
+ * @return the notificationSettings value.
+ */
+ public List notificationSettings() {
+ return this.notificationSettings;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("resourceId", this.resourceId);
+ jsonWriter.writeArrayField("notificationSettings", this.notificationSettings,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ScheduledActionResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ScheduledActionResourceInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ScheduledActionResourceInner.
+ */
+ public static ScheduledActionResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ScheduledActionResourceInner deserializedScheduledActionResourceInner = new ScheduledActionResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedScheduledActionResourceInner.name = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedScheduledActionResourceInner.id = reader.getString();
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedScheduledActionResourceInner.resourceId = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedScheduledActionResourceInner.type = reader.getString();
+ } else if ("notificationSettings".equals(fieldName)) {
+ List notificationSettings
+ = reader.readArray(reader1 -> NotificationProperties.fromJson(reader1));
+ deserializedScheduledActionResourceInner.notificationSettings = notificationSettings;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedScheduledActionResourceInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourcesInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourcesInner.java
new file mode 100644
index 000000000000..2d20841993ec
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ScheduledActionResourcesInner.java
@@ -0,0 +1,146 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ScheduledActionsExtensionProperties;
+import java.io.IOException;
+
+/**
+ * The scheduled action extension.
+ */
+@Immutable
+public final class ScheduledActionResourcesInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ScheduledActionsExtensionProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ScheduledActionResourcesInner class.
+ */
+ private ScheduledActionResourcesInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ScheduledActionsExtensionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ScheduledActionResourcesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ScheduledActionResourcesInner if the JsonReader was pointing to an instance of it, or null
+ * if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ScheduledActionResourcesInner.
+ */
+ public static ScheduledActionResourcesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ScheduledActionResourcesInner deserializedScheduledActionResourcesInner
+ = new ScheduledActionResourcesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedScheduledActionResourcesInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedScheduledActionResourcesInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedScheduledActionResourcesInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedScheduledActionResourcesInner.properties
+ = ScheduledActionsExtensionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedScheduledActionResourcesInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedScheduledActionResourcesInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java
index 0eaa36ea2841..f3933ab189cf 100644
--- a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java
@@ -9,7 +9,6 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
import java.io.IOException;
import java.util.List;
@@ -37,7 +36,7 @@ public final class StartResourceOperationResponseInner
/*
* The results from the start request if no errors exist
*/
- private List results;
+ private List results;
/**
* Creates an instance of StartResourceOperationResponseInner class.
@@ -77,7 +76,7 @@ public String location() {
*
* @return the results value.
*/
- public List results() {
+ public List results() {
return this.results;
}
@@ -118,7 +117,8 @@ public static StartResourceOperationResponseInner fromJson(JsonReader jsonReader
} else if ("location".equals(fieldName)) {
deserializedStartResourceOperationResponseInner.location = reader.getString();
} else if ("results".equals(fieldName)) {
- List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ List results
+ = reader.readArray(reader1 -> ResourceOperationInner.fromJson(reader1));
deserializedStartResourceOperationResponseInner.results = results;
} else {
reader.skipChildren();
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java
new file mode 100644
index 000000000000..7476e6934e26
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ApiError;
+import com.azure.resourcemanager.compute.bulkactions.models.VMOperationStatus;
+import java.io.IOException;
+
+/**
+ * A virtual machine launched by a LaunchBulkInstancesOperation.
+ */
+@Immutable
+public final class VirtualMachineInner implements JsonSerializable {
+ /*
+ * The name of the virtual machine.
+ */
+ private String name;
+
+ /*
+ * The compute RP resource id of the virtual machine.
+ * subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}
+ */
+ private String id;
+
+ /*
+ * Type of the virtual machine
+ */
+ private String type;
+
+ /*
+ * Represents the operationStatus of the virtual machine in response to the last operation performed on it by the
+ * LaunchBulkInstancesOperation.
+ */
+ private VMOperationStatus operationStatus;
+
+ /*
+ * Error information when operationStatus is Failed.
+ */
+ private ApiError error;
+
+ /**
+ * Creates an instance of VirtualMachineInner class.
+ */
+ private VirtualMachineInner() {
+ }
+
+ /**
+ * Get the name property: The name of the virtual machine.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: The compute RP resource id of the virtual machine.
+ * subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the type property: Type of the virtual machine.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the operationStatus property: Represents the operationStatus of the virtual machine in response to the last
+ * operation performed on it by the LaunchBulkInstancesOperation.
+ *
+ * @return the operationStatus value.
+ */
+ public VMOperationStatus operationStatus() {
+ return this.operationStatus;
+ }
+
+ /**
+ * Get the error property: Error information when operationStatus is Failed.
+ *
+ * @return the error value.
+ */
+ public ApiError error() {
+ return this.error;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualMachineInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualMachineInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the VirtualMachineInner.
+ */
+ public static VirtualMachineInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualMachineInner deserializedVirtualMachineInner = new VirtualMachineInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedVirtualMachineInner.name = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedVirtualMachineInner.id = reader.getString();
+ } else if ("operationStatus".equals(fieldName)) {
+ deserializedVirtualMachineInner.operationStatus = VMOperationStatus.fromString(reader.getString());
+ } else if ("type".equals(fieldName)) {
+ deserializedVirtualMachineInner.type = reader.getString();
+ } else if ("error".equals(fieldName)) {
+ deserializedVirtualMachineInner.error = ApiError.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualMachineInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/AcknowledgeBulkOperationErrorsResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/AcknowledgeBulkOperationErrorsResponseImpl.java
new file mode 100644
index 000000000000..79a688b18287
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/AcknowledgeBulkOperationErrorsResponseImpl.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.AcknowledgeBulkOperationErrorsResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.AcknowledgeBulkOperationErrorsResponse;
+import java.util.Collections;
+import java.util.List;
+
+public final class AcknowledgeBulkOperationErrorsResponseImpl implements AcknowledgeBulkOperationErrorsResponse {
+ private AcknowledgeBulkOperationErrorsResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager serviceManager;
+
+ AcknowledgeBulkOperationErrorsResponseImpl(AcknowledgeBulkOperationErrorsResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List acknowledged() {
+ List inner = this.innerModel().acknowledged();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List notFound() {
+ List inner = this.innerModel().notFound();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List skipped() {
+ List inner = this.innerModel().skipped();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public AcknowledgeBulkOperationErrorsResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkActionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/BulkCreateCustomsClientImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/BulkCreateCustomsClientImpl.java
new file mode 100644
index 000000000000..18c34db59ff6
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/BulkCreateCustomsClientImpl.java
@@ -0,0 +1,1301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.BulkCreateCustomsClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedBulkCreateCustomInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.compute.bulkactions.implementation.models.BulkCreateCustomListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in BulkCreateCustomsClient.
+ */
+public final class BulkCreateCustomsClientImpl implements BulkCreateCustomsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final BulkCreateCustomsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeBulkActionsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of BulkCreateCustomsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BulkCreateCustomsClientImpl(ComputeBulkActionsManagementClientImpl client) {
+ this.service
+ = RestProxy.create(BulkCreateCustomsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeBulkActionsManagementClientBulkCreateCustoms to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ComputeBulkActionsManagementClientBulkCreateCustoms")
+ public interface BulkCreateCustomsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/asyncOperations/{asyncOperationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getAsyncOperationStatus(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/asyncOperations/{asyncOperationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getAsyncOperationStatusSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") LocationBasedBulkCreateCustomInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") LocationBasedBulkCreateCustomInner resource, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("deleteInstances") Boolean deleteInstances, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("deleteInstances") Boolean deleteInstances, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/cancel")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> cancel(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom/{name}/cancel")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response cancelSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscription(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/bulkCreateCustom")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName,
+ String location, String name) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String location, String name) {
+ return getWithResponseAsync(resourceGroupName, location, name).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String location,
+ String name, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, location, name, accept, context);
+ }
+
+ /**
+ * Gets an instance of BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of BulkCreateCustoms.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedBulkCreateCustomInner get(String resourceGroupName, String location, String name) {
+ return getWithResponse(resourceGroupName, location, name, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getAsyncOperationStatusWithResponseAsync(String location,
+ String asyncOperationId) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.getAsyncOperationStatus(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, asyncOperationId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsyncOperationStatusAsync(String location, String asyncOperationId) {
+ return getAsyncOperationStatusWithResponseAsync(location, asyncOperationId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getAsyncOperationStatusWithResponse(String location,
+ String asyncOperationId, Context context) {
+ final String accept = "application/json";
+ return service.getAsyncOperationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, asyncOperationId, accept, context);
+ }
+
+ /**
+ * Get the status of an async operation of a BulkCreateCustom.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of an async operation of a BulkCreateCustom.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusResultInner getAsyncOperationStatus(String location, String asyncOperationId) {
+ return getAsyncOperationStatusWithResponse(location, asyncOperationId, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String location,
+ String name, LocationBasedBulkCreateCustomInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource, context);
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, LocationBasedBulkCreateCustomInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, location, name, resource);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), LocationBasedBulkCreateCustomInner.class,
+ LocationBasedBulkCreateCustomInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LocationBasedBulkCreateCustomInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, location, name, resource);
+ return this.client.getLroResult(
+ response, LocationBasedBulkCreateCustomInner.class, LocationBasedBulkCreateCustomInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, LocationBasedBulkCreateCustomInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, location, name, resource, context);
+ return this.client.getLroResult(
+ response, LocationBasedBulkCreateCustomInner.class, LocationBasedBulkCreateCustomInner.class, context);
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String location,
+ String name, LocationBasedBulkCreateCustomInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, location, name, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedBulkCreateCustomInner createOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, location, name, resource).getFinalResult();
+ }
+
+ /**
+ * Creates or updates BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based BulkCreateCustom resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedBulkCreateCustomInner createOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedBulkCreateCustomInner resource, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, location, name, resource, context).getFinalResult();
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String location,
+ String name, Boolean deleteInstances) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, Context.NONE);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, context);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String location,
+ String name) {
+ final Boolean deleteInstances = null;
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String location, String name, Boolean deleteInstances) {
+ return beginDeleteAsync(resourceGroupName, location, name, deleteInstances).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ return beginDeleteAsync(resourceGroupName, location, name, deleteInstances).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ beginDelete(resourceGroupName, location, name, deleteInstances).getFinalResult();
+ }
+
+ /**
+ * Deletes BulkCreateCustoms.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String location, String name, Boolean deleteInstances,
+ Context context) {
+ beginDelete(resourceGroupName, location, name, deleteInstances, context).getFinalResult();
+ }
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> cancelWithResponseAsync(String resourceGroupName, String location,
+ String name) {
+ return FluxUtil
+ .withContext(context -> service.cancel(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response cancelWithResponse(String resourceGroupName, String location, String name) {
+ return service.cancelSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, Context.NONE);
+ }
+
+ /**
+ * Cancels BulkCreateCustom instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the BulkCreateCustom. The value must be an UUID.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response