diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md b/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
index 2171f64b005e..8f1eee76f725 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
@@ -1,14 +1,482 @@
# Release History
-## 1.2.0-beta.2 (Unreleased)
+## 1.2.0-beta.2 (2026-04-09)
-### Features Added
+- Azure Resource Manager Compute Schedule client library for Java. This package contains Microsoft Azure SDK for Compute Schedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2026-04-15-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.SubmitDeallocateRequest` was removed
+
+#### `models.ExecuteDeallocateRequest` was removed
+
+#### `models.ExecuteCreateRequest` was removed
+
+#### `models.GetOperationErrorsRequest` was removed
+
+#### `models.ExecuteDeleteRequest` was removed
+
+#### `models.ExecuteStartRequest` was removed
+
+#### `models.SubmitHibernateRequest` was removed
+
+#### `models.CancelOperationsRequest` was removed
+
+#### `models.GetOperationStatusRequest` was removed
+
+#### `models.ExecuteHibernateRequest` was removed
+
+#### `models.SubmitStartRequest` was removed
+
+#### `models.OccurrenceResultSummary` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionUpdateProperties` was modified
+
+* `validate()` was removed
+
+#### `models.RetryPolicy` was modified
+
+* `validate()` was removed
+
+#### `models.OccurrenceExtensionProperties` was modified
+
+* `validate()` was removed
+
+#### `models.DelayRequest` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceAttachRequest` was modified
+
+* `validate()` was removed
+
+#### `models.CancelOccurrenceRequest` was modified
+
+* `validate()` was removed
+
+#### `models.InnerError` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceResultSummary` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActions` was modified
+
+* `virtualMachinesSubmitDeallocateWithResponse(java.lang.String,models.SubmitDeallocateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesGetOperationErrors(java.lang.String,models.GetOperationErrorsRequest)` was removed
+* `virtualMachinesSubmitHibernate(java.lang.String,models.SubmitHibernateRequest)` was removed
+* `virtualMachinesExecuteDeallocate(java.lang.String,models.ExecuteDeallocateRequest)` was removed
+* `virtualMachinesExecuteDelete(java.lang.String,models.ExecuteDeleteRequest)` was removed
+* `virtualMachinesGetOperationErrorsWithResponse(java.lang.String,models.GetOperationErrorsRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteStart(java.lang.String,models.ExecuteStartRequest)` was removed
+* `virtualMachinesGetOperationStatusWithResponse(java.lang.String,models.GetOperationStatusRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteCreateWithResponse(java.lang.String,models.ExecuteCreateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteDeleteWithResponse(java.lang.String,models.ExecuteDeleteRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesGetOperationStatus(java.lang.String,models.GetOperationStatusRequest)` was removed
+* `virtualMachinesExecuteCreate(java.lang.String,models.ExecuteCreateRequest)` was removed
+* `virtualMachinesExecuteDeallocateWithResponse(java.lang.String,models.ExecuteDeallocateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesCancelOperationsWithResponse(java.lang.String,models.CancelOperationsRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteHibernate(java.lang.String,models.ExecuteHibernateRequest)` was removed
+* `virtualMachinesExecuteStartWithResponse(java.lang.String,models.ExecuteStartRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesSubmitHibernateWithResponse(java.lang.String,models.SubmitHibernateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteHibernateWithResponse(java.lang.String,models.ExecuteHibernateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesSubmitStartWithResponse(java.lang.String,models.SubmitStartRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesSubmitDeallocate(java.lang.String,models.SubmitDeallocateRequest)` was removed
+* `virtualMachinesSubmitStart(java.lang.String,models.SubmitStartRequest)` was removed
+* `virtualMachinesCancelOperations(java.lang.String,models.CancelOperationsRequest)` was removed
+
+#### `models.ScheduledActionProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceProvisionPayload` was modified
+
+* `validate()` was removed
+* `withBaseProfile(java.util.Map)` was removed
+* `java.util.Map baseProfile()` -> `models.BulkVMConfiguration baseProfile()`
+
+#### `models.OccurrenceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OperationErrorDetails` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceOperation` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionsSchedule` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceDetachRequest` was modified
+
+* `validate()` was removed
+
+#### `models.Resources` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceStatus` was modified
+
+* `validate()` was removed
+
+#### `models.ExecutionParameters` was modified
+
+* `validate()` was removed
+
+#### `models.Error` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionResources` was modified
+
+* `models.ScheduledActionProperties properties()` -> `models.ScheduledActionsExtensionProperties properties()`
+
+#### `models.ResourceOperationError` was modified
+
+* `validate()` was removed
+
+#### `models.OperationErrorsResult` was modified
+
+* `validate()` was removed
+
+#### `models.NotificationProperties` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceOperationDetails` was modified
+
+* `validate()` was removed
+
+#### `models.ResourcePatchRequest` was modified
+
+* `validate()` was removed
+
+#### `models.Schedule` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionUpdate` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+* `models.StorageProfile` was added
+
+* `models.VirtualMachineNetworkInterfaceConfiguration` was added
+
+* `models.VaultSecretGroup` was added
+
+* `models.SecurityEncryptionTypes` was added
+
+* `models.VMGalleryApplication` was added
+
+* `models.CapacityReservationProfile` was added
+
+* `models.DiffDiskOptions` was added
+
+* `models.WindowsVMGuestPatchAutomaticByPlatformSettings` was added
+
+* `models.UserInitiatedRedeploy` was added
+
+* `models.VirtualMachinePublicIPAddressConfigurationProperties` was added
+
+* `models.SshPublicKey` was added
+
+* `models.ExecuteCreateFlexContent` was added
+
+* `models.TerminateNotificationProfile` was added
+
+* `models.SubmitStartContent` was added
+
+* `models.ZonePlacementPolicyType` was added
+
+* `models.DeleteOptions` was added
+
+* `models.FallbackOperationInfo` was added
+
+* `models.DiffDiskPlacement` was added
+
+* `models.ScheduledEventsAdditionalPublishingTargets` was added
+
+* `models.BulkActionVmExtensionProperties` was added
+
+* `models.PublicIPAddressSkuName` was added
+
+* `models.Modes` was added
+
+* `models.VirtualMachineNetworkInterfaceConfigurationProperties` was added
+
+* `models.FlexProperties` was added
+
+* `models.AllInstancesDown` was added
+
+* `models.SecurityProfile` was added
+
+* `models.ZoneAllocationPolicy` was added
+
+* `models.LinuxConfiguration` was added
+
+* `models.ScheduledEventsProfile` was added
+
+* `models.HostEndpointSettings` was added
+
+* `models.VirtualMachineNetworkInterfaceDnsSettingsConfiguration` was added
+
+* `models.WinRMListener` was added
+
+* `models.ScheduledActionsExtensionProperties` was added
+
+* `models.ExecuteDeleteContent` was added
+
+* `models.PriorityType` was added
+
+* `models.ExecuteStartContent` was added
+
+* `models.ApiEntityReference` was added
+
+* `models.WindowsConfiguration` was added
+
+* `models.OSProfile` was added
+
+* `models.StorageAccountTypes` was added
+
+* `models.ExtendedLocationType` was added
+
+* `models.SecurityTypes` was added
+
+* `models.UefiSettings` was added
+
+* `models.ResourceIdentityType` was added
+
+* `models.NetworkApiVersion` was added
+
+* `models.ExecuteDeallocateContent` was added
+
+* `models.DiagnosticsProfile` was added
+
+* `models.VirtualMachineIdentity` was added
+
+* `models.ImageReference` was added
+
+* `models.NetworkInterfaceAuxiliarySku` was added
+
+* `models.ScheduledEventsPolicy` was added
+
+* `models.VaultCertificate` was added
+
+* `models.ProtocolTypes` was added
+
+* `models.NetworkProfile` was added
+
+* `models.SubmitHibernateContent` was added
+
+* `models.Mode` was added
+
+* `models.VMDiskSecurityProfile` was added
+
+* `models.NetworkInterfaceReference` was added
+
+* `models.UserInitiatedReboot` was added
+
+* `models.ProxyAgentSettings` was added
+
+* `models.CachingTypes` was added
+
+* `models.VirtualMachineNetworkInterfaceIPConfiguration` was added
+
+* `models.BulkVMConfiguration` was added
+
+* `models.PublicIPAllocationMethod` was added
+
+* `models.CreateFlexResourceOperationResponse` was added
+
+* `models.DiffDiskSettings` was added
+
+* `models.DomainNameLabelScopeTypes` was added
+
+* `models.AdditionalUnattendContent` was added
+
+* `models.BulkActionVMSpec` was added
+
+* `models.KeyVaultSecretReference` was added
+
+* `models.KeyVaultKeyReference` was added
+
+* `models.EventGridAndResourceGraph` was added
+
+* `models.ExecuteCreateContent` was added
+
+* `models.LinuxVMGuestPatchAutomaticByPlatformRebootSetting` was added
+
+* `models.OperatingSystemTypes` was added
+
+* `models.AdditionalUnattendContentComponentName` was added
+
+* `models.DiskEncryptionSettings` was added
+
+* `models.GetOperationErrorsContent` was added
+
+* `models.DiskDetachOptionTypes` was added
+
+* `models.BootDiagnostics` was added
+
+* `models.PriorityProfile` was added
+
+* `models.NetworkInterfaceAuxiliaryMode` was added
+
+* `models.WinRMConfiguration` was added
+
+* `models.PublicIPAddressSku` was added
+
+* `models.Placement` was added
+
+* `models.LinuxVMGuestPatchAutomaticByPlatformSettings` was added
+
+* `models.SshConfiguration` was added
+
+* `models.UserAssignedIdentitiesValue` was added
+
+* `models.ExecuteHibernateContent` was added
+
+* `models.BulkActionVMExtension` was added
+
+* `models.OSDisk` was added
+
+* `models.SubmitDeallocateContent` was added
+
+* `models.VmSizeProfile` was added
+
+* `models.GetOperationStatusContent` was added
+
+* `models.NetworkInterfaceReferenceProperties` was added
+
+* `models.Plan` was added
+
+* `models.ManagedDiskParameters` was added
+
+* `models.DiskDeleteOptionTypes` was added
+
+* `models.LinuxPatchSettings` was added
+
+* `models.AdditionalCapabilities` was added
+
+* `models.ApplicationProfile` was added
+
+* `models.PatchSettings` was added
+
+* `models.AllocationStrategy` was added
+
+* `models.PublicIPAddressSkuTier` was added
+
+* `models.EncryptionIdentity` was added
+
+* `models.OSImageNotificationProfile` was added
+
+* `models.VirtualMachinePublicIPAddressDnsSettingsConfiguration` was added
+
+* `models.WindowsVMGuestPatchMode` was added
+
+* `models.LinuxVMGuestPatchMode` was added
+
+* `models.WindowsPatchAssessmentMode` was added
+
+* `models.IPVersions` was added
+
+* `models.LinuxPatchAssessmentMode` was added
+
+* `models.VirtualMachineIpTag` was added
+
+* `models.CancelOperationsContent` was added
+
+* `models.DiskCreateOptionTypes` was added
+
+* `models.SettingNames` was added
+
+* `models.AdditionalUnattendContentPassName` was added
+
+* `models.ResourceProvisionFlexPayload` was added
+
+* `models.VirtualMachineNetworkInterfaceIPConfigurationProperties` was added
+
+* `models.VirtualMachinePublicIPAddressConfiguration` was added
+
+* `models.DiskEncryptionSetParameters` was added
+
+* `models.BulkActionVMProfile` was added
+
+* `models.ZonePreference` was added
+
+* `models.VirtualHardDisk` was added
+
+* `models.DiskControllerTypes` was added
+
+* `models.WindowsVMGuestPatchAutomaticByPlatformRebootSetting` was added
+
+* `models.DataDisk` was added
+
+* `models.DistributionStrategy` was added
+
+* `models.OsType` was added
+
+* `models.ExtendedLocation` was added
+
+#### `models.RetryPolicy` was modified
+
+* `onFailureAction()` was added
+* `withOnFailureAction(models.ResourceOperationType)` was added
+
+#### `models.ResourceOperationType` was modified
+
+* `DELETE` was added
+* `CREATE` was added
+
+#### `models.ScheduledActions` was modified
+
+* `virtualMachinesSubmitStartWithResponse(java.lang.String,models.SubmitStartContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDeallocateWithResponse(java.lang.String,models.ExecuteDeallocateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDelete(java.lang.String,models.ExecuteDeleteContent)` was added
+* `virtualMachinesExecuteStartWithResponse(java.lang.String,models.ExecuteStartContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteCreateFlex(java.lang.String,models.ExecuteCreateFlexContent)` was added
+* `virtualMachinesGetOperationStatusWithResponse(java.lang.String,models.GetOperationStatusContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteCreate(java.lang.String,models.ExecuteCreateContent)` was added
+* `virtualMachinesGetOperationStatus(java.lang.String,models.GetOperationStatusContent)` was added
+* `virtualMachinesSubmitDeallocateWithResponse(java.lang.String,models.SubmitDeallocateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesGetOperationErrors(java.lang.String,models.GetOperationErrorsContent)` was added
+* `virtualMachinesSubmitStart(java.lang.String,models.SubmitStartContent)` was added
+* `virtualMachinesExecuteHibernate(java.lang.String,models.ExecuteHibernateContent)` was added
+* `virtualMachinesExecuteCreateFlexWithResponse(java.lang.String,models.ExecuteCreateFlexContent,com.azure.core.util.Context)` was added
+* `virtualMachinesCancelOperationsWithResponse(java.lang.String,models.CancelOperationsContent,com.azure.core.util.Context)` was added
+* `virtualMachinesSubmitHibernate(java.lang.String,models.SubmitHibernateContent)` was added
+* `virtualMachinesExecuteHibernateWithResponse(java.lang.String,models.ExecuteHibernateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesCancelOperations(java.lang.String,models.CancelOperationsContent)` was added
+* `virtualMachinesExecuteCreateWithResponse(java.lang.String,models.ExecuteCreateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteStart(java.lang.String,models.ExecuteStartContent)` was added
+* `virtualMachinesSubmitDeallocate(java.lang.String,models.SubmitDeallocateContent)` was added
+* `virtualMachinesGetOperationErrorsWithResponse(java.lang.String,models.GetOperationErrorsContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDeleteWithResponse(java.lang.String,models.ExecuteDeleteContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDeallocate(java.lang.String,models.ExecuteDeallocateContent)` was added
+* `virtualMachinesSubmitHibernateWithResponse(java.lang.String,models.SubmitHibernateContent,com.azure.core.util.Context)` was added
+
+#### `models.ResourceProvisionPayload` was modified
+
+* `withBaseProfile(models.BulkVMConfiguration)` was added
+
+#### `models.ResourceOperationDetails` was modified
-### Other Changes
+* `fallbackOperationInfo()` was added
## 1.2.0-beta.1 (2025-07-24)
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/README.md b/sdk/computeschedule/azure-resourcemanager-computeschedule/README.md
index 68e1deac90cd..e009893720fb 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/README.md
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Compute Schedule client library for Java.
-This package contains Microsoft Azure SDK for Compute Schedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2025-04-15-preview. 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 Schedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2026-04-15-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-computeschedule
- 1.2.0-beta.1
+ 1.2.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/SAMPLE.md b/sdk/computeschedule/azure-resourcemanager-computeschedule/SAMPLE.md
index addb072e737c..cfff57967f63 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/SAMPLE.md
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/SAMPLE.md
@@ -39,6 +39,7 @@
- [Update](#scheduledactions_update)
- [VirtualMachinesCancelOperations](#scheduledactions_virtualmachinescanceloperations)
- [VirtualMachinesExecuteCreate](#scheduledactions_virtualmachinesexecutecreate)
+- [VirtualMachinesExecuteCreateFlex](#scheduledactions_virtualmachinesexecutecreateflex)
- [VirtualMachinesExecuteDeallocate](#scheduledactions_virtualmachinesexecutedeallocate)
- [VirtualMachinesExecuteDelete](#scheduledactions_virtualmachinesexecutedelete)
- [VirtualMachinesExecuteHibernate](#scheduledactions_virtualmachinesexecutehibernate)
@@ -56,7 +57,23 @@
*/
public final class OccurrenceExtensionListOccurrenceByVmsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/OccurrenceExtension_ListOccurrenceByVms_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: OccurrenceExtension_ListOccurrenceByVms_MinimumSet.
+ *
+ * @param manager Entry point to ComputeScheduleManager.
+ */
+ public static void occurrenceExtensionListOccurrenceByVmsMinimumSet(
+ com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
+ manager.occurrenceExtensions()
+ .listOccurrenceByVms(
+ "subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-04-15-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
*/
/**
* Sample code: OccurrenceExtension_ListOccurrenceByVms_MaximumSet.
@@ -65,7 +82,10 @@ public final class OccurrenceExtensionListOccurrenceByVmsSamples {
*/
public static void occurrenceExtensionListOccurrenceByVmsMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.occurrenceExtensions().listOccurrenceByVms("sazvpabfud", com.azure.core.util.Context.NONE);
+ manager.occurrenceExtensions()
+ .listOccurrenceByVms(
+ "subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -81,7 +101,7 @@ import java.util.Arrays;
*/
public final class OccurrencesCancelSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Occurrences_Cancel_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Occurrences_Cancel_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Cancel_MaximumSet.
@@ -91,9 +111,9 @@ public final class OccurrencesCancelSamples {
public static void
occurrencesCancelMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.occurrences()
- .cancelWithResponse("rgcomputeschedule", "myScheduledAction", "CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ .cancelWithResponse("rgcomputeschedule", "scheduled-action-01", "11111111-1111-1111-1111-111111111111",
new CancelOccurrenceRequest().withResourceIds(Arrays.asList(
- "/subscriptions/CB26D7CB-3E27-465F-99C8-EAF7A4118245/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")),
com.azure.core.util.Context.NONE);
}
}
@@ -111,7 +131,7 @@ import java.util.Arrays;
*/
public final class OccurrencesDelaySamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Occurrences_Delay_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Occurrences_Delay_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Delay_MaximumSet.
@@ -121,10 +141,10 @@ public final class OccurrencesDelaySamples {
public static void
occurrencesDelayMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.occurrences()
- .delay("rgcomputeschedule", "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")),
+ .delay("rgcomputeschedule", "scheduled-action-01", "11111111-1111-1111-1111-111111111111",
+ new DelayRequest().withDelay(OffsetDateTime.parse("2026-03-12T02:39:48.148Z"))
+ .withResourceIds(Arrays.asList(
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")),
com.azure.core.util.Context.NONE);
}
}
@@ -138,7 +158,7 @@ public final class OccurrencesDelaySamples {
*/
public final class OccurrencesGetSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Occurrences_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Occurrences_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Get_MaximumSet.
@@ -148,7 +168,7 @@ public final class OccurrencesGetSamples {
public static void
occurrencesGetMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.occurrences()
- .getWithResponse("rgcomputeschedule", "myScheduledAction", "67b5bada-4772-43fc-8dbb-402476d98a45",
+ .getWithResponse("rgcomputeschedule", "scheduled-action-01", "11111111-1111-1111-1111-111111111111",
com.azure.core.util.Context.NONE);
}
}
@@ -162,7 +182,7 @@ public final class OccurrencesGetSamples {
*/
public final class OccurrencesListByScheduledActionSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_ListByScheduledAction_MaximumSet.
@@ -172,7 +192,7 @@ public final class OccurrencesListByScheduledActionSamples {
public static void occurrencesListByScheduledActionMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.occurrences()
- .listByScheduledAction("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ .listByScheduledAction("rgcomputeschedule", "scheduled-action-01", com.azure.core.util.Context.NONE);
}
}
```
@@ -185,7 +205,7 @@ public final class OccurrencesListByScheduledActionSamples {
*/
public final class OccurrencesListResourcesSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Occurrences_ListResources_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Occurrences_ListResources_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_ListResources_MaximumSet.
@@ -195,7 +215,7 @@ public final class OccurrencesListResourcesSamples {
public static void
occurrencesListResourcesMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.occurrences()
- .listResources("rgcomputeschedule", "myScheduledAction", "CB26D7CB-3E27-465F-99C8-EAF7A4118245",
+ .listResources("rgcomputeschedule", "scheduled-action-01", "11111111-1111-1111-1111-111111111111",
com.azure.core.util.Context.NONE);
}
}
@@ -209,7 +229,7 @@ public final class OccurrencesListResourcesSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/Operations_List_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List_MinimumSet.
@@ -222,7 +242,7 @@ public final class OperationsListSamples {
}
/*
- * x-ms-original-file: 2025-04-15-preview/Operations_List_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/Operations_List_MaximumSet_Gen.json
*/
/**
* Sample code: Operations_List_MaximumSet.
@@ -244,7 +264,7 @@ public final class OperationsListSamples {
*/
public final class ScheduledActionExtensionListByVmsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActionExtension_ListByVms_MaximumSet.
@@ -253,11 +273,14 @@ public final class ScheduledActionExtensionListByVmsSamples {
*/
public static void scheduledActionExtensionListByVmsMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActionExtensions().listByVms("sazvpabfud", com.azure.core.util.Context.NONE);
+ manager.scheduledActionExtensions()
+ .listByVms(
+ "subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActionExtension_ListByVms_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActionExtension_ListByVms_MinimumSet_Gen.json
*/
/**
* Sample code: ScheduledActionExtension_ListByVms_MinimumSet.
@@ -266,7 +289,10 @@ public final class ScheduledActionExtensionListByVmsSamples {
*/
public static void scheduledActionExtensionListByVmsMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActionExtensions().listByVms("sazvpabfud", com.azure.core.util.Context.NONE);
+ manager.scheduledActionExtensions()
+ .listByVms(
+ "subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/myVm",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -286,7 +312,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsAttachResourcesSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_AttachResources_MaximumSet.
@@ -296,11 +322,11 @@ public final class ScheduledActionsAttachResourcesSamples {
public static void scheduledActionsAttachResourcesMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .attachResourcesWithResponse("rgcomputeschedule", "myScheduledAction", new ResourceAttachRequest()
+ .attachResourcesWithResponse("rgcomputeschedule", "scheduled-action-01", new ResourceAttachRequest()
.withResources(Arrays.asList(new ScheduledActionResourceInner().withResourceId(
"/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true))))),
@@ -320,7 +346,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsCancelNextOccurrenceSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_CancelNextOccurrence_MaximumSet.
@@ -330,9 +356,9 @@ public final class ScheduledActionsCancelNextOccurrenceSamples {
public static void scheduledActionsCancelNextOccurrenceMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .cancelNextOccurrenceWithResponse("rgcomputeschedule", "myScheduledAction",
+ .cancelNextOccurrenceWithResponse("rgcomputeschedule", "scheduled-action-01",
new CancelOccurrenceRequest().withResourceIds(Arrays.asList(
- "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")),
com.azure.core.util.Context.NONE);
}
}
@@ -348,6 +374,7 @@ import com.azure.resourcemanager.computeschedule.models.Month;
import com.azure.resourcemanager.computeschedule.models.NotificationProperties;
import com.azure.resourcemanager.computeschedule.models.NotificationType;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.ResourceType;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import com.azure.resourcemanager.computeschedule.models.ScheduledActionProperties;
@@ -364,7 +391,7 @@ import java.util.Map;
*/
public final class ScheduledActionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_CreateOrUpdate_MaximumSet.
@@ -374,25 +401,27 @@ public final class ScheduledActionsCreateOrUpdateSamples {
public static void scheduledActionsCreateOrUpdateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .define("myScheduledAction")
- .withRegion("vmuhgdgipeypkcv")
+ .define("scheduled-action-01")
+ .withRegion("eastus2")
.withExistingResourceGroup("rgcomputeschedule")
- .withTags(mapOf("key2102", "fakeTokenPlaceholder"))
+ .withTags(mapOf("environment", "production"))
.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("g")
+ .withStartTime(OffsetDateTime.parse("2026-03-12T02:39:45.061Z"))
+ .withEndTime(OffsetDateTime.parse("2026-03-12T02:39:45.062Z"))
+ .withSchedule(new ScheduledActionsSchedule().withScheduledTime("12:00:00")
+ .withTimeZone("America/Los_Angeles")
.withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
.withRequestedMonths(Arrays.asList(Month.JANUARY))
- .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withRequestedDaysOfTheMonth(Arrays.asList(1))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withDeadlineType(DeadlineType.UNKNOWN))
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true)))
@@ -422,7 +451,7 @@ public final class ScheduledActionsCreateOrUpdateSamples {
*/
public final class ScheduledActionsDeleteSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Delete_MaximumSet.
@@ -431,7 +460,7 @@ public final class ScheduledActionsDeleteSamples {
*/
public static void
scheduledActionsDeleteMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions().delete("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ manager.scheduledActions().delete("rgcomputeschedule", "scheduled-action-01", com.azure.core.util.Context.NONE);
}
}
```
@@ -447,7 +476,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsDetachResourcesSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_DetachResources_MaximumSet.
@@ -457,9 +486,9 @@ public final class ScheduledActionsDetachResourcesSamples {
public static void scheduledActionsDetachResourcesMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .detachResourcesWithResponse("rgcomputeschedule", "myScheduledAction",
+ .detachResourcesWithResponse("rgcomputeschedule", "scheduled-action-01",
new ResourceDetachRequest().withResources(Arrays.asList(
- "/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")),
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")),
com.azure.core.util.Context.NONE);
}
}
@@ -473,7 +502,7 @@ public final class ScheduledActionsDetachResourcesSamples {
*/
public final class ScheduledActionsDisableSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_Disable_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_Disable_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Disable_MaximumSet.
@@ -483,7 +512,7 @@ public final class ScheduledActionsDisableSamples {
public static void
scheduledActionsDisableMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .disableWithResponse("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ .disableWithResponse("rgcomputeschedule", "scheduled-action-01", com.azure.core.util.Context.NONE);
}
}
```
@@ -496,7 +525,7 @@ public final class ScheduledActionsDisableSamples {
*/
public final class ScheduledActionsEnableSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_Enable_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_Enable_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Enable_MaximumSet.
@@ -506,7 +535,7 @@ public final class ScheduledActionsEnableSamples {
public static void
scheduledActionsEnableMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .enableWithResponse("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ .enableWithResponse("rgcomputeschedule", "scheduled-action-01", com.azure.core.util.Context.NONE);
}
}
```
@@ -519,7 +548,7 @@ public final class ScheduledActionsEnableSamples {
*/
public final class ScheduledActionsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_Get_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Get_MaximumSet.
@@ -529,7 +558,8 @@ public final class ScheduledActionsGetByResourceGroupSamples {
public static void
scheduledActionsGetMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .getByResourceGroupWithResponse("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ .getByResourceGroupWithResponse("rgcomputeschedule", "scheduled-action-01",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -542,7 +572,7 @@ public final class ScheduledActionsGetByResourceGroupSamples {
*/
public final class ScheduledActionsListSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListBySubscription_MaximumSet.
@@ -555,7 +585,7 @@ public final class ScheduledActionsListSamples {
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListBySubscription_MinimumSet.
@@ -577,7 +607,7 @@ public final class ScheduledActionsListSamples {
*/
public final class ScheduledActionsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListByResourceGroup_MaximumSet.
@@ -590,7 +620,7 @@ public final class ScheduledActionsListByResourceGroupSamples {
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListByResourceGroup_MinimumSet.
@@ -612,7 +642,7 @@ public final class ScheduledActionsListByResourceGroupSamples {
*/
public final class ScheduledActionsListResourcesSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListResources_MaximumSet.
@@ -622,7 +652,7 @@ public final class ScheduledActionsListResourcesSamples {
public static void scheduledActionsListResourcesMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .listResources("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE);
+ .listResources("rgcomputeschedule", "scheduled-action-01", com.azure.core.util.Context.NONE);
}
}
```
@@ -642,7 +672,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsPatchResourcesSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_PatchResources_MaximumSet.
@@ -652,11 +682,11 @@ public final class ScheduledActionsPatchResourcesSamples {
public static void scheduledActionsPatchResourcesMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .patchResourcesWithResponse("rgcomputeschedule", "myScheduledAction", new ResourcePatchRequest()
+ .patchResourcesWithResponse("rgcomputeschedule", "scheduled-action-01", new ResourcePatchRequest()
.withResources(Arrays.asList(new ScheduledActionResourceInner().withResourceId(
"/subscriptions/1d04e8f1-ee04-4056-b0b2-718f5bb45b04/resourceGroups/myRg/providers/Microsoft.Compute/virtualMachines/myVm")
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true))))),
@@ -673,7 +703,7 @@ public final class ScheduledActionsPatchResourcesSamples {
*/
public final class ScheduledActionsTriggerManualOccurrenceSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_TriggerManualOccurrence_MaximumSet.
@@ -683,7 +713,7 @@ public final class ScheduledActionsTriggerManualOccurrenceSamples {
public static void scheduledActionsTriggerManualOccurrenceMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .triggerManualOccurrenceWithResponse("rgcomputeschedule", "myScheduledAction",
+ .triggerManualOccurrenceWithResponse("rgcomputeschedule", "my-scheduled-action",
com.azure.core.util.Context.NONE);
}
}
@@ -699,6 +729,7 @@ import com.azure.resourcemanager.computeschedule.models.Month;
import com.azure.resourcemanager.computeschedule.models.NotificationProperties;
import com.azure.resourcemanager.computeschedule.models.NotificationType;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.ResourceType;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import com.azure.resourcemanager.computeschedule.models.ScheduledAction;
@@ -716,7 +747,7 @@ import java.util.Map;
*/
public final class ScheduledActionsUpdateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_Update_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Update_MaximumSet.
@@ -726,25 +757,28 @@ public final class ScheduledActionsUpdateSamples {
public static void
scheduledActionsUpdateMaximumSet(com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
ScheduledAction resource = manager.scheduledActions()
- .getByResourceGroupWithResponse("rgcomputeschedule", "myScheduledAction", com.azure.core.util.Context.NONE)
+ .getByResourceGroupWithResponse("rgcomputeschedule", "scheduled-action-01",
+ com.azure.core.util.Context.NONE)
.getValue();
resource.update()
- .withTags(mapOf("key9989", "fakeTokenPlaceholder"))
+ .withTags(mapOf("environment", "staging"))
.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 ScheduledActionsSchedule().withScheduledTime("19:00:00")
- .withTimeZone("bni")
+ .withStartTime(OffsetDateTime.parse("2026-03-12T02:39:45.818Z"))
+ .withEndTime(OffsetDateTime.parse("2026-03-12T02:39:45.818Z"))
+ .withSchedule(new ScheduledActionsSchedule().withScheduledTime("12:00:00")
+ .withTimeZone("America/Los_Angeles")
.withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
.withRequestedMonths(Arrays.asList(Month.JANUARY))
- .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withRequestedDaysOfTheMonth(Arrays.asList(1))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withDeadlineType(DeadlineType.UNKNOWN))
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("admin@contoso.com")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true)))
@@ -769,7 +803,7 @@ public final class ScheduledActionsUpdateSamples {
### ScheduledActions_VirtualMachinesCancelOperations
```java
-import com.azure.resourcemanager.computeschedule.models.CancelOperationsRequest;
+import com.azure.resourcemanager.computeschedule.models.CancelOperationsContent;
import java.util.Arrays;
/**
@@ -777,7 +811,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesCancelOperationsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesCancelOperations_MinimumSet.
@@ -787,14 +821,14 @@ public final class ScheduledActionsVirtualMachinesCancelOperationsSamples {
public static void scheduledActionsVirtualMachinesCancelOperationsMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesCancelOperationsWithResponse("fhdunfivmjiltaiakwhhwdgemfcld",
- new CancelOperationsRequest().withOperationIds(Arrays.asList("b211f086-4b91-4686-a453-2f5c012e4d80"))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"),
+ .virtualMachinesCancelOperationsWithResponse("eastus2",
+ new CancelOperationsContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef"))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesCancelOperations_MaximumSet.
@@ -804,9 +838,9 @@ public final class ScheduledActionsVirtualMachinesCancelOperationsSamples {
public static void scheduledActionsVirtualMachinesCancelOperationsMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesCancelOperationsWithResponse("nivsvluajruxhmsfgmxjnl",
- new CancelOperationsRequest().withOperationIds(Arrays.asList("b211f086-4b91-4686-a453-2f5c012e4d80"))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"),
+ .virtualMachinesCancelOperationsWithResponse("eastus2",
+ new CancelOperationsContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef"))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
com.azure.core.util.Context.NONE);
}
}
@@ -815,12 +849,47 @@ public final class ScheduledActionsVirtualMachinesCancelOperationsSamples {
### ScheduledActions_VirtualMachinesExecuteCreate
```java
-import com.azure.core.util.BinaryData;
-import com.azure.resourcemanager.computeschedule.models.ExecuteCreateRequest;
+import com.azure.resourcemanager.computeschedule.models.AdditionalCapabilities;
+import com.azure.resourcemanager.computeschedule.models.BootDiagnostics;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMExtension;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMProfile;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMSpec;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVmExtensionProperties;
+import com.azure.resourcemanager.computeschedule.models.BulkVMConfiguration;
+import com.azure.resourcemanager.computeschedule.models.CachingTypes;
+import com.azure.resourcemanager.computeschedule.models.DataDisk;
+import com.azure.resourcemanager.computeschedule.models.DeleteOptions;
+import com.azure.resourcemanager.computeschedule.models.DiagnosticsProfile;
+import com.azure.resourcemanager.computeschedule.models.DiskControllerTypes;
+import com.azure.resourcemanager.computeschedule.models.DiskCreateOptionTypes;
+import com.azure.resourcemanager.computeschedule.models.DiskDeleteOptionTypes;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateContent;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
+import com.azure.resourcemanager.computeschedule.models.ImageReference;
+import com.azure.resourcemanager.computeschedule.models.LinuxConfiguration;
+import com.azure.resourcemanager.computeschedule.models.LinuxPatchAssessmentMode;
+import com.azure.resourcemanager.computeschedule.models.LinuxPatchSettings;
+import com.azure.resourcemanager.computeschedule.models.LinuxVMGuestPatchMode;
+import com.azure.resourcemanager.computeschedule.models.ManagedDiskParameters;
+import com.azure.resourcemanager.computeschedule.models.NetworkInterfaceReference;
+import com.azure.resourcemanager.computeschedule.models.NetworkInterfaceReferenceProperties;
+import com.azure.resourcemanager.computeschedule.models.NetworkProfile;
+import com.azure.resourcemanager.computeschedule.models.OSDisk;
+import com.azure.resourcemanager.computeschedule.models.OSProfile;
+import com.azure.resourcemanager.computeschedule.models.OperatingSystemTypes;
+import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceIdentityType;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.ResourceProvisionPayload;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
-import java.nio.charset.StandardCharsets;
+import com.azure.resourcemanager.computeschedule.models.SecurityProfile;
+import com.azure.resourcemanager.computeschedule.models.SecurityTypes;
+import com.azure.resourcemanager.computeschedule.models.SshConfiguration;
+import com.azure.resourcemanager.computeschedule.models.SshPublicKey;
+import com.azure.resourcemanager.computeschedule.models.StorageAccountTypes;
+import com.azure.resourcemanager.computeschedule.models.StorageProfile;
+import com.azure.resourcemanager.computeschedule.models.UefiSettings;
+import com.azure.resourcemanager.computeschedule.models.VirtualMachineIdentity;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -830,83 +899,369 @@ import java.util.Map;
*/
public final class ScheduledActionsVirtualMachinesExecuteCreateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MaximumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteCreate_MaximumSet_Gen - generated by [MaximumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteCreate_MaximumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteCreateMaximumSetGenGeneratedByMaximumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteCreateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteCreateWithResponse("oslhbouzgevzpeydssyelhw", new ExecuteCreateRequest()
- .withResourceConfigParameters(new ResourceProvisionPayload().withBaseProfile(mapOf("hardwareProfile",
- BinaryData.fromBytes("{name=F1}".getBytes(StandardCharsets.UTF_8)), "provisioningState",
- BinaryData.fromBytes("0".getBytes(StandardCharsets.UTF_8)), "storageProfile",
- BinaryData.fromBytes("{osDisk={osType=0}}".getBytes(StandardCharsets.UTF_8)), "vmExtensions",
- BinaryData.fromBytes(
- "[{autoUpgradeMinorVersion=true, protectedSettings=SomeDecryptedSecretValue, provisioningState=0, enableAutomaticUpgrade=true, publisher=Microsoft.Azure.Monitor, type=AzureMonitorLinuxAgent, typeHandlerVersion=1.0}, {name=myExtensionName}]"
- .getBytes(StandardCharsets.UTF_8)),
- "resourcegroupName",
- BinaryData.fromBytes("RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B".getBytes(StandardCharsets.UTF_8)),
- "computeApiVersion", BinaryData.fromBytes("2024-07-01".getBytes(StandardCharsets.UTF_8))))
- .withResourceOverrides(Arrays.asList(mapOf("name",
- BinaryData.fromBytes("myFleet_523".getBytes(StandardCharsets.UTF_8)), "location",
- BinaryData.fromBytes("LocalDev".getBytes(StandardCharsets.UTF_8)), "properties",
- BinaryData.fromBytes(
- "{hardwareProfile={vmSize=Standard_F1s}, provisioningState=0, osProfile={computerName=myFleet000000, adminUsername=adminUser, windowsConfiguration={additionalUnattendContent=[{passName=someValue, content=}, {passName=someOtherValue, content=SomeDecryptedSecretValue}]}, adminPassword=SomeDecryptedSecretValue}, priority=0}"
- .getBytes(StandardCharsets.UTF_8)),
- "zones", BinaryData.fromBytes("[1]".getBytes(StandardCharsets.UTF_8))),
- mapOf("name", BinaryData.fromBytes("myFleet_524".getBytes(StandardCharsets.UTF_8)), "location",
- BinaryData.fromBytes("LocalDev".getBytes(StandardCharsets.UTF_8)), "properties",
- BinaryData.fromBytes(
- "{hardwareProfile={vmSize=Standard_G1s}, provisioningState=0, osProfile={computerName=myFleet000000, adminUsername=adminUser, windowsConfiguration={additionalUnattendContent=[{passName=someValue, content=}, {passName=someOtherValue, content=SomeDecryptedSecretValue}]}, adminPassword=SomeDecryptedSecretValue}, priority=0}"
- .getBytes(StandardCharsets.UTF_8)),
- "zones", BinaryData.fromBytes("[2]".getBytes(StandardCharsets.UTF_8)))))
- .withResourceCount(2)
- .withResourcePrefix("TL1"))
- .withExecutionParameters(new ExecutionParameters()
- .withRetryPolicy(new RetryPolicy().withRetryCount(5).withRetryWindowInMinutes(40)))
- .withCorrelationid("dfe927c5-16a6-40b7-a0f7-8524975ed642"), com.azure.core.util.Context.NONE);
+ .virtualMachinesExecuteCreateWithResponse("eastus2",
+ new ExecuteCreateContent()
+ .withResourceConfigParameters(
+ new ResourceProvisionPayload()
+ .withBaseProfile(
+ new BulkVMConfiguration()
+ .withVmProperties(new BulkActionVMSpec().withZones(Arrays.asList("1"))
+ .withIdentity(
+ new VirtualMachineIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .withTags(mapOf("environment", "production", "department", "engineering"))
+ .withVmProperties(new BulkActionVMProfile()
+ .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)
+ .withName("myOsDisk")
+ .withCaching(CachingTypes.READ_WRITE)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(128)
+ .withManagedDisk(new ManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE))
+ .withDataDisks(
+ Arrays.asList(new DataDisk().withLun(0)
+ .withName("myDataDisk-0")
+ .withCaching(CachingTypes.READ_ONLY)
+ .withCreateOption(DiskCreateOptionTypes.EMPTY)
+ .withDiskSizeGB(256)
+ .withManagedDisk(
+ new ManagedDiskParameters().withStorageAccountType(
+ StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withDiskControllerType(DiskControllerTypes.SCSI))
+ .withAdditionalCapabilities(
+ new AdditionalCapabilities().withUltraSSDEnabled(false)
+ .withHibernationEnabled(false))
+ .withOsProfile(new OSProfile().withComputerName("myVM")
+ .withAdminUsername("azureuser")
+ .withLinuxConfiguration(
+ new LinuxConfiguration().withDisablePasswordAuthentication(true)
+ .withSsh(new SshConfiguration()
+ .withPublicKeys(Arrays.asList(new SshPublicKey()
+ .withPath("/home/azureuser/.ssh/authorized_keys")
+ .withKeyData("fakeTokenPlaceholder"))))
+ .withProvisionVMAgent(true)
+ .withPatchSettings(new LinuxPatchSettings()
+ .withPatchMode(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM)
+ .withAssessmentMode(
+ LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM)))
+ .withAllowExtensionOperations(true))
+ .withNetworkProfile(new NetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new NetworkInterfaceReference().withId(
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/myNic")
+ .withProperties(
+ new NetworkInterfaceReferenceProperties().withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)))))
+ .withSecurityProfile(new SecurityProfile()
+ .withUefiSettings(new UefiSettings().withSecureBootEnabled(true)
+ .withVTpmEnabled(true))
+ .withSecurityType(SecurityTypes.TRUSTED_LAUNCH))
+ .withDiagnosticsProfile(new DiagnosticsProfile()
+ .withBootDiagnostics(new BootDiagnostics().withEnabled(true)))))
+ .withExtensions(
+ Arrays.asList(new BulkActionVMExtension().withName("AzureMonitorLinuxAgent")
+ .withProperties(new BulkActionVmExtensionProperties()
+ .withPublisher("Microsoft.Azure.Monitor")
+ .withType("AzureMonitorLinuxAgent")
+ .withTypeHandlerVersion("1.0")
+ .withAutoUpgradeMinorVersion(true)
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(mapOf())
+ .withSuppressFailures(false))))
+ .withComputeApiVersion("2024-07-01")
+ .withName("baseVmConfig"))
+ .withResourceOverrides(Arrays.asList(new BulkVMConfiguration()
+ .withVmProperties(new BulkActionVMSpec().withZones(Arrays.asList("2"))
+ .withTags(mapOf("environment", "production", "department", "engineering", "role",
+ "web-server"))
+ .withVmProperties(new BulkActionVMProfile()
+ .withStorageProfile(new StorageProfile().withOsDisk(
+ new OSDisk()
+ .withOsType(OperatingSystemTypes.LINUX)
+ .withName("overrideOsDisk")
+ .withCaching(CachingTypes.READ_WRITE)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(256)
+ .withManagedDisk(new ManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withNetworkProfile(new NetworkProfile()
+ .withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId(
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/myNic-override")
+ .withProperties(
+ new NetworkInterfaceReferenceProperties().withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)))))))
+ .withComputeApiVersion("2024-07-01")
+ .withName("overrideVmConfig-0")))
+ .withResourceCount(3)
+ .withResourcePrefix("myBulkVm"))
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withCorrelationid("01234567-89ab-cdef-0123-456789abcdef"),
+ com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteCreateMinimumSetGenGeneratedByMinimumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteCreateMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteCreateWithResponse("useast", new ExecuteCreateRequest()
- .withResourceConfigParameters(new ResourceProvisionPayload().withBaseProfile(mapOf("hardwareProfile",
- BinaryData.fromBytes("{name=F1}".getBytes(StandardCharsets.UTF_8)), "provisioningState",
- BinaryData.fromBytes("0".getBytes(StandardCharsets.UTF_8)), "storageProfile",
- BinaryData.fromBytes("{osDisk={osType=0}}".getBytes(StandardCharsets.UTF_8)), "vmExtensions",
- BinaryData.fromBytes(
- "[{autoUpgradeMinorVersion=true, protectedSettings=SomeDecryptedSecretValue, provisioningState=0, enableAutomaticUpgrade=true, publisher=Microsoft.Azure.Monitor, type=AzureMonitorLinuxAgent, typeHandlerVersion=1.0}, {name=myExtensionName}]"
- .getBytes(StandardCharsets.UTF_8)),
- "resourcegroupName",
- BinaryData.fromBytes("RG5ABF491C-3164-42A6-8CB5-BF3CB53B018B".getBytes(StandardCharsets.UTF_8)),
- "computeApiVersion", BinaryData.fromBytes("2024-07-01".getBytes(StandardCharsets.UTF_8))))
- .withResourceOverrides(Arrays.asList(mapOf("name",
- BinaryData.fromBytes("myFleet_523".getBytes(StandardCharsets.UTF_8)), "location",
- BinaryData.fromBytes("LocalDev".getBytes(StandardCharsets.UTF_8)), "properties",
- BinaryData.fromBytes(
- "{hardwareProfile={vmSize=Standard_F1s}, provisioningState=0, osProfile={computerName=myFleet000000, adminUsername=adminUser, windowsConfiguration={additionalUnattendContent=[{passName=someValue, content=}, {passName=someOtherValue, content=SomeDecryptedSecretValue}]}, adminPassword=SomeDecryptedSecretValue}, priority=0}"
- .getBytes(StandardCharsets.UTF_8)),
- "zones", BinaryData.fromBytes("[1]".getBytes(StandardCharsets.UTF_8))),
- mapOf("name", BinaryData.fromBytes("myFleet_524".getBytes(StandardCharsets.UTF_8)), "location",
- BinaryData.fromBytes("LocalDev".getBytes(StandardCharsets.UTF_8)), "properties",
- BinaryData.fromBytes(
- "{hardwareProfile={vmSize=Standard_G1s}, provisioningState=0, osProfile={computerName=myFleet000000, adminUsername=adminUser, windowsConfiguration={additionalUnattendContent=[{passName=someValue, content=}, {passName=someOtherValue, content=SomeDecryptedSecretValue}]}, adminPassword=SomeDecryptedSecretValue}, priority=0}"
- .getBytes(StandardCharsets.UTF_8)),
- "zones", BinaryData.fromBytes("[2]".getBytes(StandardCharsets.UTF_8)))))
- .withResourceCount(2))
+ .virtualMachinesExecuteCreateWithResponse("eastus2",
+ new ExecuteCreateContent()
+ .withResourceConfigParameters(new ResourceProvisionPayload().withResourceCount(3))
+ .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;
+ }
+}
+```
+
+### ScheduledActions_VirtualMachinesExecuteCreateFlex
+
+```java
+import com.azure.resourcemanager.computeschedule.models.AdditionalCapabilities;
+import com.azure.resourcemanager.computeschedule.models.AllocationStrategy;
+import com.azure.resourcemanager.computeschedule.models.BootDiagnostics;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMExtension;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMProfile;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVMSpec;
+import com.azure.resourcemanager.computeschedule.models.BulkActionVmExtensionProperties;
+import com.azure.resourcemanager.computeschedule.models.BulkVMConfiguration;
+import com.azure.resourcemanager.computeschedule.models.CachingTypes;
+import com.azure.resourcemanager.computeschedule.models.DataDisk;
+import com.azure.resourcemanager.computeschedule.models.DeleteOptions;
+import com.azure.resourcemanager.computeschedule.models.DiagnosticsProfile;
+import com.azure.resourcemanager.computeschedule.models.DiskControllerTypes;
+import com.azure.resourcemanager.computeschedule.models.DiskCreateOptionTypes;
+import com.azure.resourcemanager.computeschedule.models.DiskDeleteOptionTypes;
+import com.azure.resourcemanager.computeschedule.models.DistributionStrategy;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateFlexContent;
+import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
+import com.azure.resourcemanager.computeschedule.models.FlexProperties;
+import com.azure.resourcemanager.computeschedule.models.ImageReference;
+import com.azure.resourcemanager.computeschedule.models.LinuxConfiguration;
+import com.azure.resourcemanager.computeschedule.models.LinuxPatchAssessmentMode;
+import com.azure.resourcemanager.computeschedule.models.LinuxPatchSettings;
+import com.azure.resourcemanager.computeschedule.models.LinuxVMGuestPatchMode;
+import com.azure.resourcemanager.computeschedule.models.ManagedDiskParameters;
+import com.azure.resourcemanager.computeschedule.models.NetworkInterfaceReference;
+import com.azure.resourcemanager.computeschedule.models.NetworkInterfaceReferenceProperties;
+import com.azure.resourcemanager.computeschedule.models.NetworkProfile;
+import com.azure.resourcemanager.computeschedule.models.OSDisk;
+import com.azure.resourcemanager.computeschedule.models.OSProfile;
+import com.azure.resourcemanager.computeschedule.models.OperatingSystemTypes;
+import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.OsType;
+import com.azure.resourcemanager.computeschedule.models.PriorityProfile;
+import com.azure.resourcemanager.computeschedule.models.PriorityType;
+import com.azure.resourcemanager.computeschedule.models.ResourceIdentityType;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
+import com.azure.resourcemanager.computeschedule.models.ResourceProvisionFlexPayload;
+import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
+import com.azure.resourcemanager.computeschedule.models.SecurityProfile;
+import com.azure.resourcemanager.computeschedule.models.SecurityTypes;
+import com.azure.resourcemanager.computeschedule.models.SshConfiguration;
+import com.azure.resourcemanager.computeschedule.models.SshPublicKey;
+import com.azure.resourcemanager.computeschedule.models.StorageAccountTypes;
+import com.azure.resourcemanager.computeschedule.models.StorageProfile;
+import com.azure.resourcemanager.computeschedule.models.UefiSettings;
+import com.azure.resourcemanager.computeschedule.models.VirtualMachineIdentity;
+import com.azure.resourcemanager.computeschedule.models.VmSizeProfile;
+import com.azure.resourcemanager.computeschedule.models.ZoneAllocationPolicy;
+import com.azure.resourcemanager.computeschedule.models.ZonePreference;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for ScheduledActions VirtualMachinesExecuteCreateFlex.
+ */
+public final class ScheduledActionsVirtualMachinesExecuteCreateFlexSamples {
+ /*
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreateFlex_MaximumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_VirtualMachinesExecuteCreateFlex_MaximumSet.
+ *
+ * @param manager Entry point to ComputeScheduleManager.
+ */
+ public static void scheduledActionsVirtualMachinesExecuteCreateFlexMaximumSet(
+ com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
+ manager.scheduledActions()
+ .virtualMachinesExecuteCreateFlexWithResponse("eastus2",
+ new ExecuteCreateFlexContent()
+ .withResourceConfigParameters(
+ new ResourceProvisionFlexPayload()
+ .withBaseProfile(
+ new BulkVMConfiguration()
+ .withVmProperties(new BulkActionVMSpec().withZones(Arrays.asList("1"))
+ .withIdentity(
+ new VirtualMachineIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
+ .withTags(mapOf("environment", "production", "department", "engineering"))
+ .withVmProperties(new BulkActionVMProfile()
+ .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)
+ .withName("myOsDisk")
+ .withCaching(CachingTypes.READ_WRITE)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(128)
+ .withManagedDisk(new ManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE))
+ .withDataDisks(
+ Arrays.asList(new DataDisk().withLun(0)
+ .withName("myDataDisk-0")
+ .withCaching(CachingTypes.READ_ONLY)
+ .withCreateOption(DiskCreateOptionTypes.EMPTY)
+ .withDiskSizeGB(256)
+ .withManagedDisk(
+ new ManagedDiskParameters().withStorageAccountType(
+ StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withDiskControllerType(DiskControllerTypes.SCSI))
+ .withAdditionalCapabilities(
+ new AdditionalCapabilities().withUltraSSDEnabled(false)
+ .withHibernationEnabled(false))
+ .withOsProfile(new OSProfile().withComputerName("myFlexVM")
+ .withAdminUsername("azureuser")
+ .withLinuxConfiguration(
+ new LinuxConfiguration().withDisablePasswordAuthentication(true)
+ .withSsh(new SshConfiguration()
+ .withPublicKeys(Arrays.asList(new SshPublicKey()
+ .withPath("/home/azureuser/.ssh/authorized_keys")
+ .withKeyData("fakeTokenPlaceholder"))))
+ .withProvisionVMAgent(true)
+ .withPatchSettings(new LinuxPatchSettings()
+ .withPatchMode(LinuxVMGuestPatchMode.AUTOMATIC_BY_PLATFORM)
+ .withAssessmentMode(
+ LinuxPatchAssessmentMode.AUTOMATIC_BY_PLATFORM)))
+ .withAllowExtensionOperations(true))
+ .withNetworkProfile(new NetworkProfile().withNetworkInterfaces(
+ Arrays.asList(new NetworkInterfaceReference().withId(
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/myNic")
+ .withProperties(
+ new NetworkInterfaceReferenceProperties().withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)))))
+ .withSecurityProfile(new SecurityProfile()
+ .withUefiSettings(new UefiSettings().withSecureBootEnabled(true)
+ .withVTpmEnabled(true))
+ .withSecurityType(SecurityTypes.TRUSTED_LAUNCH))
+ .withDiagnosticsProfile(new DiagnosticsProfile()
+ .withBootDiagnostics(new BootDiagnostics().withEnabled(true)))))
+ .withExtensions(
+ Arrays.asList(new BulkActionVMExtension().withName("AzureMonitorLinuxAgent")
+ .withProperties(new BulkActionVmExtensionProperties()
+ .withPublisher("Microsoft.Azure.Monitor")
+ .withType("AzureMonitorLinuxAgent")
+ .withTypeHandlerVersion("1.0")
+ .withAutoUpgradeMinorVersion(true)
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(mapOf())
+ .withSuppressFailures(false))))
+ .withComputeApiVersion("2024-07-01")
+ .withName("baseFlexVmConfig"))
+ .withResourceOverrides(Arrays.asList(new BulkVMConfiguration()
+ .withVmProperties(new BulkActionVMSpec().withZones(Arrays.asList("2"))
+ .withTags(mapOf("environment", "production", "department", "engineering", "role",
+ "web-server"))
+ .withVmProperties(new BulkActionVMProfile()
+ .withStorageProfile(new StorageProfile().withOsDisk(
+ new OSDisk()
+ .withOsType(OperatingSystemTypes.LINUX)
+ .withName("overrideOsDisk")
+ .withCaching(CachingTypes.READ_WRITE)
+ .withCreateOption(DiskCreateOptionTypes.FROM_IMAGE)
+ .withDiskSizeGB(256)
+ .withManagedDisk(new ManagedDiskParameters()
+ .withStorageAccountType(StorageAccountTypes.PREMIUM_LRS))
+ .withDeleteOption(DiskDeleteOptionTypes.DELETE)))
+ .withNetworkProfile(new NetworkProfile()
+ .withNetworkInterfaces(Arrays.asList(new NetworkInterfaceReference().withId(
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/myNic-override")
+ .withProperties(
+ new NetworkInterfaceReferenceProperties().withPrimary(true)
+ .withDeleteOption(DeleteOptions.DELETE)))))))
+ .withComputeApiVersion("2024-07-01")
+ .withName("overrideFlexVmConfig-0")))
+ .withResourceCount(24)
+ .withResourcePrefix("myFlexVm")
+ .withFlexProperties(new FlexProperties()
+ .withVmSizeProfiles(
+ Arrays.asList(new VmSizeProfile().withName("Standard_D2s_v3").withRank(24),
+ new VmSizeProfile().withName("Standard_D2s_v3").withRank(24)))
+ .withOsType(OsType.WINDOWS)
+ .withPriorityProfile(new PriorityProfile().withType(PriorityType.REGULAR)
+ .withAllocationStrategy(AllocationStrategy.LOWEST_PRICE))
+ .withZoneAllocationPolicy(new ZoneAllocationPolicy()
+ .withDistributionStrategy(DistributionStrategy.BEST_EFFORT_SINGLE_ZONE)
+ .withZonePreferences(
+ Arrays.asList(new ZonePreference().withZone("1").withRank(21))))))
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreateFlex_MinimumSet_Gen.json
+ */
+ /**
+ * Sample code: ScheduledActions_VirtualMachinesExecuteCreateFlex_MinimumSet.
+ *
+ * @param manager Entry point to ComputeScheduleManager.
+ */
+ public static void scheduledActionsVirtualMachinesExecuteCreateFlexMinimumSet(
+ com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
+ manager.scheduledActions()
+ .virtualMachinesExecuteCreateFlexWithResponse("eastus2", new ExecuteCreateFlexContent()
+ .withResourceConfigParameters(new ResourceProvisionFlexPayload().withResourceCount(24)
+ .withFlexProperties(new FlexProperties()
+ .withVmSizeProfiles(Arrays.asList(new VmSizeProfile().withName("Standard_D2s_v3").withRank(24),
+ new VmSizeProfile().withName("Standard_D2s_v3").withRank(24)))
+ .withOsType(OsType.WINDOWS)
+ .withPriorityProfile(new PriorityProfile())))
.withExecutionParameters(new ExecutionParameters()), com.azure.core.util.Context.NONE);
}
@@ -927,9 +1282,10 @@ public final class ScheduledActionsVirtualMachinesExecuteCreateSamples {
### ScheduledActions_VirtualMachinesExecuteDeallocate
```java
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateContent;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import java.util.Arrays;
@@ -939,7 +1295,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet.
@@ -949,15 +1305,15 @@ public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
public static void scheduledActionsVirtualMachinesExecuteDeallocateMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeallocateWithResponse("qqfrkswrovcice", new ExecuteDeallocateRequest()
+ .virtualMachinesExecuteDeallocateWithResponse("eastus2", new ExecuteDeallocateContent()
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet.
@@ -967,13 +1323,15 @@ public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
public static void scheduledActionsVirtualMachinesExecuteDeallocateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeallocateWithResponse("ykcaptgboliddcfyaiuimj", new ExecuteDeallocateRequest()
+ .virtualMachinesExecuteDeallocateWithResponse("eastus2", new ExecuteDeallocateContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
@@ -981,8 +1339,10 @@ public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
### ScheduledActions_VirtualMachinesExecuteDelete
```java
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteContent;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
+import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import java.util.Arrays;
@@ -992,43 +1352,44 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteDeleteSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet_Gen - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteDeleteMinimumSetGenGeneratedByMinimumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteDeleteMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeleteWithResponse("east", new ExecuteDeleteRequest()
+ .virtualMachinesExecuteDeleteWithResponse("eastus2", new ExecuteDeleteContent()
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3",
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4"))),
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1"))),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen - generated by [MaximumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteDeleteMaximumSetGenGeneratedByMaximumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteDeleteMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeleteWithResponse("east", new ExecuteDeleteRequest()
- .withExecutionParameters(new ExecutionParameters()
- .withRetryPolicy(new RetryPolicy().withRetryCount(2).withRetryWindowInMinutes(4)))
+ .virtualMachinesExecuteDeleteWithResponse("eastus2", new ExecuteDeleteContent()
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource3",
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("dfe927c5-16a6-40b7-a0f7-8524975ed642")
- .withForceDeletion(false), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890")
+ .withForceDeletion(true), com.azure.core.util.Context.NONE);
}
}
```
@@ -1036,9 +1397,10 @@ public final class ScheduledActionsVirtualMachinesExecuteDeleteSamples {
### ScheduledActions_VirtualMachinesExecuteHibernate
```java
-import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateContent;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import java.util.Arrays;
@@ -1048,25 +1410,25 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteHibernateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteHibernateMinimumSet(
+ public static void scheduledActionsVirtualMachinesExecuteHibernateMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteHibernateWithResponse("xtmm", new ExecuteHibernateRequest()
+ .virtualMachinesExecuteHibernateWithResponse("eastus2", new ExecuteHibernateContent()
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet.
@@ -1076,13 +1438,15 @@ public final class ScheduledActionsVirtualMachinesExecuteHibernateSamples {
public static void scheduledActionsVirtualMachinesExecuteHibernateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteHibernateWithResponse("gztd", new ExecuteHibernateRequest()
+ .virtualMachinesExecuteHibernateWithResponse("eastus2", new ExecuteHibernateContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1090,9 +1454,10 @@ public final class ScheduledActionsVirtualMachinesExecuteHibernateSamples {
### ScheduledActions_VirtualMachinesExecuteStart
```java
-import com.azure.resourcemanager.computeschedule.models.ExecuteStartRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecuteStartContent;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import java.util.Arrays;
@@ -1102,7 +1467,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteStartSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteStart_MaximumSet.
@@ -1112,31 +1477,33 @@ public final class ScheduledActionsVirtualMachinesExecuteStartSamples {
public static void scheduledActionsVirtualMachinesExecuteStartMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteStartWithResponse("qk", new ExecuteStartRequest()
+ .virtualMachinesExecuteStartWithResponse("eastus2", new ExecuteStartContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteStart_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteStart_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteStartMinimumSet(
+ public static void scheduledActionsVirtualMachinesExecuteStartMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteStartWithResponse("fbdewllahrteoavajbomjc", new ExecuteStartRequest()
+ .virtualMachinesExecuteStartWithResponse("eastus2", new ExecuteStartContent()
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1144,7 +1511,7 @@ public final class ScheduledActionsVirtualMachinesExecuteStartSamples {
### ScheduledActions_VirtualMachinesGetOperationErrors
```java
-import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsRequest;
+import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsContent;
import java.util.Arrays;
/**
@@ -1152,34 +1519,34 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesGetOperationErrorsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet_Gen - generated by [MaximumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesGetOperationErrors_MaximumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesGetOperationErrorsMaximumSetGenGeneratedByMaximumSetRule(
+ public static void scheduledActionsVirtualMachinesGetOperationErrorsMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesGetOperationErrorsWithResponse("ennweqswbghorrgzbet",
- new GetOperationErrorsRequest().withOperationIds(Arrays.asList("ksufjznokhsbowdupyt")),
+ .virtualMachinesGetOperationErrorsWithResponse("eastus2",
+ new GetOperationErrorsContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef")),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesGetOperationErrorsMinimumSetGenGeneratedByMinimumSetRule(
+ public static void scheduledActionsVirtualMachinesGetOperationErrorsMinimumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesGetOperationErrorsWithResponse("gcdqwzmxtcn",
- new GetOperationErrorsRequest().withOperationIds(Arrays.asList("ksufjznokhsbowdupyt")),
+ .virtualMachinesGetOperationErrorsWithResponse("eastus2",
+ new GetOperationErrorsContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef")),
com.azure.core.util.Context.NONE);
}
}
@@ -1188,7 +1555,7 @@ public final class ScheduledActionsVirtualMachinesGetOperationErrorsSamples {
### ScheduledActions_VirtualMachinesGetOperationStatus
```java
-import com.azure.resourcemanager.computeschedule.models.GetOperationStatusRequest;
+import com.azure.resourcemanager.computeschedule.models.GetOperationStatusContent;
import java.util.Arrays;
/**
@@ -1196,7 +1563,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesGetOperationStatusSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet.
@@ -1206,26 +1573,26 @@ public final class ScheduledActionsVirtualMachinesGetOperationStatusSamples {
public static void scheduledActionsVirtualMachinesGetOperationStatusMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesGetOperationStatusWithResponse("ntfcikxsmthfkdhdcjpevmydzu",
- new GetOperationStatusRequest().withOperationIds(Arrays.asList("b211f086-4b91-4686-a453-2f5c012e4d80"))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"),
+ .virtualMachinesGetOperationStatusWithResponse("eastus2",
+ new GetOperationStatusContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef"))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesGetOperationStatusMinimumSet(
+ public static void scheduledActionsVirtualMachinesGetOperationStatusMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesGetOperationStatusWithResponse("ykvvjfoopmkwznctgaiblzvea",
- new GetOperationStatusRequest().withOperationIds(Arrays.asList("duhqnwosjzexcfwfhryvy"))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"),
+ .virtualMachinesGetOperationStatusWithResponse("eastus2",
+ new GetOperationStatusContent().withOperationIds(Arrays.asList("01234567-89ab-cdef-0123-456789abcdef"))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"),
com.azure.core.util.Context.NONE);
}
}
@@ -1237,10 +1604,11 @@ public final class ScheduledActionsVirtualMachinesGetOperationStatusSamples {
import com.azure.resourcemanager.computeschedule.models.DeadlineType;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import com.azure.resourcemanager.computeschedule.models.Schedule;
-import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateContent;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -1249,7 +1617,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesSubmitDeallocateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet.
@@ -1259,37 +1627,39 @@ public final class ScheduledActionsVirtualMachinesSubmitDeallocateSamples {
public static void scheduledActionsVirtualMachinesSubmitDeallocateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitDeallocateWithResponse("ycipx", new SubmitDeallocateRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
+ .virtualMachinesSubmitDeallocateWithResponse("eastus2", new SubmitDeallocateContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("America/Los_Angeles")
+ .withTimeZone("America/Los_Angeles")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesSubmitDeallocateMinimumSet(
+ public static void scheduledActionsVirtualMachinesSubmitDeallocateMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitDeallocateWithResponse("zrcmkxsbuxsxxulky", new SubmitDeallocateRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
- .withDeadlineType(DeadlineType.UNKNOWN))
+ .virtualMachinesSubmitDeallocateWithResponse("eastus2", new SubmitDeallocateContent()
+ .withSchedule(new Schedule().withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1300,10 +1670,11 @@ public final class ScheduledActionsVirtualMachinesSubmitDeallocateSamples {
import com.azure.resourcemanager.computeschedule.models.DeadlineType;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import com.azure.resourcemanager.computeschedule.models.Schedule;
-import com.azure.resourcemanager.computeschedule.models.SubmitHibernateRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitHibernateContent;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -1312,28 +1683,26 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesSubmitHibernateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesSubmitHibernateMinimumSet(
+ public static void scheduledActionsVirtualMachinesSubmitHibernateMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitHibernateWithResponse("zuevcqpgdohzbjodhachtr", new SubmitHibernateRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
- .withDeadlineType(DeadlineType.UNKNOWN))
+ .virtualMachinesSubmitHibernateWithResponse("eastus2", new SubmitHibernateContent()
+ .withSchedule(new Schedule().withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet.
@@ -1343,16 +1712,20 @@ public final class ScheduledActionsVirtualMachinesSubmitHibernateSamples {
public static void scheduledActionsVirtualMachinesSubmitHibernateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitHibernateWithResponse("rhadyapnyvmobwg", new SubmitHibernateRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
+ .virtualMachinesSubmitHibernateWithResponse("eastus2", new SubmitHibernateContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("America/Los_Angeles")
+ .withTimeZone("America/Los_Angeles")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1363,10 +1736,11 @@ public final class ScheduledActionsVirtualMachinesSubmitHibernateSamples {
import com.azure.resourcemanager.computeschedule.models.DeadlineType;
import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
import com.azure.resourcemanager.computeschedule.models.OptimizationPreference;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperationType;
import com.azure.resourcemanager.computeschedule.models.Resources;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
import com.azure.resourcemanager.computeschedule.models.Schedule;
-import com.azure.resourcemanager.computeschedule.models.SubmitStartRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitStartContent;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -1375,7 +1749,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesSubmitStartSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitStart_MaximumSet.
@@ -1385,37 +1759,39 @@ public final class ScheduledActionsVirtualMachinesSubmitStartSamples {
public static void scheduledActionsVirtualMachinesSubmitStartMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitStartWithResponse("pxtvvk", new SubmitStartRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
+ .virtualMachinesSubmitStartWithResponse("eastus2", new SubmitStartContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("America/Los_Angeles")
+ .withTimeZone("America/Los_Angeles")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(3)
+ .withRetryWindowInMinutes(30)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesSubmitStart_MinimumSet.
+ * Sample code: ScheduledActions_VirtualMachinesSubmitStart_MaximumSet - generated by [MinimumSet] rule.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesSubmitStartMinimumSet(
+ public static void scheduledActionsVirtualMachinesSubmitStartMaximumSetGeneratedByMinimumSetRule(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesSubmitStartWithResponse("ufrcsuw", new SubmitStartRequest()
- .withSchedule(new Schedule().withDeadLine(OffsetDateTime.parse("2025-04-17T00:23:56.803Z"))
- .withTimeZone("aigbjdnldtzkteqi")
- .withDeadlineType(DeadlineType.UNKNOWN))
+ .virtualMachinesSubmitStartWithResponse("eastus2", new SubmitStartContent()
+ .withSchedule(new Schedule().withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(new ExecutionParameters())
.withResources(new Resources().withIds(Arrays.asList(
- "/subscriptions/YourSubscriptionId/resourceGroups/YourResourceGroupName/providers/Microsoft.Compute/virtualMachines/testResource4")))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"), com.azure.core.util.Context.NONE);
+ "/subscriptions/732116BD-AF31-4E74-9283-B387C44B4A44/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("a1b2c3d4-e5f6-7890-abcd-ef1234567890"), com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/pom.xml b/sdk/computeschedule/azure-resourcemanager-computeschedule/pom.xml
index 1f9d7f9c9f7d..1a9d10f16709 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/pom.xml
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/pom.xml
@@ -3,7 +3,7 @@
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
-
+
4.0.0
com.azure
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for Compute Schedule Management
- This package contains Microsoft Azure SDK for Compute Schedule Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2025-04-15-preview.
+ This package contains Microsoft Azure SDK for Compute Schedule Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2026-04-15-preview.
https://github.com/Azure/azure-sdk-for-java
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/ScheduledActionsClient.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/ScheduledActionsClient.java
index 0ede96423a8c..ae2451032535 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/ScheduledActionsClient.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/ScheduledActionsClient.java
@@ -12,6 +12,7 @@
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.computeschedule.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.CreateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeallocateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeleteResourceOperationResponseInner;
@@ -24,21 +25,22 @@
import com.azure.resourcemanager.computeschedule.fluent.models.ScheduledActionResourceInner;
import com.azure.resourcemanager.computeschedule.fluent.models.StartResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.models.CancelOccurrenceRequest;
-import com.azure.resourcemanager.computeschedule.models.CancelOperationsRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteCreateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteStartRequest;
-import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsRequest;
-import com.azure.resourcemanager.computeschedule.models.GetOperationStatusRequest;
+import com.azure.resourcemanager.computeschedule.models.CancelOperationsContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateFlexContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteStartContent;
+import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsContent;
+import com.azure.resourcemanager.computeschedule.models.GetOperationStatusContent;
import com.azure.resourcemanager.computeschedule.models.ResourceAttachRequest;
import com.azure.resourcemanager.computeschedule.models.ResourceDetachRequest;
import com.azure.resourcemanager.computeschedule.models.ResourcePatchRequest;
import com.azure.resourcemanager.computeschedule.models.ScheduledActionUpdate;
-import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitStartRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitStartContent;
/**
* An instance of this class provides access to all the operations defined in ScheduledActionsClient.
@@ -58,7 +60,7 @@ public interface ScheduledActionsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesSubmitDeallocateWithResponse(
- String locationparameter, SubmitDeallocateRequest requestBody, Context context);
+ String locationparameter, SubmitDeallocateContent requestBody, Context context);
/**
* VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in
@@ -73,7 +75,7 @@ Response virtualMachinesSubmitDealloca
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(String locationparameter,
- SubmitDeallocateRequest requestBody);
+ SubmitDeallocateContent requestBody);
/**
* VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in
@@ -89,7 +91,7 @@ DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesSubmitHibernateWithResponse(
- String locationparameter, SubmitHibernateRequest requestBody, Context context);
+ String locationparameter, SubmitHibernateContent requestBody, Context context);
/**
* VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in
@@ -104,7 +106,7 @@ Response virtualMachinesSubmitHibernate
*/
@ServiceMethod(returns = ReturnType.SINGLE)
HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(String locationparameter,
- SubmitHibernateRequest requestBody);
+ SubmitHibernateContent requestBody);
/**
* VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
@@ -119,7 +121,7 @@ HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(String lo
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesSubmitStartWithResponse(String locationparameter,
- SubmitStartRequest requestBody, Context context);
+ SubmitStartContent requestBody, Context context);
/**
* VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
@@ -133,7 +135,7 @@ Response virtualMachinesSubmitStartWithResp
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StartResourceOperationResponseInner virtualMachinesSubmitStart(String locationparameter,
- SubmitStartRequest requestBody);
+ SubmitStartContent requestBody);
/**
* VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is
@@ -149,7 +151,7 @@ StartResourceOperationResponseInner virtualMachinesSubmitStart(String locationpa
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesExecuteDeallocateWithResponse(
- String locationparameter, ExecuteDeallocateRequest requestBody, Context context);
+ String locationparameter, ExecuteDeallocateContent requestBody, Context context);
/**
* VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is
@@ -164,7 +166,7 @@ Response virtualMachinesExecuteDealloc
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate(String locationparameter,
- ExecuteDeallocateRequest requestBody);
+ ExecuteDeallocateContent requestBody);
/**
* VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is
@@ -180,7 +182,7 @@ DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesExecuteHibernateWithResponse(
- String locationparameter, ExecuteHibernateRequest requestBody, Context context);
+ String locationparameter, ExecuteHibernateContent requestBody, Context context);
/**
* VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is
@@ -195,7 +197,7 @@ Response virtualMachinesExecuteHibernat
*/
@ServiceMethod(returns = ReturnType.SINGLE)
HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(String locationparameter,
- ExecuteHibernateRequest requestBody);
+ ExecuteHibernateContent requestBody);
/**
* VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered
@@ -211,7 +213,7 @@ HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(String l
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesExecuteStartWithResponse(String locationparameter,
- ExecuteStartRequest requestBody, Context context);
+ ExecuteStartContent requestBody, Context context);
/**
* VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered
@@ -226,11 +228,42 @@ Response virtualMachinesExecuteStartWithRes
*/
@ServiceMethod(returns = ReturnType.SINGLE)
StartResourceOperationResponseInner virtualMachinesExecuteStart(String locationparameter,
- ExecuteStartRequest requestBody);
+ ExecuteStartContent requestBody);
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body 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 flex request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response virtualMachinesExecuteCreateFlexWithResponse(
+ String locationparameter, ExecuteCreateFlexContent body, Context context);
+
+ /**
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body 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 flex request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CreateFlexResourceOperationResponseInner virtualMachinesExecuteCreateFlex(String locationparameter,
+ ExecuteCreateFlexContent body);
+
+ /**
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -242,11 +275,11 @@ StartResourceOperationResponseInner virtualMachinesExecuteStart(String locationp
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesExecuteCreateWithResponse(String locationparameter,
- ExecuteCreateRequest requestBody, Context context);
+ ExecuteCreateContent requestBody, Context context);
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -257,11 +290,11 @@ Response virtualMachinesExecuteCreateWithR
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String locationparameter,
- ExecuteCreateRequest requestBody);
+ ExecuteCreateContent requestBody);
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -273,11 +306,11 @@ CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String locatio
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesExecuteDeleteWithResponse(String locationparameter,
- ExecuteDeleteRequest requestBody, Context context);
+ ExecuteDeleteContent requestBody, Context context);
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -288,7 +321,7 @@ Response virtualMachinesExecuteDeleteWithR
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DeleteResourceOperationResponseInner virtualMachinesExecuteDelete(String locationparameter,
- ExecuteDeleteRequest requestBody);
+ ExecuteDeleteContent requestBody);
/**
* VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines.
@@ -303,7 +336,7 @@ DeleteResourceOperationResponseInner virtualMachinesExecuteDelete(String locatio
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesGetOperationStatusWithResponse(String locationparameter,
- GetOperationStatusRequest requestBody, Context context);
+ GetOperationStatusContent requestBody, Context context);
/**
* VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines.
@@ -317,7 +350,7 @@ Response virtualMachinesGetOperationStatusWithR
*/
@ServiceMethod(returns = ReturnType.SINGLE)
GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String locationparameter,
- GetOperationStatusRequest requestBody);
+ GetOperationStatusContent requestBody);
/**
* VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
@@ -332,7 +365,7 @@ GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String locatio
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesCancelOperationsWithResponse(String locationparameter,
- CancelOperationsRequest requestBody, Context context);
+ CancelOperationsContent requestBody, Context context);
/**
* VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
@@ -346,7 +379,7 @@ Response virtualMachinesCancelOperationsWithRespo
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CancelOperationsResponseInner virtualMachinesCancelOperations(String locationparameter,
- CancelOperationsRequest requestBody);
+ CancelOperationsContent requestBody);
/**
* VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered,
@@ -362,7 +395,7 @@ CancelOperationsResponseInner virtualMachinesCancelOperations(String locationpar
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response virtualMachinesGetOperationErrorsWithResponse(String locationparameter,
- GetOperationErrorsRequest requestBody, Context context);
+ GetOperationErrorsContent requestBody, Context context);
/**
* VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered,
@@ -377,7 +410,7 @@ Response virtualMachinesGetOperationErrorsWithR
*/
@ServiceMethod(returns = ReturnType.SINGLE)
GetOperationErrorsResponseInner virtualMachinesGetOperationErrors(String locationparameter,
- GetOperationErrorsRequest requestBody);
+ GetOperationErrorsContent requestBody);
/**
* Get a ScheduledAction.
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/models/CreateFlexResourceOperationResponseInner.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/models/CreateFlexResourceOperationResponseInner.java
new file mode 100644
index 000000000000..82db97de60e0
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/fluent/models/CreateFlexResourceOperationResponseInner.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.computeschedule.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.computeschedule.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a create flex request.
+ */
+@Immutable
+public final class CreateFlexResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the create flex request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the create flex request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the create flex request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of CreateFlexResourceOperationResponseInner class.
+ */
+ private CreateFlexResourceOperationResponseInner() {
+ }
+
+ /**
+ * 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 flex request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the create flex request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the create flex 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 CreateFlexResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CreateFlexResourceOperationResponseInner 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 CreateFlexResourceOperationResponseInner.
+ */
+ public static CreateFlexResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CreateFlexResourceOperationResponseInner deserializedCreateFlexResourceOperationResponseInner
+ = new CreateFlexResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedCreateFlexResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCreateFlexResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCreateFlexResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedCreateFlexResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCreateFlexResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ComputeScheduleMgmtClientImpl.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ComputeScheduleMgmtClientImpl.java
index ab94a835313d..c07b52aab249 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ComputeScheduleMgmtClientImpl.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ComputeScheduleMgmtClientImpl.java
@@ -217,7 +217,7 @@ public OccurrenceExtensionsClient getOccurrenceExtensions() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
- this.apiVersion = "2025-04-15-preview";
+ this.apiVersion = "2026-04-15-preview";
this.operations = new OperationsClientImpl(this);
this.scheduledActions = new ScheduledActionsClientImpl(this);
this.scheduledActionExtensions = new ScheduledActionExtensionsClientImpl(this);
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/CreateFlexResourceOperationResponseImpl.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/CreateFlexResourceOperationResponseImpl.java
new file mode 100644
index 000000000000..25802b6047be
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/CreateFlexResourceOperationResponseImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.implementation;
+
+import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
+import com.azure.resourcemanager.computeschedule.models.CreateFlexResourceOperationResponse;
+import com.azure.resourcemanager.computeschedule.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class CreateFlexResourceOperationResponseImpl implements CreateFlexResourceOperationResponse {
+ private CreateFlexResourceOperationResponseInner innerObject;
+
+ private final com.azure.resourcemanager.computeschedule.ComputeScheduleManager serviceManager;
+
+ CreateFlexResourceOperationResponseImpl(CreateFlexResourceOperationResponseInner innerObject,
+ com.azure.resourcemanager.computeschedule.ComputeScheduleManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CreateFlexResourceOperationResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsClientImpl.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsClientImpl.java
index 1f0a60a73914..a955731ec9e3 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsClientImpl.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsClientImpl.java
@@ -36,6 +36,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.computeschedule.fluent.ScheduledActionsClient;
import com.azure.resourcemanager.computeschedule.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.CreateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeallocateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeleteResourceOperationResponseInner;
@@ -50,21 +51,22 @@
import com.azure.resourcemanager.computeschedule.implementation.models.ResourceListResponse;
import com.azure.resourcemanager.computeschedule.implementation.models.ScheduledActionListResult;
import com.azure.resourcemanager.computeschedule.models.CancelOccurrenceRequest;
-import com.azure.resourcemanager.computeschedule.models.CancelOperationsRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteCreateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteStartRequest;
-import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsRequest;
-import com.azure.resourcemanager.computeschedule.models.GetOperationStatusRequest;
+import com.azure.resourcemanager.computeschedule.models.CancelOperationsContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateFlexContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteStartContent;
+import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsContent;
+import com.azure.resourcemanager.computeschedule.models.GetOperationStatusContent;
import com.azure.resourcemanager.computeschedule.models.ResourceAttachRequest;
import com.azure.resourcemanager.computeschedule.models.ResourceDetachRequest;
import com.azure.resourcemanager.computeschedule.models.ResourcePatchRequest;
import com.azure.resourcemanager.computeschedule.models.ScheduledActionUpdate;
-import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitStartRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitStartContent;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -108,7 +110,7 @@ Mono> virtualMachinesSubmitDe
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitDeallocateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitDeallocateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate")
@@ -118,7 +120,7 @@ Response virtualMachinesSubmitDealloca
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitDeallocateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitDeallocateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate")
@@ -128,7 +130,7 @@ Mono> virtualMachinesSubmitHib
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitHibernateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitHibernateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate")
@@ -138,7 +140,7 @@ Response virtualMachinesSubmitHibernate
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitHibernateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitHibernateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart")
@@ -148,7 +150,7 @@ Mono> virtualMachinesSubmitStart(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitStartRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitStartContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart")
@@ -158,7 +160,7 @@ Response virtualMachinesSubmitStartSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitStartRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") SubmitStartContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate")
@@ -168,7 +170,7 @@ Mono> virtualMachinesExecuteD
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeallocateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeallocateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate")
@@ -178,7 +180,7 @@ Response virtualMachinesExecuteDealloc
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeallocateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeallocateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate")
@@ -188,7 +190,7 @@ Mono> virtualMachinesExecuteHi
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteHibernateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteHibernateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate")
@@ -198,7 +200,7 @@ Response virtualMachinesExecuteHibernat
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteHibernateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteHibernateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart")
@@ -208,7 +210,7 @@ Mono> virtualMachinesExecuteStart(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteStartRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteStartContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart")
@@ -218,7 +220,27 @@ Response virtualMachinesExecuteStartSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteStartRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteStartContent requestBody,
+ Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreateFlex")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteCreateFlex(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateFlexContent body,
+ Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreateFlex")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteCreateFlexSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateFlexContent body,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreate")
@@ -228,7 +250,7 @@ Mono> virtualMachinesExecuteCreat
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreate")
@@ -238,7 +260,7 @@ Response virtualMachinesExecuteCreateSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteCreateContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDelete")
@@ -248,7 +270,7 @@ Mono> virtualMachinesExecuteDelet
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeleteRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeleteContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDelete")
@@ -258,7 +280,7 @@ Response virtualMachinesExecuteDeleteSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeleteRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") ExecuteDeleteContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus")
@@ -268,7 +290,7 @@ Mono> virtualMachinesGetOperationStatu
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationStatusRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationStatusContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus")
@@ -278,7 +300,7 @@ Response virtualMachinesGetOperationStatusSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationStatusRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationStatusContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations")
@@ -288,7 +310,7 @@ Mono> virtualMachinesCancelOperations(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") CancelOperationsRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") CancelOperationsContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations")
@@ -298,7 +320,7 @@ Response virtualMachinesCancelOperationsSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") CancelOperationsRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") CancelOperationsContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors")
@@ -308,7 +330,7 @@ Mono> virtualMachinesGetOperationError
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationErrorsRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationErrorsContent requestBody,
Context context);
@Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors")
@@ -318,7 +340,7 @@ Response virtualMachinesGetOperationErrorsSync(
@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
@PathParam("subscriptionId") String subscriptionId,
@PathParam("locationparameter") String locationparameter, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationErrorsRequest requestBody,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") GetOperationErrorsContent requestBody,
Context context);
@Headers({ "Content-Type: application/json" })
@@ -660,7 +682,7 @@ Response listResourcesNextSync(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesSubmitDeallocateWithResponseAsync(
- String locationparameter, SubmitDeallocateRequest requestBody) {
+ String locationparameter, SubmitDeallocateContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -683,7 +705,7 @@ private Mono> virtualMachines
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono
- virtualMachinesSubmitDeallocateAsync(String locationparameter, SubmitDeallocateRequest requestBody) {
+ virtualMachinesSubmitDeallocateAsync(String locationparameter, SubmitDeallocateContent requestBody) {
return virtualMachinesSubmitDeallocateWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -702,7 +724,7 @@ private Mono> virtualMachines
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesSubmitDeallocateWithResponse(
- String locationparameter, SubmitDeallocateRequest requestBody, Context context) {
+ String locationparameter, SubmitDeallocateContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesSubmitDeallocateSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -722,7 +744,7 @@ public Response virtualMachinesSubmitD
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(String locationparameter,
- SubmitDeallocateRequest requestBody) {
+ SubmitDeallocateContent requestBody) {
return virtualMachinesSubmitDeallocateWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -740,7 +762,7 @@ public DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- virtualMachinesSubmitHibernateWithResponseAsync(String locationparameter, SubmitHibernateRequest requestBody) {
+ virtualMachinesSubmitHibernateWithResponseAsync(String locationparameter, SubmitHibernateContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -763,7 +785,7 @@ public DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesSubmitHibernateAsync(String locationparameter,
- SubmitHibernateRequest requestBody) {
+ SubmitHibernateContent requestBody) {
return virtualMachinesSubmitHibernateWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -782,7 +804,7 @@ private Mono virtualMachinesSubmitHiber
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesSubmitHibernateWithResponse(
- String locationparameter, SubmitHibernateRequest requestBody, Context context) {
+ String locationparameter, SubmitHibernateContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesSubmitHibernateSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -802,7 +824,7 @@ public Response virtualMachinesSubmitHi
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(String locationparameter,
- SubmitHibernateRequest requestBody) {
+ SubmitHibernateContent requestBody) {
return virtualMachinesSubmitHibernateWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -818,7 +840,7 @@ public HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- virtualMachinesSubmitStartWithResponseAsync(String locationparameter, SubmitStartRequest requestBody) {
+ virtualMachinesSubmitStartWithResponseAsync(String locationparameter, SubmitStartContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -840,7 +862,7 @@ public HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesSubmitStartAsync(String locationparameter,
- SubmitStartRequest requestBody) {
+ SubmitStartContent requestBody) {
return virtualMachinesSubmitStartWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -858,7 +880,7 @@ private Mono virtualMachinesSubmitStartAsyn
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesSubmitStartWithResponse(
- String locationparameter, SubmitStartRequest requestBody, Context context) {
+ String locationparameter, SubmitStartContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesSubmitStartSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -877,7 +899,7 @@ public Response virtualMachinesSubmitStartW
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public StartResourceOperationResponseInner virtualMachinesSubmitStart(String locationparameter,
- SubmitStartRequest requestBody) {
+ SubmitStartContent requestBody) {
return virtualMachinesSubmitStartWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -895,7 +917,7 @@ public StartResourceOperationResponseInner virtualMachinesSubmitStart(String loc
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesExecuteDeallocateWithResponseAsync(
- String locationparameter, ExecuteDeallocateRequest requestBody) {
+ String locationparameter, ExecuteDeallocateContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -918,7 +940,7 @@ private Mono> virtualMachines
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono
- virtualMachinesExecuteDeallocateAsync(String locationparameter, ExecuteDeallocateRequest requestBody) {
+ virtualMachinesExecuteDeallocateAsync(String locationparameter, ExecuteDeallocateContent requestBody) {
return virtualMachinesExecuteDeallocateWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -937,7 +959,7 @@ private Mono> virtualMachines
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesExecuteDeallocateWithResponse(
- String locationparameter, ExecuteDeallocateRequest requestBody, Context context) {
+ String locationparameter, ExecuteDeallocateContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesExecuteDeallocateSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -957,7 +979,7 @@ public Response virtualMachinesExecute
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate(String locationparameter,
- ExecuteDeallocateRequest requestBody) {
+ ExecuteDeallocateContent requestBody) {
return virtualMachinesExecuteDeallocateWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -975,7 +997,7 @@ public DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesExecuteHibernateWithResponseAsync(
- String locationparameter, ExecuteHibernateRequest requestBody) {
+ String locationparameter, ExecuteHibernateContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -998,7 +1020,7 @@ private Mono> virtualMachinesE
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesExecuteHibernateAsync(String locationparameter,
- ExecuteHibernateRequest requestBody) {
+ ExecuteHibernateContent requestBody) {
return virtualMachinesExecuteHibernateWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -1017,7 +1039,7 @@ private Mono virtualMachinesExecuteHibe
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesExecuteHibernateWithResponse(
- String locationparameter, ExecuteHibernateRequest requestBody, Context context) {
+ String locationparameter, ExecuteHibernateContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesExecuteHibernateSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1037,7 +1059,7 @@ public Response virtualMachinesExecuteH
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(String locationparameter,
- ExecuteHibernateRequest requestBody) {
+ ExecuteHibernateContent requestBody) {
return virtualMachinesExecuteHibernateWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -1054,7 +1076,7 @@ public HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(S
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- virtualMachinesExecuteStartWithResponseAsync(String locationparameter, ExecuteStartRequest requestBody) {
+ virtualMachinesExecuteStartWithResponseAsync(String locationparameter, ExecuteStartContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1077,7 +1099,7 @@ public HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(S
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesExecuteStartAsync(String locationparameter,
- ExecuteStartRequest requestBody) {
+ ExecuteStartContent requestBody) {
return virtualMachinesExecuteStartWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -1096,7 +1118,7 @@ private Mono virtualMachinesExecuteStartAsy
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesExecuteStartWithResponse(
- String locationparameter, ExecuteStartRequest requestBody, Context context) {
+ String locationparameter, ExecuteStartContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesExecuteStartSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1116,13 +1138,93 @@ public Response virtualMachinesExecuteStart
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public StartResourceOperationResponseInner virtualMachinesExecuteStart(String locationparameter,
- ExecuteStartRequest requestBody) {
+ ExecuteStartContent requestBody) {
return virtualMachinesExecuteStartWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body The request body.
+ * @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 from a create flex request along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteCreateFlexWithResponseAsync(String locationparameter, ExecuteCreateFlexContent body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.virtualMachinesExecuteCreateFlex(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), locationparameter, contentType, accept,
+ body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body The request body.
+ * @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 from a create flex request on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono
+ virtualMachinesExecuteCreateFlexAsync(String locationparameter, ExecuteCreateFlexContent body) {
+ return virtualMachinesExecuteCreateFlexWithResponseAsync(locationparameter, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body The request body.
+ * @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 from a create flex request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response virtualMachinesExecuteCreateFlexWithResponse(
+ String locationparameter, ExecuteCreateFlexContent body, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteCreateFlexSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), locationparameter, contentType, accept, body, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteCreateFlex: Execute create operation for a batch of virtual machines with flex properties,
+ * this operation is triggered as soon as Computeschedule receives it.
+ *
+ * @param locationparameter The location name.
+ * @param body The request body.
+ * @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 from a create flex request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public CreateFlexResourceOperationResponseInner virtualMachinesExecuteCreateFlex(String locationparameter,
+ ExecuteCreateFlexContent body) {
+ return virtualMachinesExecuteCreateFlexWithResponse(locationparameter, body, Context.NONE).getValue();
+ }
+
+ /**
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1133,7 +1235,7 @@ public StartResourceOperationResponseInner virtualMachinesExecuteStart(String lo
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- virtualMachinesExecuteCreateWithResponseAsync(String locationparameter, ExecuteCreateRequest requestBody) {
+ virtualMachinesExecuteCreateWithResponseAsync(String locationparameter, ExecuteCreateContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1144,8 +1246,8 @@ public StartResourceOperationResponseInner virtualMachinesExecuteStart(String lo
}
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1156,14 +1258,14 @@ public StartResourceOperationResponseInner virtualMachinesExecuteStart(String lo
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesExecuteCreateAsync(String locationparameter,
- ExecuteCreateRequest requestBody) {
+ ExecuteCreateContent requestBody) {
return virtualMachinesExecuteCreateWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1175,7 +1277,7 @@ private Mono virtualMachinesExecuteCreateA
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesExecuteCreateWithResponse(
- String locationparameter, ExecuteCreateRequest requestBody, Context context) {
+ String locationparameter, ExecuteCreateContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesExecuteCreateSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1183,8 +1285,8 @@ public Response virtualMachinesExecuteCrea
}
/**
- * VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1195,13 +1297,13 @@ public Response virtualMachinesExecuteCrea
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String locationparameter,
- ExecuteCreateRequest requestBody) {
+ ExecuteCreateContent requestBody) {
return virtualMachinesExecuteCreateWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1212,7 +1314,7 @@ public CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>
- virtualMachinesExecuteDeleteWithResponseAsync(String locationparameter, ExecuteDeleteRequest requestBody) {
+ virtualMachinesExecuteDeleteWithResponseAsync(String locationparameter, ExecuteDeleteContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1223,8 +1325,8 @@ public CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String
}
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1235,14 +1337,14 @@ public CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesExecuteDeleteAsync(String locationparameter,
- ExecuteDeleteRequest requestBody) {
+ ExecuteDeleteContent requestBody) {
return virtualMachinesExecuteDeleteWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1254,7 +1356,7 @@ private Mono virtualMachinesExecuteDeleteA
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesExecuteDeleteWithResponse(
- String locationparameter, ExecuteDeleteRequest requestBody, Context context) {
+ String locationparameter, ExecuteDeleteContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesExecuteDeleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1262,8 +1364,8 @@ public Response virtualMachinesExecuteDele
}
/**
- * VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is
- * triggered as soon as Computeschedule receives it.
+ * [PRIVATE PREVIEW]: VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this
+ * operation is triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
@@ -1274,7 +1376,7 @@ public Response virtualMachinesExecuteDele
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public DeleteResourceOperationResponseInner virtualMachinesExecuteDelete(String locationparameter,
- ExecuteDeleteRequest requestBody) {
+ ExecuteDeleteContent requestBody) {
return virtualMachinesExecuteDeleteWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -1291,7 +1393,7 @@ public DeleteResourceOperationResponseInner virtualMachinesExecuteDelete(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesGetOperationStatusWithResponseAsync(
- String locationparameter, GetOperationStatusRequest requestBody) {
+ String locationparameter, GetOperationStatusContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1313,7 +1415,7 @@ private Mono> virtualMachinesGetOperat
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesGetOperationStatusAsync(String locationparameter,
- GetOperationStatusRequest requestBody) {
+ GetOperationStatusContent requestBody) {
return virtualMachinesGetOperationStatusWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -1331,7 +1433,7 @@ private Mono virtualMachinesGetOperationStatusA
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesGetOperationStatusWithResponse(
- String locationparameter, GetOperationStatusRequest requestBody, Context context) {
+ String locationparameter, GetOperationStatusContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesGetOperationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1350,7 +1452,7 @@ public Response virtualMachinesGetOperationStat
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String locationparameter,
- GetOperationStatusRequest requestBody) {
+ GetOperationStatusContent requestBody) {
return virtualMachinesGetOperationStatusWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -1367,7 +1469,7 @@ public GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesCancelOperationsWithResponseAsync(
- String locationparameter, CancelOperationsRequest requestBody) {
+ String locationparameter, CancelOperationsContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1389,7 +1491,7 @@ private Mono> virtualMachinesCancelOpera
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesCancelOperationsAsync(String locationparameter,
- CancelOperationsRequest requestBody) {
+ CancelOperationsContent requestBody) {
return virtualMachinesCancelOperationsWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -1407,7 +1509,7 @@ private Mono virtualMachinesCancelOperationsAsync
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesCancelOperationsWithResponse(String locationparameter,
- CancelOperationsRequest requestBody, Context context) {
+ CancelOperationsContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesCancelOperationsSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1426,7 +1528,7 @@ public Response virtualMachinesCancelOperationsWi
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public CancelOperationsResponseInner virtualMachinesCancelOperations(String locationparameter,
- CancelOperationsRequest requestBody) {
+ CancelOperationsContent requestBody) {
return virtualMachinesCancelOperationsWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
@@ -1444,7 +1546,7 @@ public CancelOperationsResponseInner virtualMachinesCancelOperations(String loca
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> virtualMachinesGetOperationErrorsWithResponseAsync(
- String locationparameter, GetOperationErrorsRequest requestBody) {
+ String locationparameter, GetOperationErrorsContent requestBody) {
final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
@@ -1467,7 +1569,7 @@ private Mono> virtualMachinesGetOperat
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono virtualMachinesGetOperationErrorsAsync(String locationparameter,
- GetOperationErrorsRequest requestBody) {
+ GetOperationErrorsContent requestBody) {
return virtualMachinesGetOperationErrorsWithResponseAsync(locationparameter, requestBody)
.flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
@@ -1486,7 +1588,7 @@ private Mono virtualMachinesGetOperationErrorsA
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public Response virtualMachinesGetOperationErrorsWithResponse(
- String locationparameter, GetOperationErrorsRequest requestBody, Context context) {
+ String locationparameter, GetOperationErrorsContent requestBody, Context context) {
final String contentType = "application/json";
final String accept = "application/json";
return service.virtualMachinesGetOperationErrorsSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1506,7 +1608,7 @@ public Response virtualMachinesGetOperationErro
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public GetOperationErrorsResponseInner virtualMachinesGetOperationErrors(String locationparameter,
- GetOperationErrorsRequest requestBody) {
+ GetOperationErrorsContent requestBody) {
return virtualMachinesGetOperationErrorsWithResponse(locationparameter, requestBody, Context.NONE).getValue();
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsImpl.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsImpl.java
index 64c4a1121324..fa89195e70f3 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsImpl.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/implementation/ScheduledActionsImpl.java
@@ -11,6 +11,7 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.computeschedule.fluent.ScheduledActionsClient;
import com.azure.resourcemanager.computeschedule.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.CreateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeallocateResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.fluent.models.DeleteResourceOperationResponseInner;
@@ -23,19 +24,21 @@
import com.azure.resourcemanager.computeschedule.fluent.models.ScheduledActionResourceInner;
import com.azure.resourcemanager.computeschedule.fluent.models.StartResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.models.CancelOccurrenceRequest;
-import com.azure.resourcemanager.computeschedule.models.CancelOperationsRequest;
+import com.azure.resourcemanager.computeschedule.models.CancelOperationsContent;
import com.azure.resourcemanager.computeschedule.models.CancelOperationsResponse;
+import com.azure.resourcemanager.computeschedule.models.CreateFlexResourceOperationResponse;
import com.azure.resourcemanager.computeschedule.models.CreateResourceOperationResponse;
import com.azure.resourcemanager.computeschedule.models.DeallocateResourceOperationResponse;
import com.azure.resourcemanager.computeschedule.models.DeleteResourceOperationResponse;
-import com.azure.resourcemanager.computeschedule.models.ExecuteCreateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.ExecuteStartRequest;
-import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateFlexContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteDeleteContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.ExecuteStartContent;
+import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsContent;
import com.azure.resourcemanager.computeschedule.models.GetOperationErrorsResponse;
-import com.azure.resourcemanager.computeschedule.models.GetOperationStatusRequest;
+import com.azure.resourcemanager.computeschedule.models.GetOperationStatusContent;
import com.azure.resourcemanager.computeschedule.models.GetOperationStatusResponse;
import com.azure.resourcemanager.computeschedule.models.HibernateResourceOperationResponse;
import com.azure.resourcemanager.computeschedule.models.Occurrence;
@@ -47,9 +50,9 @@
import com.azure.resourcemanager.computeschedule.models.ScheduledActionResource;
import com.azure.resourcemanager.computeschedule.models.ScheduledActions;
import com.azure.resourcemanager.computeschedule.models.StartResourceOperationResponse;
-import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitHibernateRequest;
-import com.azure.resourcemanager.computeschedule.models.SubmitStartRequest;
+import com.azure.resourcemanager.computeschedule.models.SubmitDeallocateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitHibernateContent;
+import com.azure.resourcemanager.computeschedule.models.SubmitStartContent;
public final class ScheduledActionsImpl implements ScheduledActions {
private static final ClientLogger LOGGER = new ClientLogger(ScheduledActionsImpl.class);
@@ -65,7 +68,7 @@ public ScheduledActionsImpl(ScheduledActionsClient innerClient,
}
public Response virtualMachinesSubmitDeallocateWithResponse(
- String locationparameter, SubmitDeallocateRequest requestBody, Context context) {
+ String locationparameter, SubmitDeallocateContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesSubmitDeallocateWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -73,7 +76,7 @@ public Response virtualMachinesSubmitDeallo
}
public DeallocateResourceOperationResponse virtualMachinesSubmitDeallocate(String locationparameter,
- SubmitDeallocateRequest requestBody) {
+ SubmitDeallocateContent requestBody) {
DeallocateResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesSubmitDeallocate(locationparameter, requestBody);
if (inner != null) {
@@ -84,7 +87,7 @@ public DeallocateResourceOperationResponse virtualMachinesSubmitDeallocate(Strin
}
public Response virtualMachinesSubmitHibernateWithResponse(
- String locationparameter, SubmitHibernateRequest requestBody, Context context) {
+ String locationparameter, SubmitHibernateContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesSubmitHibernateWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -92,7 +95,7 @@ public Response virtualMachinesSubmitHiberna
}
public HibernateResourceOperationResponse virtualMachinesSubmitHibernate(String locationparameter,
- SubmitHibernateRequest requestBody) {
+ SubmitHibernateContent requestBody) {
HibernateResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesSubmitHibernate(locationparameter, requestBody);
if (inner != null) {
@@ -103,7 +106,7 @@ public HibernateResourceOperationResponse virtualMachinesSubmitHibernate(String
}
public Response virtualMachinesSubmitStartWithResponse(String locationparameter,
- SubmitStartRequest requestBody, Context context) {
+ SubmitStartContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesSubmitStartWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -111,7 +114,7 @@ public Response virtualMachinesSubmitStartWithRe
}
public StartResourceOperationResponse virtualMachinesSubmitStart(String locationparameter,
- SubmitStartRequest requestBody) {
+ SubmitStartContent requestBody) {
StartResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesSubmitStart(locationparameter, requestBody);
if (inner != null) {
@@ -122,7 +125,7 @@ public StartResourceOperationResponse virtualMachinesSubmitStart(String location
}
public Response virtualMachinesExecuteDeallocateWithResponse(
- String locationparameter, ExecuteDeallocateRequest requestBody, Context context) {
+ String locationparameter, ExecuteDeallocateContent requestBody, Context context) {
Response inner = this.serviceClient()
.virtualMachinesExecuteDeallocateWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -130,7 +133,7 @@ public Response virtualMachinesExecuteDeall
}
public DeallocateResourceOperationResponse virtualMachinesExecuteDeallocate(String locationparameter,
- ExecuteDeallocateRequest requestBody) {
+ ExecuteDeallocateContent requestBody) {
DeallocateResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesExecuteDeallocate(locationparameter, requestBody);
if (inner != null) {
@@ -141,7 +144,7 @@ public DeallocateResourceOperationResponse virtualMachinesExecuteDeallocate(Stri
}
public Response virtualMachinesExecuteHibernateWithResponse(
- String locationparameter, ExecuteHibernateRequest requestBody, Context context) {
+ String locationparameter, ExecuteHibernateContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesExecuteHibernateWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -149,7 +152,7 @@ public Response virtualMachinesExecuteHibern
}
public HibernateResourceOperationResponse virtualMachinesExecuteHibernate(String locationparameter,
- ExecuteHibernateRequest requestBody) {
+ ExecuteHibernateContent requestBody) {
HibernateResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesExecuteHibernate(locationparameter, requestBody);
if (inner != null) {
@@ -160,7 +163,7 @@ public HibernateResourceOperationResponse virtualMachinesExecuteHibernate(String
}
public Response virtualMachinesExecuteStartWithResponse(String locationparameter,
- ExecuteStartRequest requestBody, Context context) {
+ ExecuteStartContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesExecuteStartWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -168,7 +171,7 @@ public Response virtualMachinesExecuteStartWithR
}
public StartResourceOperationResponse virtualMachinesExecuteStart(String locationparameter,
- ExecuteStartRequest requestBody) {
+ ExecuteStartContent requestBody) {
StartResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesExecuteStart(locationparameter, requestBody);
if (inner != null) {
@@ -178,8 +181,27 @@ public StartResourceOperationResponse virtualMachinesExecuteStart(String locatio
}
}
+ public Response virtualMachinesExecuteCreateFlexWithResponse(
+ String locationparameter, ExecuteCreateFlexContent body, Context context) {
+ Response inner
+ = this.serviceClient().virtualMachinesExecuteCreateFlexWithResponse(locationparameter, body, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CreateFlexResourceOperationResponseImpl(inner.getValue(), this.manager()));
+ }
+
+ public CreateFlexResourceOperationResponse virtualMachinesExecuteCreateFlex(String locationparameter,
+ ExecuteCreateFlexContent body) {
+ CreateFlexResourceOperationResponseInner inner
+ = this.serviceClient().virtualMachinesExecuteCreateFlex(locationparameter, body);
+ if (inner != null) {
+ return new CreateFlexResourceOperationResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Response virtualMachinesExecuteCreateWithResponse(String locationparameter,
- ExecuteCreateRequest requestBody, Context context) {
+ ExecuteCreateContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesExecuteCreateWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -187,7 +209,7 @@ public Response virtualMachinesExecuteCreateWit
}
public CreateResourceOperationResponse virtualMachinesExecuteCreate(String locationparameter,
- ExecuteCreateRequest requestBody) {
+ ExecuteCreateContent requestBody) {
CreateResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesExecuteCreate(locationparameter, requestBody);
if (inner != null) {
@@ -198,7 +220,7 @@ public CreateResourceOperationResponse virtualMachinesExecuteCreate(String locat
}
public Response virtualMachinesExecuteDeleteWithResponse(String locationparameter,
- ExecuteDeleteRequest requestBody, Context context) {
+ ExecuteDeleteContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesExecuteDeleteWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -206,7 +228,7 @@ public Response virtualMachinesExecuteDeleteWit
}
public DeleteResourceOperationResponse virtualMachinesExecuteDelete(String locationparameter,
- ExecuteDeleteRequest requestBody) {
+ ExecuteDeleteContent requestBody) {
DeleteResourceOperationResponseInner inner
= this.serviceClient().virtualMachinesExecuteDelete(locationparameter, requestBody);
if (inner != null) {
@@ -217,7 +239,7 @@ public DeleteResourceOperationResponse virtualMachinesExecuteDelete(String locat
}
public Response virtualMachinesGetOperationStatusWithResponse(String locationparameter,
- GetOperationStatusRequest requestBody, Context context) {
+ GetOperationStatusContent requestBody, Context context) {
Response inner = this.serviceClient()
.virtualMachinesGetOperationStatusWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -225,7 +247,7 @@ public Response virtualMachinesGetOperationStatusWit
}
public GetOperationStatusResponse virtualMachinesGetOperationStatus(String locationparameter,
- GetOperationStatusRequest requestBody) {
+ GetOperationStatusContent requestBody) {
GetOperationStatusResponseInner inner
= this.serviceClient().virtualMachinesGetOperationStatus(locationparameter, requestBody);
if (inner != null) {
@@ -236,7 +258,7 @@ public GetOperationStatusResponse virtualMachinesGetOperationStatus(String locat
}
public Response virtualMachinesCancelOperationsWithResponse(String locationparameter,
- CancelOperationsRequest requestBody, Context context) {
+ CancelOperationsContent requestBody, Context context) {
Response inner
= this.serviceClient().virtualMachinesCancelOperationsWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -244,7 +266,7 @@ public Response virtualMachinesCancelOperationsWithRes
}
public CancelOperationsResponse virtualMachinesCancelOperations(String locationparameter,
- CancelOperationsRequest requestBody) {
+ CancelOperationsContent requestBody) {
CancelOperationsResponseInner inner
= this.serviceClient().virtualMachinesCancelOperations(locationparameter, requestBody);
if (inner != null) {
@@ -255,7 +277,7 @@ public CancelOperationsResponse virtualMachinesCancelOperations(String locationp
}
public Response virtualMachinesGetOperationErrorsWithResponse(String locationparameter,
- GetOperationErrorsRequest requestBody, Context context) {
+ GetOperationErrorsContent requestBody, Context context) {
Response inner = this.serviceClient()
.virtualMachinesGetOperationErrorsWithResponse(locationparameter, requestBody, context);
return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
@@ -263,7 +285,7 @@ public Response virtualMachinesGetOperationErrorsWit
}
public GetOperationErrorsResponse virtualMachinesGetOperationErrors(String locationparameter,
- GetOperationErrorsRequest requestBody) {
+ GetOperationErrorsContent requestBody) {
GetOperationErrorsResponseInner inner
= this.serviceClient().virtualMachinesGetOperationErrors(locationparameter, requestBody);
if (inner != null) {
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalCapabilities.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalCapabilities.java
new file mode 100644
index 000000000000..d08e9fb8725b
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalCapabilities.java
@@ -0,0 +1,119 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Enables or disables a capability on the virtual machine or virtual machine scale set.
+ */
+@Fluent
+public final class AdditionalCapabilities implements JsonSerializable {
+ /*
+ * The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage
+ * account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual
+ * machine or virtual machine scale set only if this property is enabled.
+ */
+ private Boolean ultraSSDEnabled;
+
+ /*
+ * The flag that enables or disables hibernation capability on the VM.
+ */
+ private Boolean hibernationEnabled;
+
+ /**
+ * Creates an instance of AdditionalCapabilities class.
+ */
+ public AdditionalCapabilities() {
+ }
+
+ /**
+ * Get the ultraSSDEnabled property: The flag that enables or disables a capability to have one or more managed data
+ * disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type
+ * UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled.
+ *
+ * @return the ultraSSDEnabled value.
+ */
+ public Boolean ultraSSDEnabled() {
+ return this.ultraSSDEnabled;
+ }
+
+ /**
+ * Set the ultraSSDEnabled property: The flag that enables or disables a capability to have one or more managed data
+ * disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type
+ * UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled.
+ *
+ * @param ultraSSDEnabled the ultraSSDEnabled value to set.
+ * @return the AdditionalCapabilities object itself.
+ */
+ public AdditionalCapabilities withUltraSSDEnabled(Boolean ultraSSDEnabled) {
+ this.ultraSSDEnabled = ultraSSDEnabled;
+ return this;
+ }
+
+ /**
+ * Get the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.
+ *
+ * @return the hibernationEnabled value.
+ */
+ public Boolean hibernationEnabled() {
+ return this.hibernationEnabled;
+ }
+
+ /**
+ * Set the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.
+ *
+ * @param hibernationEnabled the hibernationEnabled value to set.
+ * @return the AdditionalCapabilities object itself.
+ */
+ public AdditionalCapabilities withHibernationEnabled(Boolean hibernationEnabled) {
+ this.hibernationEnabled = hibernationEnabled;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("ultraSSDEnabled", this.ultraSSDEnabled);
+ jsonWriter.writeBooleanField("hibernationEnabled", this.hibernationEnabled);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AdditionalCapabilities from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AdditionalCapabilities 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 AdditionalCapabilities.
+ */
+ public static AdditionalCapabilities fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AdditionalCapabilities deserializedAdditionalCapabilities = new AdditionalCapabilities();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("ultraSSDEnabled".equals(fieldName)) {
+ deserializedAdditionalCapabilities.ultraSSDEnabled = reader.getNullable(JsonReader::getBoolean);
+ } else if ("hibernationEnabled".equals(fieldName)) {
+ deserializedAdditionalCapabilities.hibernationEnabled = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAdditionalCapabilities;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContent.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContent.java
new file mode 100644
index 000000000000..48bcca829ee8
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContent.java
@@ -0,0 +1,183 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Specifies additional XML formatted information that can be included in the Unattend.xml file, which is used by
+ * Windows Setup. Contents are defined by setting name, component name, and the pass in which the content is applied.
+ */
+@Fluent
+public final class AdditionalUnattendContent implements JsonSerializable {
+ /*
+ * The pass name. Currently, the only allowable value is OobeSystem.
+ */
+ private AdditionalUnattendContentPassName passName;
+
+ /*
+ * The component name. Currently, the only allowable value is Microsoft-Windows-Shell-Setup.
+ */
+ private AdditionalUnattendContentComponentName componentName;
+
+ /*
+ * Specifies the name of the setting to which the content applies. Possible values are: FirstLogonCommands and
+ * AutoLogon.
+ */
+ private SettingNames settingName;
+
+ /*
+ * Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component.
+ * The XML must be less than 4KB and must include the root element for the setting or feature that is being
+ * inserted.
+ */
+ private String content;
+
+ /**
+ * Creates an instance of AdditionalUnattendContent class.
+ */
+ public AdditionalUnattendContent() {
+ }
+
+ /**
+ * Get the passName property: The pass name. Currently, the only allowable value is OobeSystem.
+ *
+ * @return the passName value.
+ */
+ public AdditionalUnattendContentPassName passName() {
+ return this.passName;
+ }
+
+ /**
+ * Set the passName property: The pass name. Currently, the only allowable value is OobeSystem.
+ *
+ * @param passName the passName value to set.
+ * @return the AdditionalUnattendContent object itself.
+ */
+ public AdditionalUnattendContent withPassName(AdditionalUnattendContentPassName passName) {
+ this.passName = passName;
+ return this;
+ }
+
+ /**
+ * Get the componentName property: The component name. Currently, the only allowable value is
+ * Microsoft-Windows-Shell-Setup.
+ *
+ * @return the componentName value.
+ */
+ public AdditionalUnattendContentComponentName componentName() {
+ return this.componentName;
+ }
+
+ /**
+ * Set the componentName property: The component name. Currently, the only allowable value is
+ * Microsoft-Windows-Shell-Setup.
+ *
+ * @param componentName the componentName value to set.
+ * @return the AdditionalUnattendContent object itself.
+ */
+ public AdditionalUnattendContent withComponentName(AdditionalUnattendContentComponentName componentName) {
+ this.componentName = componentName;
+ return this;
+ }
+
+ /**
+ * Get the settingName property: Specifies the name of the setting to which the content applies. Possible values
+ * are: FirstLogonCommands and AutoLogon.
+ *
+ * @return the settingName value.
+ */
+ public SettingNames settingName() {
+ return this.settingName;
+ }
+
+ /**
+ * Set the settingName property: Specifies the name of the setting to which the content applies. Possible values
+ * are: FirstLogonCommands and AutoLogon.
+ *
+ * @param settingName the settingName value to set.
+ * @return the AdditionalUnattendContent object itself.
+ */
+ public AdditionalUnattendContent withSettingName(SettingNames settingName) {
+ this.settingName = settingName;
+ return this;
+ }
+
+ /**
+ * Get the content property: Specifies the XML formatted content that is added to the unattend.xml file for the
+ * specified path and component. The XML must be less than 4KB and must include the root element for the setting or
+ * feature that is being inserted.
+ *
+ * @return the content value.
+ */
+ public String content() {
+ return this.content;
+ }
+
+ /**
+ * Set the content property: Specifies the XML formatted content that is added to the unattend.xml file for the
+ * specified path and component. The XML must be less than 4KB and must include the root element for the setting or
+ * feature that is being inserted.
+ *
+ * @param content the content value to set.
+ * @return the AdditionalUnattendContent object itself.
+ */
+ public AdditionalUnattendContent withContent(String content) {
+ this.content = content;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("passName", this.passName == null ? null : this.passName.toString());
+ jsonWriter.writeStringField("componentName", this.componentName == null ? null : this.componentName.toString());
+ jsonWriter.writeStringField("settingName", this.settingName == null ? null : this.settingName.toString());
+ jsonWriter.writeStringField("content", this.content);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AdditionalUnattendContent from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AdditionalUnattendContent 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 AdditionalUnattendContent.
+ */
+ public static AdditionalUnattendContent fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AdditionalUnattendContent deserializedAdditionalUnattendContent = new AdditionalUnattendContent();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("passName".equals(fieldName)) {
+ deserializedAdditionalUnattendContent.passName
+ = AdditionalUnattendContentPassName.fromString(reader.getString());
+ } else if ("componentName".equals(fieldName)) {
+ deserializedAdditionalUnattendContent.componentName
+ = AdditionalUnattendContentComponentName.fromString(reader.getString());
+ } else if ("settingName".equals(fieldName)) {
+ deserializedAdditionalUnattendContent.settingName = SettingNames.fromString(reader.getString());
+ } else if ("content".equals(fieldName)) {
+ deserializedAdditionalUnattendContent.content = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAdditionalUnattendContent;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentComponentName.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentComponentName.java
new file mode 100644
index 000000000000..d51a42cf1f02
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentComponentName.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+/**
+ * Defines values for AdditionalUnattendContentComponentName.
+ */
+public enum AdditionalUnattendContentComponentName {
+ /**
+ * Enum value Microsoft-Windows-Shell-Setup.
+ */
+ MICROSOFT_WINDOWS_SHELL_SETUP("Microsoft-Windows-Shell-Setup");
+
+ /**
+ * The actual serialized value for a AdditionalUnattendContentComponentName instance.
+ */
+ private final String value;
+
+ AdditionalUnattendContentComponentName(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a AdditionalUnattendContentComponentName instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed AdditionalUnattendContentComponentName object, or null if unable to parse.
+ */
+ public static AdditionalUnattendContentComponentName fromString(String value) {
+ if (value == null) {
+ return null;
+ }
+ AdditionalUnattendContentComponentName[] items = AdditionalUnattendContentComponentName.values();
+ for (AdditionalUnattendContentComponentName item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentPassName.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentPassName.java
new file mode 100644
index 000000000000..876285e32a86
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AdditionalUnattendContentPassName.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+/**
+ * Defines values for AdditionalUnattendContentPassName.
+ */
+public enum AdditionalUnattendContentPassName {
+ /**
+ * Enum value OobeSystem.
+ */
+ OOBE_SYSTEM("OobeSystem");
+
+ /**
+ * The actual serialized value for a AdditionalUnattendContentPassName instance.
+ */
+ private final String value;
+
+ AdditionalUnattendContentPassName(String value) {
+ this.value = value;
+ }
+
+ /**
+ * Parses a serialized value to a AdditionalUnattendContentPassName instance.
+ *
+ * @param value the serialized value to parse.
+ * @return the parsed AdditionalUnattendContentPassName object, or null if unable to parse.
+ */
+ public static AdditionalUnattendContentPassName fromString(String value) {
+ if (value == null) {
+ return null;
+ }
+ AdditionalUnattendContentPassName[] items = AdditionalUnattendContentPassName.values();
+ for (AdditionalUnattendContentPassName item : items) {
+ if (item.toString().equalsIgnoreCase(value)) {
+ return item;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String toString() {
+ return this.value;
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllInstancesDown.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllInstancesDown.java
new file mode 100644
index 000000000000..822a79848ceb
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllInstancesDown.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Specifies if Scheduled Events should be auto-approved when all instances are down.
+ */
+@Fluent
+public final class AllInstancesDown implements JsonSerializable {
+ /*
+ * Specifies if Scheduled Events should be auto-approved when all instances are down. Its default value is true.
+ */
+ private Boolean automaticallyApprove;
+
+ /**
+ * Creates an instance of AllInstancesDown class.
+ */
+ public AllInstancesDown() {
+ }
+
+ /**
+ * Get the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances
+ * are down. Its default value is true.
+ *
+ * @return the automaticallyApprove value.
+ */
+ public Boolean automaticallyApprove() {
+ return this.automaticallyApprove;
+ }
+
+ /**
+ * Set the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances
+ * are down. Its default value is true.
+ *
+ * @param automaticallyApprove the automaticallyApprove value to set.
+ * @return the AllInstancesDown object itself.
+ */
+ public AllInstancesDown withAutomaticallyApprove(Boolean automaticallyApprove) {
+ this.automaticallyApprove = automaticallyApprove;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("automaticallyApprove", this.automaticallyApprove);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AllInstancesDown from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AllInstancesDown 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 AllInstancesDown.
+ */
+ public static AllInstancesDown fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AllInstancesDown deserializedAllInstancesDown = new AllInstancesDown();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("automaticallyApprove".equals(fieldName)) {
+ deserializedAllInstancesDown.automaticallyApprove = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAllInstancesDown;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllocationStrategy.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllocationStrategy.java
new file mode 100644
index 000000000000..a7a4e8d4ecd8
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/AllocationStrategy.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The allocation strategy for VM size selection.
+ */
+public final class AllocationStrategy extends ExpandableStringEnum {
+ /**
+ * Platform prioritizes VM sizes with the lowest hourly cost.
+ */
+ public static final AllocationStrategy LOWEST_PRICE = fromString("LowestPrice");
+
+ /**
+ * Customer specifies a rank for each VM size, platform uses VM sizes in rank order.
+ */
+ public static final AllocationStrategy PRIORITIZED = fromString("Prioritized");
+
+ /**
+ * Platform prioritizes VM sizes with the highest available capacity first.
+ */
+ public static final AllocationStrategy CAPACITY_OPTIMIZED = fromString("CapacityOptimized");
+
+ /**
+ * Creates a new instance of AllocationStrategy value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AllocationStrategy() {
+ }
+
+ /**
+ * Creates or finds a AllocationStrategy from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AllocationStrategy.
+ */
+ public static AllocationStrategy fromString(String name) {
+ return fromString(name, AllocationStrategy.class);
+ }
+
+ /**
+ * Gets known AllocationStrategy values.
+ *
+ * @return known AllocationStrategy values.
+ */
+ public static Collection values() {
+ return values(AllocationStrategy.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApiEntityReference.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApiEntityReference.java
new file mode 100644
index 000000000000..969e284eb930
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApiEntityReference.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The API entity reference.
+ */
+@Fluent
+public final class ApiEntityReference implements JsonSerializable {
+ /*
+ * The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
+ */
+ private String id;
+
+ /**
+ * Creates an instance of ApiEntityReference class.
+ */
+ public ApiEntityReference() {
+ }
+
+ /**
+ * Get the id property: The ARM resource id in the form of
+ * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Set the id property: The ARM resource id in the form of
+ * /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
+ *
+ * @param id the id value to set.
+ * @return the ApiEntityReference object itself.
+ */
+ public ApiEntityReference withId(String id) {
+ this.id = id;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", this.id);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ApiEntityReference from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ApiEntityReference 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 ApiEntityReference.
+ */
+ public static ApiEntityReference fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ApiEntityReference deserializedApiEntityReference = new ApiEntityReference();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedApiEntityReference.id = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedApiEntityReference;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApplicationProfile.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApplicationProfile.java
new file mode 100644
index 000000000000..6a3f012506aa
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ApplicationProfile.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+
+/**
+ * Contains the list of gallery applications that should be made available to the VM.
+ */
+@Fluent
+public final class ApplicationProfile implements JsonSerializable {
+ /*
+ * Specifies the gallery applications that should be made available to the VM
+ */
+ private List galleryApplications;
+
+ /**
+ * Creates an instance of ApplicationProfile class.
+ */
+ public ApplicationProfile() {
+ }
+
+ /**
+ * Get the galleryApplications property: Specifies the gallery applications that should be made available to the VM.
+ *
+ * @return the galleryApplications value.
+ */
+ public List galleryApplications() {
+ return this.galleryApplications;
+ }
+
+ /**
+ * Set the galleryApplications property: Specifies the gallery applications that should be made available to the VM.
+ *
+ * @param galleryApplications the galleryApplications value to set.
+ * @return the ApplicationProfile object itself.
+ */
+ public ApplicationProfile withGalleryApplications(List galleryApplications) {
+ this.galleryApplications = galleryApplications;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("galleryApplications", this.galleryApplications,
+ (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ApplicationProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ApplicationProfile 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 ApplicationProfile.
+ */
+ public static ApplicationProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ApplicationProfile deserializedApplicationProfile = new ApplicationProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("galleryApplications".equals(fieldName)) {
+ List galleryApplications
+ = reader.readArray(reader1 -> VMGalleryApplication.fromJson(reader1));
+ deserializedApplicationProfile.galleryApplications = galleryApplications;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedApplicationProfile;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BootDiagnostics.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BootDiagnostics.java
new file mode 100644
index 000000000000..d8e30f370852
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BootDiagnostics.java
@@ -0,0 +1,118 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status.
+ * You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the
+ * hypervisor.
+ */
+@Fluent
+public final class BootDiagnostics implements JsonSerializable {
+ /*
+ * Whether boot diagnostics should be enabled on the Virtual Machine.
+ */
+ private Boolean enabled;
+
+ /*
+ * Uri of the storage account to use for placing the console output and screenshot. If storageUri is not specified
+ * while enabling boot diagnostics, managed storage will be used.
+ */
+ private String storageUri;
+
+ /**
+ * Creates an instance of BootDiagnostics class.
+ */
+ public BootDiagnostics() {
+ }
+
+ /**
+ * Get the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Whether boot diagnostics should be enabled on the Virtual Machine.
+ *
+ * @param enabled the enabled value to set.
+ * @return the BootDiagnostics object itself.
+ */
+ public BootDiagnostics withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * Get the storageUri property: Uri of the storage account to use for placing the console output and screenshot. If
+ * storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ *
+ * @return the storageUri value.
+ */
+ public String storageUri() {
+ return this.storageUri;
+ }
+
+ /**
+ * Set the storageUri property: Uri of the storage account to use for placing the console output and screenshot. If
+ * storageUri is not specified while enabling boot diagnostics, managed storage will be used.
+ *
+ * @param storageUri the storageUri value to set.
+ * @return the BootDiagnostics object itself.
+ */
+ public BootDiagnostics withStorageUri(String storageUri) {
+ this.storageUri = storageUri;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("enabled", this.enabled);
+ jsonWriter.writeStringField("storageUri", this.storageUri);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BootDiagnostics from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BootDiagnostics 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 BootDiagnostics.
+ */
+ public static BootDiagnostics fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BootDiagnostics deserializedBootDiagnostics = new BootDiagnostics();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("enabled".equals(fieldName)) {
+ deserializedBootDiagnostics.enabled = reader.getNullable(JsonReader::getBoolean);
+ } else if ("storageUri".equals(fieldName)) {
+ deserializedBootDiagnostics.storageUri = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBootDiagnostics;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMExtension.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMExtension.java
new file mode 100644
index 000000000000..b39dd1f23789
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMExtension.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Defines a virtual machine extension.
+ */
+@Fluent
+public final class BulkActionVMExtension implements JsonSerializable {
+ /*
+ * The name of the virtual machine extension.
+ */
+ private String name;
+
+ /*
+ * Properties of the virtual machine extension.
+ */
+ private BulkActionVmExtensionProperties properties;
+
+ /**
+ * Creates an instance of BulkActionVMExtension class.
+ */
+ public BulkActionVMExtension() {
+ }
+
+ /**
+ * Get the name property: The name of the virtual machine extension.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the virtual machine extension.
+ *
+ * @param name the name value to set.
+ * @return the BulkActionVMExtension object itself.
+ */
+ public BulkActionVMExtension withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the properties property: Properties of the virtual machine extension.
+ *
+ * @return the properties value.
+ */
+ public BulkActionVmExtensionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the virtual machine extension.
+ *
+ * @param properties the properties value to set.
+ * @return the BulkActionVMExtension object itself.
+ */
+ public BulkActionVMExtension withProperties(BulkActionVmExtensionProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BulkActionVMExtension from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BulkActionVMExtension 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 BulkActionVMExtension.
+ */
+ public static BulkActionVMExtension fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BulkActionVMExtension deserializedBulkActionVMExtension = new BulkActionVMExtension();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedBulkActionVMExtension.name = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedBulkActionVMExtension.properties = BulkActionVmExtensionProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBulkActionVMExtension;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMProfile.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMProfile.java
new file mode 100644
index 000000000000..f189e6552c3a
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMProfile.java
@@ -0,0 +1,466 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes the properties of a Virtual Machine for create.
+ */
+@Fluent
+public final class BulkActionVMProfile implements JsonSerializable {
+ /*
+ * Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets Scheduled Event related configurations
+ * for the virtual machine.
+ */
+ private ScheduledEventsPolicy scheduledEventsPolicy;
+
+ /*
+ * Specifies the storage settings for the virtual machine disks.
+ */
+ private StorageProfile storageProfile;
+
+ /*
+ * Specifies additional capabilities enabled or disabled on the virtual machine.
+ */
+ private AdditionalCapabilities additionalCapabilities;
+
+ /*
+ * Specifies the operating system settings used while creating the virtual machine. Some of the settings cannot be
+ * changed once VM is provisioned.
+ */
+ private OSProfile osProfile;
+
+ /*
+ * Specifies the network interfaces of the virtual machine.
+ */
+ private NetworkProfile networkProfile;
+
+ /*
+ * Specifies the Security related profile settings for the virtual machine.
+ */
+ private SecurityProfile securityProfile;
+
+ /*
+ * Specifies the boot diagnostic settings state. Minimum compute api-version: 2015-06-15.
+ */
+ private DiagnosticsProfile diagnosticsProfile;
+
+ /*
+ * Specifies that the image or disk that is being used was licensed on-premises.
Possible values for
+ * Windows Server operating system are:
Windows_Client
Windows_Server
Possible values for
+ * Linux Server operating system are:
RHEL_BYOS (for RHEL)
SLES_BYOS (for SUSE)
For more
+ * information, see [Azure Hybrid Use Benefit for Windows
+ * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
[Azure
+ * Hybrid Use Benefit for Linux
+ * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux)
Minimum
+ * api-version: 2015-06-15
+ */
+ private String licenseType;
+
+ /*
+ * Specifies the time alloted for all extensions to start. The time duration should be between 15 minutes and 120
+ * minutes (inclusive) and should be specified in ISO 8601 format. The default value is 90 minutes (PT1H30M).
+ * Minimum compute api-version: 2020-06-01.
+ */
+ private String extensionsTimeBudget;
+
+ /*
+ * Specifies Scheduled Event related configurations.
+ */
+ private ScheduledEventsProfile scheduledEventsProfile;
+
+ /*
+ * UserData for the VM, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum compute
+ * api-version: 2021-03-01.
+ */
+ private String userData;
+
+ /*
+ * Specifies information about the capacity reservation that is used to allocate virtual machine. Minimum compute
+ * api-version: 2021-04-01.
+ */
+ private CapacityReservationProfile capacityReservation;
+
+ /*
+ * Specifies the gallery applications that should be made available to the VM.
+ */
+ private ApplicationProfile applicationProfile;
+
+ /**
+ * Creates an instance of BulkActionVMProfile class.
+ */
+ public BulkActionVMProfile() {
+ }
+
+ /**
+ * Get the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets
+ * Scheduled Event related configurations for the virtual machine.
+ *
+ * @return the scheduledEventsPolicy value.
+ */
+ public ScheduledEventsPolicy scheduledEventsPolicy() {
+ return this.scheduledEventsPolicy;
+ }
+
+ /**
+ * Set the scheduledEventsPolicy property: Specifies Redeploy, Reboot and ScheduledEventsAdditionalPublishingTargets
+ * Scheduled Event related configurations for the virtual machine.
+ *
+ * @param scheduledEventsPolicy the scheduledEventsPolicy value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withScheduledEventsPolicy(ScheduledEventsPolicy scheduledEventsPolicy) {
+ this.scheduledEventsPolicy = scheduledEventsPolicy;
+ return this;
+ }
+
+ /**
+ * Get the storageProfile property: Specifies the storage settings for the virtual machine disks.
+ *
+ * @return the storageProfile value.
+ */
+ public StorageProfile storageProfile() {
+ return this.storageProfile;
+ }
+
+ /**
+ * Set the storageProfile property: Specifies the storage settings for the virtual machine disks.
+ *
+ * @param storageProfile the storageProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withStorageProfile(StorageProfile storageProfile) {
+ this.storageProfile = storageProfile;
+ return this;
+ }
+
+ /**
+ * Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual
+ * machine.
+ *
+ * @return the additionalCapabilities value.
+ */
+ public AdditionalCapabilities additionalCapabilities() {
+ return this.additionalCapabilities;
+ }
+
+ /**
+ * Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the virtual
+ * machine.
+ *
+ * @param additionalCapabilities the additionalCapabilities value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities) {
+ this.additionalCapabilities = additionalCapabilities;
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: Specifies the operating system settings used while creating the virtual machine. Some
+ * of the settings cannot be changed once VM is provisioned.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.osProfile;
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings used while creating the virtual machine. Some
+ * of the settings cannot be changed once VM is provisioned.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withOsProfile(OSProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
+ /**
+ * Get the networkProfile property: Specifies the network interfaces of the virtual machine.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfile networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Set the networkProfile property: Specifies the network interfaces of the virtual machine.
+ *
+ * @param networkProfile the networkProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withNetworkProfile(NetworkProfile networkProfile) {
+ this.networkProfile = networkProfile;
+ return this;
+ }
+
+ /**
+ * Get the securityProfile property: Specifies the Security related profile settings for the virtual machine.
+ *
+ * @return the securityProfile value.
+ */
+ public SecurityProfile securityProfile() {
+ return this.securityProfile;
+ }
+
+ /**
+ * Set the securityProfile property: Specifies the Security related profile settings for the virtual machine.
+ *
+ * @param securityProfile the securityProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withSecurityProfile(SecurityProfile securityProfile) {
+ this.securityProfile = securityProfile;
+ return this;
+ }
+
+ /**
+ * Get the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum compute api-version:
+ * 2015-06-15.
+ *
+ * @return the diagnosticsProfile value.
+ */
+ public DiagnosticsProfile diagnosticsProfile() {
+ return this.diagnosticsProfile;
+ }
+
+ /**
+ * Set the diagnosticsProfile property: Specifies the boot diagnostic settings state. Minimum compute api-version:
+ * 2015-06-15.
+ *
+ * @param diagnosticsProfile the diagnosticsProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withDiagnosticsProfile(DiagnosticsProfile diagnosticsProfile) {
+ this.diagnosticsProfile = diagnosticsProfile;
+ return this;
+ }
+
+ /**
+ * Get the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.
+ * <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client
+ * <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are:
+ * <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more
+ * information, see [Azure Hybrid Use Benefit for Windows
+ * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
+ * <br><br> [Azure Hybrid Use Benefit for Linux
+ * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br>
+ * Minimum api-version: 2015-06-15.
+ *
+ * @return the licenseType value.
+ */
+ public String licenseType() {
+ return this.licenseType;
+ }
+
+ /**
+ * Set the licenseType property: Specifies that the image or disk that is being used was licensed on-premises.
+ * <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client
+ * <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are:
+ * <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more
+ * information, see [Azure Hybrid Use Benefit for Windows
+ * Server](https://docs.microsoft.com/azure/virtual-machines/windows/hybrid-use-benefit-licensing)
+ * <br><br> [Azure Hybrid Use Benefit for Linux
+ * Server](https://docs.microsoft.com/azure/virtual-machines/linux/azure-hybrid-benefit-linux) <br><br>
+ * Minimum api-version: 2015-06-15.
+ *
+ * @param licenseType the licenseType value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withLicenseType(String licenseType) {
+ this.licenseType = licenseType;
+ return this;
+ }
+
+ /**
+ * Get the extensionsTimeBudget property: Specifies the time alloted for all extensions to start. The time duration
+ * should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default
+ * value is 90 minutes (PT1H30M). Minimum compute api-version: 2020-06-01.
+ *
+ * @return the extensionsTimeBudget value.
+ */
+ public String extensionsTimeBudget() {
+ return this.extensionsTimeBudget;
+ }
+
+ /**
+ * Set the extensionsTimeBudget property: Specifies the time alloted for all extensions to start. The time duration
+ * should be between 15 minutes and 120 minutes (inclusive) and should be specified in ISO 8601 format. The default
+ * value is 90 minutes (PT1H30M). Minimum compute api-version: 2020-06-01.
+ *
+ * @param extensionsTimeBudget the extensionsTimeBudget value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withExtensionsTimeBudget(String extensionsTimeBudget) {
+ this.extensionsTimeBudget = extensionsTimeBudget;
+ return this;
+ }
+
+ /**
+ * Get the scheduledEventsProfile property: Specifies Scheduled Event related configurations.
+ *
+ * @return the scheduledEventsProfile value.
+ */
+ public ScheduledEventsProfile scheduledEventsProfile() {
+ return this.scheduledEventsProfile;
+ }
+
+ /**
+ * Set the scheduledEventsProfile property: Specifies Scheduled Event related configurations.
+ *
+ * @param scheduledEventsProfile the scheduledEventsProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withScheduledEventsProfile(ScheduledEventsProfile scheduledEventsProfile) {
+ this.scheduledEventsProfile = scheduledEventsProfile;
+ return this;
+ }
+
+ /**
+ * Get the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any
+ * secrets in here. Minimum compute api-version: 2021-03-01.
+ *
+ * @return the userData value.
+ */
+ public String userData() {
+ return this.userData;
+ }
+
+ /**
+ * Set the userData property: UserData for the VM, which must be base-64 encoded. Customer should not pass any
+ * secrets in here. Minimum compute api-version: 2021-03-01.
+ *
+ * @param userData the userData value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withUserData(String userData) {
+ this.userData = userData;
+ return this;
+ }
+
+ /**
+ * Get the capacityReservation property: Specifies information about the capacity reservation that is used to
+ * allocate virtual machine. Minimum compute api-version: 2021-04-01.
+ *
+ * @return the capacityReservation value.
+ */
+ public CapacityReservationProfile capacityReservation() {
+ return this.capacityReservation;
+ }
+
+ /**
+ * Set the capacityReservation property: Specifies information about the capacity reservation that is used to
+ * allocate virtual machine. Minimum compute api-version: 2021-04-01.
+ *
+ * @param capacityReservation the capacityReservation value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withCapacityReservation(CapacityReservationProfile capacityReservation) {
+ this.capacityReservation = capacityReservation;
+ return this;
+ }
+
+ /**
+ * Get the applicationProfile property: Specifies the gallery applications that should be made available to the VM.
+ *
+ * @return the applicationProfile value.
+ */
+ public ApplicationProfile applicationProfile() {
+ return this.applicationProfile;
+ }
+
+ /**
+ * Set the applicationProfile property: Specifies the gallery applications that should be made available to the VM.
+ *
+ * @param applicationProfile the applicationProfile value to set.
+ * @return the BulkActionVMProfile object itself.
+ */
+ public BulkActionVMProfile withApplicationProfile(ApplicationProfile applicationProfile) {
+ this.applicationProfile = applicationProfile;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("scheduledEventsPolicy", this.scheduledEventsPolicy);
+ jsonWriter.writeJsonField("storageProfile", this.storageProfile);
+ jsonWriter.writeJsonField("additionalCapabilities", this.additionalCapabilities);
+ jsonWriter.writeJsonField("osProfile", this.osProfile);
+ jsonWriter.writeJsonField("networkProfile", this.networkProfile);
+ jsonWriter.writeJsonField("securityProfile", this.securityProfile);
+ jsonWriter.writeJsonField("diagnosticsProfile", this.diagnosticsProfile);
+ jsonWriter.writeStringField("licenseType", this.licenseType);
+ jsonWriter.writeStringField("extensionsTimeBudget", this.extensionsTimeBudget);
+ jsonWriter.writeJsonField("scheduledEventsProfile", this.scheduledEventsProfile);
+ jsonWriter.writeStringField("userData", this.userData);
+ jsonWriter.writeJsonField("capacityReservation", this.capacityReservation);
+ jsonWriter.writeJsonField("applicationProfile", this.applicationProfile);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BulkActionVMProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BulkActionVMProfile 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 BulkActionVMProfile.
+ */
+ public static BulkActionVMProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BulkActionVMProfile deserializedBulkActionVMProfile = new BulkActionVMProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("scheduledEventsPolicy".equals(fieldName)) {
+ deserializedBulkActionVMProfile.scheduledEventsPolicy = ScheduledEventsPolicy.fromJson(reader);
+ } else if ("storageProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.storageProfile = StorageProfile.fromJson(reader);
+ } else if ("additionalCapabilities".equals(fieldName)) {
+ deserializedBulkActionVMProfile.additionalCapabilities = AdditionalCapabilities.fromJson(reader);
+ } else if ("osProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.osProfile = OSProfile.fromJson(reader);
+ } else if ("networkProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.networkProfile = NetworkProfile.fromJson(reader);
+ } else if ("securityProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.securityProfile = SecurityProfile.fromJson(reader);
+ } else if ("diagnosticsProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.diagnosticsProfile = DiagnosticsProfile.fromJson(reader);
+ } else if ("licenseType".equals(fieldName)) {
+ deserializedBulkActionVMProfile.licenseType = reader.getString();
+ } else if ("extensionsTimeBudget".equals(fieldName)) {
+ deserializedBulkActionVMProfile.extensionsTimeBudget = reader.getString();
+ } else if ("scheduledEventsProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.scheduledEventsProfile = ScheduledEventsProfile.fromJson(reader);
+ } else if ("userData".equals(fieldName)) {
+ deserializedBulkActionVMProfile.userData = reader.getString();
+ } else if ("capacityReservation".equals(fieldName)) {
+ deserializedBulkActionVMProfile.capacityReservation = CapacityReservationProfile.fromJson(reader);
+ } else if ("applicationProfile".equals(fieldName)) {
+ deserializedBulkActionVMProfile.applicationProfile = ApplicationProfile.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBulkActionVMProfile;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMSpec.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMSpec.java
new file mode 100644
index 000000000000..a493aa080fc2
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVMSpec.java
@@ -0,0 +1,260 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+import java.util.Map;
+
+/**
+ * Specifies the properties of a Virtual Machine.
+ */
+@Fluent
+public final class BulkActionVMSpec implements JsonSerializable {
+ /*
+ * The marketplace image plan used for the virtual machine.
+ */
+ private Plan plan;
+
+ /*
+ * The availability zones.
+ */
+ private List zones;
+
+ /*
+ * The identity of the virtual machine, if configured.
+ */
+ private VirtualMachineIdentity identity;
+
+ /*
+ * The extended location of the Virtual Machine.
+ */
+ private ExtendedLocation extendedLocation;
+
+ /*
+ * Placement constraints for virtual machine hardware placement - see
+ * specification/compute/Compute.Management/models.tsp#Placement
+ */
+ private Placement placement;
+
+ /*
+ * Resource tags to apply to the virtual machines created by this bulk action.
+ */
+ private Map tags;
+
+ /*
+ * Describes the properties of a Virtual Machine.
+ */
+ private BulkActionVMProfile vmProperties;
+
+ /**
+ * Creates an instance of BulkActionVMSpec class.
+ */
+ public BulkActionVMSpec() {
+ }
+
+ /**
+ * Get the plan property: The marketplace image plan used for the virtual machine.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: The marketplace image plan used for the virtual machine.
+ *
+ * @param plan the plan value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the zones property: The availability zones.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: The availability zones.
+ *
+ * @param zones the zones value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the virtual machine, if configured.
+ *
+ * @return the identity value.
+ */
+ public VirtualMachineIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the virtual machine, if configured.
+ *
+ * @param identity the identity value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withIdentity(VirtualMachineIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the extendedLocation property: The extended location of the Virtual Machine.
+ *
+ * @return the extendedLocation value.
+ */
+ public ExtendedLocation extendedLocation() {
+ return this.extendedLocation;
+ }
+
+ /**
+ * Set the extendedLocation property: The extended location of the Virtual Machine.
+ *
+ * @param extendedLocation the extendedLocation value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withExtendedLocation(ExtendedLocation extendedLocation) {
+ this.extendedLocation = extendedLocation;
+ return this;
+ }
+
+ /**
+ * Get the placement property: Placement constraints for virtual machine hardware placement - see
+ * specification/compute/Compute.Management/models.tsp#Placement.
+ *
+ * @return the placement value.
+ */
+ public Placement placement() {
+ return this.placement;
+ }
+
+ /**
+ * Set the placement property: Placement constraints for virtual machine hardware placement - see
+ * specification/compute/Compute.Management/models.tsp#Placement.
+ *
+ * @param placement the placement value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withPlacement(Placement placement) {
+ this.placement = placement;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags to apply to the virtual machines created by this bulk action.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags to apply to the virtual machines created by this bulk action.
+ *
+ * @param tags the tags value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the vmProperties property: Describes the properties of a Virtual Machine.
+ *
+ * @return the vmProperties value.
+ */
+ public BulkActionVMProfile vmProperties() {
+ return this.vmProperties;
+ }
+
+ /**
+ * Set the vmProperties property: Describes the properties of a Virtual Machine.
+ *
+ * @param vmProperties the vmProperties value to set.
+ * @return the BulkActionVMSpec object itself.
+ */
+ public BulkActionVMSpec withVmProperties(BulkActionVMProfile vmProperties) {
+ this.vmProperties = vmProperties;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("plan", this.plan);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("extendedLocation", this.extendedLocation);
+ jsonWriter.writeJsonField("placement", this.placement);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("vmProperties", this.vmProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BulkActionVMSpec from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BulkActionVMSpec 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 BulkActionVMSpec.
+ */
+ public static BulkActionVMSpec fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BulkActionVMSpec deserializedBulkActionVMSpec = new BulkActionVMSpec();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("plan".equals(fieldName)) {
+ deserializedBulkActionVMSpec.plan = Plan.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedBulkActionVMSpec.zones = zones;
+ } else if ("identity".equals(fieldName)) {
+ deserializedBulkActionVMSpec.identity = VirtualMachineIdentity.fromJson(reader);
+ } else if ("extendedLocation".equals(fieldName)) {
+ deserializedBulkActionVMSpec.extendedLocation = ExtendedLocation.fromJson(reader);
+ } else if ("placement".equals(fieldName)) {
+ deserializedBulkActionVMSpec.placement = Placement.fromJson(reader);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedBulkActionVMSpec.tags = tags;
+ } else if ("vmProperties".equals(fieldName)) {
+ deserializedBulkActionVMSpec.vmProperties = BulkActionVMProfile.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBulkActionVMSpec;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVmExtensionProperties.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVmExtensionProperties.java
new file mode 100644
index 000000000000..5ca78f1575e2
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkActionVmExtensionProperties.java
@@ -0,0 +1,415 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.BinaryData;
+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;
+import java.util.Map;
+
+/**
+ * Describes the properties of a Virtual Machine Extension.
+ */
+@Fluent
+public final class BulkActionVmExtensionProperties implements JsonSerializable {
+ /*
+ * How the extension handler should be forced to update even if the extension configuration has not changed.
+ */
+ private String forceUpdateTag;
+
+ /*
+ * The name of the extension handler publisher.
+ */
+ private String publisher;
+
+ /*
+ * Specifies the type of the extension; an example is 'CustomScriptExtension'.
+ */
+ private String type;
+
+ /*
+ * Specifies the version of the script handler.
+ */
+ private String typeHandlerVersion;
+
+ /*
+ * Indicates whether the extension should use a newer minor version if one is available at deployment time. Once
+ * deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set
+ * to true.
+ */
+ private Boolean autoUpgradeMinorVersion;
+
+ /*
+ * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of
+ * the extension available.
+ */
+ private Boolean enableAutomaticUpgrade;
+
+ /*
+ * JSON formatted public settings for the extension.
+ */
+ private Map settings;
+
+ /*
+ * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at
+ * all.
+ */
+ private Map protectedSettings;
+
+ /*
+ * Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not
+ * connecting to the VM will not be suppressed regardless of this value). The default is false.
+ */
+ private Boolean suppressFailures;
+
+ /*
+ * The extensions protected settings that are passed by reference, and consumed from key vault
+ */
+ private KeyVaultSecretReference protectedSettingsFromKeyVault;
+
+ /*
+ * Collection of extension names after which this extension needs to be provisioned.
+ */
+ private List provisionAfterExtensions;
+
+ /**
+ * Creates an instance of BulkActionVmExtensionProperties class.
+ */
+ public BulkActionVmExtensionProperties() {
+ }
+
+ /**
+ * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @return the forceUpdateTag value.
+ */
+ public String forceUpdateTag() {
+ return this.forceUpdateTag;
+ }
+
+ /**
+ * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @param forceUpdateTag the forceUpdateTag value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withForceUpdateTag(String forceUpdateTag) {
+ this.forceUpdateTag = forceUpdateTag;
+ return this;
+ }
+
+ /**
+ * Get the publisher property: The name of the extension handler publisher.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Set the publisher property: The name of the extension handler publisher.
+ *
+ * @param publisher the publisher value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withPublisher(String publisher) {
+ this.publisher = publisher;
+ return this;
+ }
+
+ /**
+ * Get the type property: Specifies the type of the extension; an example is 'CustomScriptExtension'.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: Specifies the type of the extension; an example is 'CustomScriptExtension'.
+ *
+ * @param type the type value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withType(String type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @return the typeHandlerVersion value.
+ */
+ public String typeHandlerVersion() {
+ return this.typeHandlerVersion;
+ }
+
+ /**
+ * Set the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @param typeHandlerVersion the typeHandlerVersion value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withTypeHandlerVersion(String typeHandlerVersion) {
+ this.typeHandlerVersion = typeHandlerVersion;
+ return this;
+ }
+
+ /**
+ * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @return the autoUpgradeMinorVersion value.
+ */
+ public Boolean autoUpgradeMinorVersion() {
+ return this.autoUpgradeMinorVersion;
+ }
+
+ /**
+ * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
+ this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
+ return this;
+ }
+
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version of the extension available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version of the extension available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
+ /**
+ * Get the settings property: JSON formatted public settings for the extension.
+ *
+ * @return the settings value.
+ */
+ public Map settings() {
+ return this.settings;
+ }
+
+ /**
+ * Set the settings property: JSON formatted public settings for the extension.
+ *
+ * @param settings the settings value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withSettings(Map settings) {
+ this.settings = settings;
+ return this;
+ }
+
+ /**
+ * Get the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @return the protectedSettings value.
+ */
+ public Map protectedSettings() {
+ return this.protectedSettings;
+ }
+
+ /**
+ * Set the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @param protectedSettings the protectedSettings value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withProtectedSettings(Map protectedSettings) {
+ this.protectedSettings = protectedSettings;
+ return this;
+ }
+
+ /**
+ * Get the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed
+ * (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The
+ * default is false.
+ *
+ * @return the suppressFailures value.
+ */
+ public Boolean suppressFailures() {
+ return this.suppressFailures;
+ }
+
+ /**
+ * Set the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed
+ * (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The
+ * default is false.
+ *
+ * @param suppressFailures the suppressFailures value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withSuppressFailures(Boolean suppressFailures) {
+ this.suppressFailures = suppressFailures;
+ return this;
+ }
+
+ /**
+ * Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference,
+ * and consumed from key vault.
+ *
+ * @return the protectedSettingsFromKeyVault value.
+ */
+ public KeyVaultSecretReference protectedSettingsFromKeyVault() {
+ return this.protectedSettingsFromKeyVault;
+ }
+
+ /**
+ * Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference,
+ * and consumed from key vault.
+ *
+ * @param protectedSettingsFromKeyVault the protectedSettingsFromKeyVault value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties
+ withProtectedSettingsFromKeyVault(KeyVaultSecretReference protectedSettingsFromKeyVault) {
+ this.protectedSettingsFromKeyVault = protectedSettingsFromKeyVault;
+ return this;
+ }
+
+ /**
+ * Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be
+ * provisioned.
+ *
+ * @return the provisionAfterExtensions value.
+ */
+ public List provisionAfterExtensions() {
+ return this.provisionAfterExtensions;
+ }
+
+ /**
+ * Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be
+ * provisioned.
+ *
+ * @param provisionAfterExtensions the provisionAfterExtensions value to set.
+ * @return the BulkActionVmExtensionProperties object itself.
+ */
+ public BulkActionVmExtensionProperties withProvisionAfterExtensions(List provisionAfterExtensions) {
+ this.provisionAfterExtensions = provisionAfterExtensions;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("forceUpdateTag", this.forceUpdateTag);
+ jsonWriter.writeStringField("publisher", this.publisher);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("typeHandlerVersion", this.typeHandlerVersion);
+ jsonWriter.writeBooleanField("autoUpgradeMinorVersion", this.autoUpgradeMinorVersion);
+ jsonWriter.writeBooleanField("enableAutomaticUpgrade", this.enableAutomaticUpgrade);
+ jsonWriter.writeMapField("settings", this.settings, (writer, element) -> {
+ if (element == null) {
+ writer.writeNull();
+ } else {
+ element.writeTo(writer);
+ }
+ });
+ jsonWriter.writeMapField("protectedSettings", this.protectedSettings, (writer, element) -> {
+ if (element == null) {
+ writer.writeNull();
+ } else {
+ element.writeTo(writer);
+ }
+ });
+ jsonWriter.writeBooleanField("suppressFailures", this.suppressFailures);
+ jsonWriter.writeJsonField("protectedSettingsFromKeyVault", this.protectedSettingsFromKeyVault);
+ jsonWriter.writeArrayField("provisionAfterExtensions", this.provisionAfterExtensions,
+ (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BulkActionVmExtensionProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BulkActionVmExtensionProperties 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 BulkActionVmExtensionProperties.
+ */
+ public static BulkActionVmExtensionProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BulkActionVmExtensionProperties deserializedBulkActionVmExtensionProperties
+ = new BulkActionVmExtensionProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("forceUpdateTag".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.forceUpdateTag = reader.getString();
+ } else if ("publisher".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.publisher = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.type = reader.getString();
+ } else if ("typeHandlerVersion".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.typeHandlerVersion = reader.getString();
+ } else if ("autoUpgradeMinorVersion".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.autoUpgradeMinorVersion
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("enableAutomaticUpgrade".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.enableAutomaticUpgrade
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("settings".equals(fieldName)) {
+ Map settings = reader.readMap(reader1 -> reader1
+ .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())));
+ deserializedBulkActionVmExtensionProperties.settings = settings;
+ } else if ("protectedSettings".equals(fieldName)) {
+ Map protectedSettings = reader.readMap(reader1 -> reader1
+ .getNullable(nonNullReader -> BinaryData.fromObject(nonNullReader.readUntyped())));
+ deserializedBulkActionVmExtensionProperties.protectedSettings = protectedSettings;
+ } else if ("suppressFailures".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.suppressFailures
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("protectedSettingsFromKeyVault".equals(fieldName)) {
+ deserializedBulkActionVmExtensionProperties.protectedSettingsFromKeyVault
+ = KeyVaultSecretReference.fromJson(reader);
+ } else if ("provisionAfterExtensions".equals(fieldName)) {
+ List provisionAfterExtensions = reader.readArray(reader1 -> reader1.getString());
+ deserializedBulkActionVmExtensionProperties.provisionAfterExtensions = provisionAfterExtensions;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBulkActionVmExtensionProperties;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkVMConfiguration.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkVMConfiguration.java
new file mode 100644
index 000000000000..a5e6ecfbed48
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/BulkVMConfiguration.java
@@ -0,0 +1,178 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+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;
+
+/**
+ * Specifies the configuration for a virtual machine operation.
+ */
+@Fluent
+public final class BulkVMConfiguration implements JsonSerializable {
+ /*
+ * Virtual Machine Profile to configure Virtual Machines - mirrors Microsoft.Compute VirtualMachine structure
+ */
+ private BulkActionVMSpec vmProperties;
+
+ /*
+ * Virtual Machine Extensions Array to be applied to the Virtual Machines.
+ */
+ private List extensions;
+
+ /*
+ * Specifies the Microsoft.Compute API version to use when creating underlying Virtual Machines.
+ */
+ private String computeApiVersion;
+
+ /*
+ * identifier for created virtual machine, if not passed it will create one from resource prefix.
+ */
+ private String name;
+
+ /**
+ * Creates an instance of BulkVMConfiguration class.
+ */
+ public BulkVMConfiguration() {
+ }
+
+ /**
+ * Get the vmProperties property: Virtual Machine Profile to configure Virtual Machines - mirrors Microsoft.Compute
+ * VirtualMachine structure.
+ *
+ * @return the vmProperties value.
+ */
+ public BulkActionVMSpec vmProperties() {
+ return this.vmProperties;
+ }
+
+ /**
+ * Set the vmProperties property: Virtual Machine Profile to configure Virtual Machines - mirrors Microsoft.Compute
+ * VirtualMachine structure.
+ *
+ * @param vmProperties the vmProperties value to set.
+ * @return the BulkVMConfiguration object itself.
+ */
+ public BulkVMConfiguration withVmProperties(BulkActionVMSpec vmProperties) {
+ this.vmProperties = vmProperties;
+ return this;
+ }
+
+ /**
+ * Get the extensions property: Virtual Machine Extensions Array to be applied to the Virtual Machines.
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.extensions;
+ }
+
+ /**
+ * Set the extensions property: Virtual Machine Extensions Array to be applied to the Virtual Machines.
+ *
+ * @param extensions the extensions value to set.
+ * @return the BulkVMConfiguration object itself.
+ */
+ public BulkVMConfiguration withExtensions(List extensions) {
+ this.extensions = extensions;
+ return this;
+ }
+
+ /**
+ * Get the computeApiVersion property: Specifies the Microsoft.Compute API version to use when creating underlying
+ * Virtual Machines.
+ *
+ * @return the computeApiVersion value.
+ */
+ public String computeApiVersion() {
+ return this.computeApiVersion;
+ }
+
+ /**
+ * Set the computeApiVersion property: Specifies the Microsoft.Compute API version to use when creating underlying
+ * Virtual Machines.
+ *
+ * @param computeApiVersion the computeApiVersion value to set.
+ * @return the BulkVMConfiguration object itself.
+ */
+ public BulkVMConfiguration withComputeApiVersion(String computeApiVersion) {
+ this.computeApiVersion = computeApiVersion;
+ return this;
+ }
+
+ /**
+ * Get the name property: identifier for created virtual machine, if not passed it will create one from resource
+ * prefix.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: identifier for created virtual machine, if not passed it will create one from resource
+ * prefix.
+ *
+ * @param name the name value to set.
+ * @return the BulkVMConfiguration object itself.
+ */
+ public BulkVMConfiguration withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("vmProperties", this.vmProperties);
+ jsonWriter.writeArrayField("extensions", this.extensions, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("computeApiVersion", this.computeApiVersion);
+ jsonWriter.writeStringField("name", this.name);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of BulkVMConfiguration from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of BulkVMConfiguration 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 BulkVMConfiguration.
+ */
+ public static BulkVMConfiguration fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ BulkVMConfiguration deserializedBulkVMConfiguration = new BulkVMConfiguration();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("vmProperties".equals(fieldName)) {
+ deserializedBulkVMConfiguration.vmProperties = BulkActionVMSpec.fromJson(reader);
+ } else if ("extensions".equals(fieldName)) {
+ List extensions
+ = reader.readArray(reader1 -> BulkActionVMExtension.fromJson(reader1));
+ deserializedBulkVMConfiguration.extensions = extensions;
+ } else if ("computeApiVersion".equals(fieldName)) {
+ deserializedBulkVMConfiguration.computeApiVersion = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedBulkVMConfiguration.name = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedBulkVMConfiguration;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CachingTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CachingTypes.java
new file mode 100644
index 000000000000..590fc0022cf3
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CachingTypes.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.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the caching requirements. Possible values are: **None,** **ReadOnly,** **ReadWrite.** The default values
+ * are: **None for Standard storage. ReadOnly for Premium storage**.
+ */
+public final class CachingTypes extends ExpandableStringEnum {
+ /**
+ * Caching type:None.
+ */
+ public static final CachingTypes NONE = fromString("None");
+
+ /**
+ * Caching type:ReadOnly.
+ */
+ public static final CachingTypes READ_ONLY = fromString("ReadOnly");
+
+ /**
+ * Caching type:ReadWrite.
+ */
+ public static final CachingTypes READ_WRITE = fromString("ReadWrite");
+
+ /**
+ * Creates a new instance of CachingTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public CachingTypes() {
+ }
+
+ /**
+ * Creates or finds a CachingTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding CachingTypes.
+ */
+ public static CachingTypes fromString(String name) {
+ return fromString(name, CachingTypes.class);
+ }
+
+ /**
+ * Gets known CachingTypes values.
+ *
+ * @return known CachingTypes values.
+ */
+ public static Collection values() {
+ return values(CachingTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsContent.java
similarity index 76%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsContent.java
index f34ede3d5957..1de627e7f110 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CancelOperationsContent.java
@@ -16,7 +16,7 @@
* This is the request to cancel running operations in scheduled actions using the operation ids.
*/
@Fluent
-public final class CancelOperationsRequest implements JsonSerializable {
+public final class CancelOperationsContent implements JsonSerializable {
/*
* The list of operation ids to cancel operations on
*/
@@ -28,9 +28,9 @@ public final class CancelOperationsRequest implements JsonSerializable operationIds() {
* Set the operationIds property: The list of operation ids to cancel operations on.
*
* @param operationIds the operationIds value to set.
- * @return the CancelOperationsRequest object itself.
+ * @return the CancelOperationsContent object itself.
*/
- public CancelOperationsRequest withOperationIds(List operationIds) {
+ public CancelOperationsContent withOperationIds(List operationIds) {
this.operationIds = operationIds;
return this;
}
@@ -66,9 +66,9 @@ public String correlationid() {
* Set the correlationid property: CorrelationId item.
*
* @param correlationid the correlationid value to set.
- * @return the CancelOperationsRequest object itself.
+ * @return the CancelOperationsContent object itself.
*/
- public CancelOperationsRequest withCorrelationid(String correlationid) {
+ public CancelOperationsContent withCorrelationid(String correlationid) {
this.correlationid = correlationid;
return this;
}
@@ -85,32 +85,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}
/**
- * Reads an instance of CancelOperationsRequest from the JsonReader.
+ * Reads an instance of CancelOperationsContent from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of CancelOperationsRequest if the JsonReader was pointing to an instance of it, or null if it
+ * @return An instance of CancelOperationsContent 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 CancelOperationsRequest.
+ * @throws IOException If an error occurs while reading the CancelOperationsContent.
*/
- public static CancelOperationsRequest fromJson(JsonReader jsonReader) throws IOException {
+ public static CancelOperationsContent fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- CancelOperationsRequest deserializedCancelOperationsRequest = new CancelOperationsRequest();
+ CancelOperationsContent deserializedCancelOperationsContent = new CancelOperationsContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("operationIds".equals(fieldName)) {
List operationIds = reader.readArray(reader1 -> reader1.getString());
- deserializedCancelOperationsRequest.operationIds = operationIds;
+ deserializedCancelOperationsContent.operationIds = operationIds;
} else if ("correlationid".equals(fieldName)) {
- deserializedCancelOperationsRequest.correlationid = reader.getString();
+ deserializedCancelOperationsContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedCancelOperationsRequest;
+ return deserializedCancelOperationsContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CapacityReservationProfile.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CapacityReservationProfile.java
new file mode 100644
index 000000000000..522dbded989e
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CapacityReservationProfile.java
@@ -0,0 +1,91 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The parameters of a capacity reservation Profile.
+ */
+@Fluent
+public final class CapacityReservationProfile implements JsonSerializable {
+ /*
+ * Specifies the capacity reservation group resource id that should be used for allocating the virtual machine
+ * provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.
+ */
+ private SubResource capacityReservationGroup;
+
+ /**
+ * Creates an instance of CapacityReservationProfile class.
+ */
+ public CapacityReservationProfile() {
+ }
+
+ /**
+ * Get the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be
+ * used for allocating the virtual machine provided enough capacity has been reserved. Please refer to
+ * https://aka.ms/CapacityReservation for more details.
+ *
+ * @return the capacityReservationGroup value.
+ */
+ public SubResource capacityReservationGroup() {
+ return this.capacityReservationGroup;
+ }
+
+ /**
+ * Set the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be
+ * used for allocating the virtual machine provided enough capacity has been reserved. Please refer to
+ * https://aka.ms/CapacityReservation for more details.
+ *
+ * @param capacityReservationGroup the capacityReservationGroup value to set.
+ * @return the CapacityReservationProfile object itself.
+ */
+ public CapacityReservationProfile withCapacityReservationGroup(SubResource capacityReservationGroup) {
+ this.capacityReservationGroup = capacityReservationGroup;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("capacityReservationGroup", this.capacityReservationGroup);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CapacityReservationProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CapacityReservationProfile 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 CapacityReservationProfile.
+ */
+ public static CapacityReservationProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CapacityReservationProfile deserializedCapacityReservationProfile = new CapacityReservationProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("capacityReservationGroup".equals(fieldName)) {
+ deserializedCapacityReservationProfile.capacityReservationGroup = SubResource.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCapacityReservationProfile;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CreateFlexResourceOperationResponse.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CreateFlexResourceOperationResponse.java
new file mode 100644
index 000000000000..3af9769b67c0
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/CreateFlexResourceOperationResponse.java
@@ -0,0 +1,49 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
+import java.util.List;
+
+/**
+ * An immutable client-side representation of CreateFlexResourceOperationResponse.
+ */
+public interface CreateFlexResourceOperationResponse {
+ /**
+ * Gets the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ String description();
+
+ /**
+ * Gets the type property: The type of resources used in the create flex request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the location property: The location of the create flex request eg westus.
+ *
+ * @return the location value.
+ */
+ String location();
+
+ /**
+ * Gets the results property: The results from the create flex request if no errors exist.
+ *
+ * @return the results value.
+ */
+ List results();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner
+ * object.
+ *
+ * @return the inner object.
+ */
+ CreateFlexResourceOperationResponseInner innerModel();
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DataDisk.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DataDisk.java
new file mode 100644
index 000000000000..795cd80053e2
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DataDisk.java
@@ -0,0 +1,459 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes a data disk.
+ */
+@Fluent
+public final class DataDisk implements JsonSerializable {
+ /*
+ * Specifies the logical unit number of the data disk. This value is used to identify data disks within the VM and
+ * therefore must be unique for each data disk attached to a VM.
+ */
+ private int lun;
+
+ /*
+ * The disk name.
+ */
+ private String name;
+
+ /*
+ * The virtual hard disk.
+ */
+ private VirtualHardDisk vhd;
+
+ /*
+ * The source user image virtual hard disk. The virtual hard disk will be copied before being attached to the
+ * virtual machine. If SourceImage is provided, the destination virtual hard drive must not exist.
+ */
+ private VirtualHardDisk image;
+
+ /*
+ * Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The defaulting behavior is:
+ * None for Standard storage. ReadOnly for Premium storage.
+ */
+ private CachingTypes caching;
+
+ /*
+ * Specifies whether writeAccelerator should be enabled or disabled on the disk.
+ */
+ private Boolean writeAcceleratorEnabled;
+
+ /*
+ * Specifies how the virtual machine disk should be created. Possible values are Attach, FromImage, Empty, Copy,
+ * Restore.
+ */
+ private DiskCreateOptionTypes createOption;
+
+ /*
+ * Specifies the size of an empty data disk in gigabytes. This element can be used to overwrite the size of the disk
+ * in a virtual machine image. The property 'diskSizeGB' is the number of bytes x 1024^3 for the disk and the value
+ * cannot be larger than 1023.
+ */
+ private Integer diskSizeGB;
+
+ /*
+ * The managed disk parameters.
+ */
+ private ManagedDiskParameters managedDisk;
+
+ /*
+ * The source resource identifier. It can be a snapshot, or disk restore point from which to create a disk.
+ */
+ private ApiEntityReference sourceResource;
+
+ /*
+ * Specifies whether the data disk is in process of detachment from the VirtualMachine/VirtualMachineScaleset.
+ */
+ private Boolean toBeDetached;
+
+ /*
+ * Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment
+ * from the virtual machine. Supported values: ForceDetach. This feature is still in preview. To force-detach a data
+ * disk update toBeDetached to 'true' along with setting detachOption: 'ForceDetach'.
+ */
+ private DiskDetachOptionTypes detachOption;
+
+ /*
+ * Specifies whether data disk should be deleted or detached upon VM deletion. Possible values are: Delete, Detach.
+ * The default value is set to Detach.
+ */
+ private DiskDeleteOptionTypes deleteOption;
+
+ /**
+ * Creates an instance of DataDisk class.
+ */
+ public DataDisk() {
+ }
+
+ /**
+ * Get the lun property: Specifies the logical unit number of the data disk. This value is used to identify data
+ * disks within the VM and therefore must be unique for each data disk attached to a VM.
+ *
+ * @return the lun value.
+ */
+ public int lun() {
+ return this.lun;
+ }
+
+ /**
+ * Set the lun property: Specifies the logical unit number of the data disk. This value is used to identify data
+ * disks within the VM and therefore must be unique for each data disk attached to a VM.
+ *
+ * @param lun the lun value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withLun(int lun) {
+ this.lun = lun;
+ return this;
+ }
+
+ /**
+ * Get the name property: The disk name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The disk name.
+ *
+ * @param name the name value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the vhd property: The virtual hard disk.
+ *
+ * @return the vhd value.
+ */
+ public VirtualHardDisk vhd() {
+ return this.vhd;
+ }
+
+ /**
+ * Set the vhd property: The virtual hard disk.
+ *
+ * @param vhd the vhd value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withVhd(VirtualHardDisk vhd) {
+ this.vhd = vhd;
+ return this;
+ }
+
+ /**
+ * Get the image property: The source user image virtual hard disk. The virtual hard disk will be copied before
+ * being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not
+ * exist.
+ *
+ * @return the image value.
+ */
+ public VirtualHardDisk image() {
+ return this.image;
+ }
+
+ /**
+ * Set the image property: The source user image virtual hard disk. The virtual hard disk will be copied before
+ * being attached to the virtual machine. If SourceImage is provided, the destination virtual hard drive must not
+ * exist.
+ *
+ * @param image the image value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withImage(VirtualHardDisk image) {
+ this.image = image;
+ return this;
+ }
+
+ /**
+ * Get the caching property: Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The
+ * defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.
+ *
+ * @return the caching value.
+ */
+ public CachingTypes caching() {
+ return this.caching;
+ }
+
+ /**
+ * Set the caching property: Specifies the caching requirements. Possible values are: None, ReadOnly, ReadWrite. The
+ * defaulting behavior is: None for Standard storage. ReadOnly for Premium storage.
+ *
+ * @param caching the caching value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withCaching(CachingTypes caching) {
+ this.caching = caching;
+ return this;
+ }
+
+ /**
+ * Get the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
+ * disk.
+ *
+ * @return the writeAcceleratorEnabled value.
+ */
+ public Boolean writeAcceleratorEnabled() {
+ return this.writeAcceleratorEnabled;
+ }
+
+ /**
+ * Set the writeAcceleratorEnabled property: Specifies whether writeAccelerator should be enabled or disabled on the
+ * disk.
+ *
+ * @param writeAcceleratorEnabled the writeAcceleratorEnabled value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withWriteAcceleratorEnabled(Boolean writeAcceleratorEnabled) {
+ this.writeAcceleratorEnabled = writeAcceleratorEnabled;
+ return this;
+ }
+
+ /**
+ * Get the createOption property: Specifies how the virtual machine disk should be created. Possible values are
+ * Attach, FromImage, Empty, Copy, Restore.
+ *
+ * @return the createOption value.
+ */
+ public DiskCreateOptionTypes createOption() {
+ return this.createOption;
+ }
+
+ /**
+ * Set the createOption property: Specifies how the virtual machine disk should be created. Possible values are
+ * Attach, FromImage, Empty, Copy, Restore.
+ *
+ * @param createOption the createOption value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withCreateOption(DiskCreateOptionTypes createOption) {
+ this.createOption = createOption;
+ return this;
+ }
+
+ /**
+ * Get the diskSizeGB property: Specifies the size of an empty data disk in gigabytes. This element can be used to
+ * overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x
+ * 1024^3 for the disk and the value cannot be larger than 1023.
+ *
+ * @return the diskSizeGB value.
+ */
+ public Integer diskSizeGB() {
+ return this.diskSizeGB;
+ }
+
+ /**
+ * Set the diskSizeGB property: Specifies the size of an empty data disk in gigabytes. This element can be used to
+ * overwrite the size of the disk in a virtual machine image. The property 'diskSizeGB' is the number of bytes x
+ * 1024^3 for the disk and the value cannot be larger than 1023.
+ *
+ * @param diskSizeGB the diskSizeGB value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withDiskSizeGB(Integer diskSizeGB) {
+ this.diskSizeGB = diskSizeGB;
+ return this;
+ }
+
+ /**
+ * Get the managedDisk property: The managed disk parameters.
+ *
+ * @return the managedDisk value.
+ */
+ public ManagedDiskParameters managedDisk() {
+ return this.managedDisk;
+ }
+
+ /**
+ * Set the managedDisk property: The managed disk parameters.
+ *
+ * @param managedDisk the managedDisk value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withManagedDisk(ManagedDiskParameters managedDisk) {
+ this.managedDisk = managedDisk;
+ return this;
+ }
+
+ /**
+ * Get the sourceResource property: The source resource identifier. It can be a snapshot, or disk restore point from
+ * which to create a disk.
+ *
+ * @return the sourceResource value.
+ */
+ public ApiEntityReference sourceResource() {
+ return this.sourceResource;
+ }
+
+ /**
+ * Set the sourceResource property: The source resource identifier. It can be a snapshot, or disk restore point from
+ * which to create a disk.
+ *
+ * @param sourceResource the sourceResource value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withSourceResource(ApiEntityReference sourceResource) {
+ this.sourceResource = sourceResource;
+ return this;
+ }
+
+ /**
+ * Get the toBeDetached property: Specifies whether the data disk is in process of detachment from the
+ * VirtualMachine/VirtualMachineScaleset.
+ *
+ * @return the toBeDetached value.
+ */
+ public Boolean toBeDetached() {
+ return this.toBeDetached;
+ }
+
+ /**
+ * Set the toBeDetached property: Specifies whether the data disk is in process of detachment from the
+ * VirtualMachine/VirtualMachineScaleset.
+ *
+ * @param toBeDetached the toBeDetached value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withToBeDetached(Boolean toBeDetached) {
+ this.toBeDetached = toBeDetached;
+ return this;
+ }
+
+ /**
+ * Get the detachOption property: Specifies the detach behavior to be used while detaching a disk or which is
+ * already in the process of detachment from the virtual machine. Supported values: ForceDetach. This feature is
+ * still in preview. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption:
+ * 'ForceDetach'.
+ *
+ * @return the detachOption value.
+ */
+ public DiskDetachOptionTypes detachOption() {
+ return this.detachOption;
+ }
+
+ /**
+ * Set the detachOption property: Specifies the detach behavior to be used while detaching a disk or which is
+ * already in the process of detachment from the virtual machine. Supported values: ForceDetach. This feature is
+ * still in preview. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption:
+ * 'ForceDetach'.
+ *
+ * @param detachOption the detachOption value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withDetachOption(DiskDetachOptionTypes detachOption) {
+ this.detachOption = detachOption;
+ return this;
+ }
+
+ /**
+ * Get the deleteOption property: Specifies whether data disk should be deleted or detached upon VM deletion.
+ * Possible values are: Delete, Detach. The default value is set to Detach.
+ *
+ * @return the deleteOption value.
+ */
+ public DiskDeleteOptionTypes deleteOption() {
+ return this.deleteOption;
+ }
+
+ /**
+ * Set the deleteOption property: Specifies whether data disk should be deleted or detached upon VM deletion.
+ * Possible values are: Delete, Detach. The default value is set to Detach.
+ *
+ * @param deleteOption the deleteOption value to set.
+ * @return the DataDisk object itself.
+ */
+ public DataDisk withDeleteOption(DiskDeleteOptionTypes deleteOption) {
+ this.deleteOption = deleteOption;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeIntField("lun", this.lun);
+ jsonWriter.writeStringField("createOption", this.createOption == null ? null : this.createOption.toString());
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeJsonField("vhd", this.vhd);
+ jsonWriter.writeJsonField("image", this.image);
+ jsonWriter.writeStringField("caching", this.caching == null ? null : this.caching.toString());
+ jsonWriter.writeBooleanField("writeAcceleratorEnabled", this.writeAcceleratorEnabled);
+ jsonWriter.writeNumberField("diskSizeGB", this.diskSizeGB);
+ jsonWriter.writeJsonField("managedDisk", this.managedDisk);
+ jsonWriter.writeJsonField("sourceResource", this.sourceResource);
+ jsonWriter.writeBooleanField("toBeDetached", this.toBeDetached);
+ jsonWriter.writeStringField("detachOption", this.detachOption == null ? null : this.detachOption.toString());
+ jsonWriter.writeStringField("deleteOption", this.deleteOption == null ? null : this.deleteOption.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DataDisk from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DataDisk 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 DataDisk.
+ */
+ public static DataDisk fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DataDisk deserializedDataDisk = new DataDisk();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("lun".equals(fieldName)) {
+ deserializedDataDisk.lun = reader.getInt();
+ } else if ("createOption".equals(fieldName)) {
+ deserializedDataDisk.createOption = DiskCreateOptionTypes.fromString(reader.getString());
+ } else if ("name".equals(fieldName)) {
+ deserializedDataDisk.name = reader.getString();
+ } else if ("vhd".equals(fieldName)) {
+ deserializedDataDisk.vhd = VirtualHardDisk.fromJson(reader);
+ } else if ("image".equals(fieldName)) {
+ deserializedDataDisk.image = VirtualHardDisk.fromJson(reader);
+ } else if ("caching".equals(fieldName)) {
+ deserializedDataDisk.caching = CachingTypes.fromString(reader.getString());
+ } else if ("writeAcceleratorEnabled".equals(fieldName)) {
+ deserializedDataDisk.writeAcceleratorEnabled = reader.getNullable(JsonReader::getBoolean);
+ } else if ("diskSizeGB".equals(fieldName)) {
+ deserializedDataDisk.diskSizeGB = reader.getNullable(JsonReader::getInt);
+ } else if ("managedDisk".equals(fieldName)) {
+ deserializedDataDisk.managedDisk = ManagedDiskParameters.fromJson(reader);
+ } else if ("sourceResource".equals(fieldName)) {
+ deserializedDataDisk.sourceResource = ApiEntityReference.fromJson(reader);
+ } else if ("toBeDetached".equals(fieldName)) {
+ deserializedDataDisk.toBeDetached = reader.getNullable(JsonReader::getBoolean);
+ } else if ("detachOption".equals(fieldName)) {
+ deserializedDataDisk.detachOption = DiskDetachOptionTypes.fromString(reader.getString());
+ } else if ("deleteOption".equals(fieldName)) {
+ deserializedDataDisk.deleteOption = DiskDeleteOptionTypes.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDataDisk;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DeleteOptions.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DeleteOptions.java
new file mode 100644
index 000000000000..c4159c02582f
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DeleteOptions.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specify what happens to the network interface when the VM is deleted.
+ */
+public final class DeleteOptions extends ExpandableStringEnum {
+ /**
+ * Delete network interface when the VM is deleted.
+ */
+ public static final DeleteOptions DELETE = fromString("Delete");
+
+ /**
+ * Detach network interface when the VM is deleted.
+ */
+ public static final DeleteOptions DETACH = fromString("Detach");
+
+ /**
+ * Creates a new instance of DeleteOptions value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DeleteOptions() {
+ }
+
+ /**
+ * Creates or finds a DeleteOptions from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DeleteOptions.
+ */
+ public static DeleteOptions fromString(String name) {
+ return fromString(name, DeleteOptions.class);
+ }
+
+ /**
+ * Gets known DeleteOptions values.
+ *
+ * @return known DeleteOptions values.
+ */
+ public static Collection values() {
+ return values(DeleteOptions.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiagnosticsProfile.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiagnosticsProfile.java
new file mode 100644
index 000000000000..3262fc2212ee
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiagnosticsProfile.java
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Specifies the boot diagnostic settings state. Minimum compute api-version: 2015-06-15.
+ */
+@Fluent
+public final class DiagnosticsProfile implements JsonSerializable {
+ /*
+ * Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM
+ * status. **NOTE**: If storageUri is being specified then ensure that the storage account is in the same region and
+ * subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a
+ * screenshot of the VM from the hypervisor.
+ */
+ private BootDiagnostics bootDiagnostics;
+
+ /**
+ * Creates an instance of DiagnosticsProfile class.
+ */
+ public DiagnosticsProfile() {
+ }
+
+ /**
+ * Get the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output
+ * and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage
+ * account is in the same region and subscription as the VM. You can easily view the output of your console log.
+ * Azure also enables you to see a screenshot of the VM from the hypervisor.
+ *
+ * @return the bootDiagnostics value.
+ */
+ public BootDiagnostics bootDiagnostics() {
+ return this.bootDiagnostics;
+ }
+
+ /**
+ * Set the bootDiagnostics property: Boot Diagnostics is a debugging feature which allows you to view Console Output
+ * and Screenshot to diagnose VM status. **NOTE**: If storageUri is being specified then ensure that the storage
+ * account is in the same region and subscription as the VM. You can easily view the output of your console log.
+ * Azure also enables you to see a screenshot of the VM from the hypervisor.
+ *
+ * @param bootDiagnostics the bootDiagnostics value to set.
+ * @return the DiagnosticsProfile object itself.
+ */
+ public DiagnosticsProfile withBootDiagnostics(BootDiagnostics bootDiagnostics) {
+ this.bootDiagnostics = bootDiagnostics;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("bootDiagnostics", this.bootDiagnostics);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiagnosticsProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiagnosticsProfile 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 DiagnosticsProfile.
+ */
+ public static DiagnosticsProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiagnosticsProfile deserializedDiagnosticsProfile = new DiagnosticsProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("bootDiagnostics".equals(fieldName)) {
+ deserializedDiagnosticsProfile.bootDiagnostics = BootDiagnostics.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiagnosticsProfile;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskOptions.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskOptions.java
new file mode 100644
index 000000000000..0c3253c6f6e2
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskOptions.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the ephemeral disk option for operating system disk.
+ */
+public final class DiffDiskOptions extends ExpandableStringEnum {
+ /**
+ * Local Ephemeral disk option: Local.
+ */
+ public static final DiffDiskOptions LOCAL = fromString("Local");
+
+ /**
+ * Creates a new instance of DiffDiskOptions value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiffDiskOptions() {
+ }
+
+ /**
+ * Creates or finds a DiffDiskOptions from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiffDiskOptions.
+ */
+ public static DiffDiskOptions fromString(String name) {
+ return fromString(name, DiffDiskOptions.class);
+ }
+
+ /**
+ * Gets known DiffDiskOptions values.
+ *
+ * @return known DiffDiskOptions values.
+ */
+ public static Collection values() {
+ return values(DiffDiskOptions.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskPlacement.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskPlacement.java
new file mode 100644
index 000000000000..dc8578158fb3
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskPlacement.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the ephemeral disk placement for operating system disk. This property can be used by user in the request to
+ * choose the location i.e, cache disk, resource disk or nvme disk space for Ephemeral OS disk provisioning. For more
+ * information on Ephemeral OS disk size requirements, please refer Ephemeral OS disk size requirements for Windows VM
+ * at https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VM at
+ * https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. Minimum api-version for
+ * NvmeDisk: 2024-03-01.
+ */
+public final class DiffDiskPlacement extends ExpandableStringEnum {
+ /**
+ * CacheDisk disk placement.
+ */
+ public static final DiffDiskPlacement CACHE_DISK = fromString("CacheDisk");
+
+ /**
+ * ResourceDisk disk placement.
+ */
+ public static final DiffDiskPlacement RESOURCE_DISK = fromString("ResourceDisk");
+
+ /**
+ * NvmeDisk disk placement.
+ */
+ public static final DiffDiskPlacement NVME_DISK = fromString("NvmeDisk");
+
+ /**
+ * Creates a new instance of DiffDiskPlacement value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiffDiskPlacement() {
+ }
+
+ /**
+ * Creates or finds a DiffDiskPlacement from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiffDiskPlacement.
+ */
+ public static DiffDiskPlacement fromString(String name) {
+ return fromString(name, DiffDiskPlacement.class);
+ }
+
+ /**
+ * Gets known DiffDiskPlacement values.
+ *
+ * @return known DiffDiskPlacement values.
+ */
+ public static Collection values() {
+ return values(DiffDiskPlacement.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskSettings.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskSettings.java
new file mode 100644
index 000000000000..ab3ac92d9d24
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiffDiskSettings.java
@@ -0,0 +1,120 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes the parameters of ephemeral disk settings that can be specified for operating system disk. Note: The
+ * ephemeral disk settings can only be specified for managed disk.
+ */
+@Fluent
+public final class DiffDiskSettings implements JsonSerializable {
+ /*
+ * Specifies the ephemeral disk settings for operating system disk.
+ */
+ private DiffDiskOptions option;
+
+ /*
+ * Specifies the ephemeral disk placement for operating system disk. Possible values are: CacheDisk, ResourceDisk,
+ * NvmeDisk. The defaulting behavior is: CacheDisk if one is configured for the VM size otherwise ResourceDisk or
+ * NvmeDisk is used. Minimum api-version for NvmeDisk: 2024-03-01.
+ */
+ private DiffDiskPlacement placement;
+
+ /**
+ * Creates an instance of DiffDiskSettings class.
+ */
+ public DiffDiskSettings() {
+ }
+
+ /**
+ * Get the option property: Specifies the ephemeral disk settings for operating system disk.
+ *
+ * @return the option value.
+ */
+ public DiffDiskOptions option() {
+ return this.option;
+ }
+
+ /**
+ * Set the option property: Specifies the ephemeral disk settings for operating system disk.
+ *
+ * @param option the option value to set.
+ * @return the DiffDiskSettings object itself.
+ */
+ public DiffDiskSettings withOption(DiffDiskOptions option) {
+ this.option = option;
+ return this;
+ }
+
+ /**
+ * Get the placement property: Specifies the ephemeral disk placement for operating system disk. Possible values
+ * are: CacheDisk, ResourceDisk, NvmeDisk. The defaulting behavior is: CacheDisk if one is configured for the VM
+ * size otherwise ResourceDisk or NvmeDisk is used. Minimum api-version for NvmeDisk: 2024-03-01.
+ *
+ * @return the placement value.
+ */
+ public DiffDiskPlacement placement() {
+ return this.placement;
+ }
+
+ /**
+ * Set the placement property: Specifies the ephemeral disk placement for operating system disk. Possible values
+ * are: CacheDisk, ResourceDisk, NvmeDisk. The defaulting behavior is: CacheDisk if one is configured for the VM
+ * size otherwise ResourceDisk or NvmeDisk is used. Minimum api-version for NvmeDisk: 2024-03-01.
+ *
+ * @param placement the placement value to set.
+ * @return the DiffDiskSettings object itself.
+ */
+ public DiffDiskSettings withPlacement(DiffDiskPlacement placement) {
+ this.placement = placement;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("option", this.option == null ? null : this.option.toString());
+ jsonWriter.writeStringField("placement", this.placement == null ? null : this.placement.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiffDiskSettings from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiffDiskSettings 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 DiffDiskSettings.
+ */
+ public static DiffDiskSettings fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiffDiskSettings deserializedDiffDiskSettings = new DiffDiskSettings();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("option".equals(fieldName)) {
+ deserializedDiffDiskSettings.option = DiffDiskOptions.fromString(reader.getString());
+ } else if ("placement".equals(fieldName)) {
+ deserializedDiffDiskSettings.placement = DiffDiskPlacement.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiffDiskSettings;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskControllerTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskControllerTypes.java
new file mode 100644
index 000000000000..b38e3af74da0
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskControllerTypes.java
@@ -0,0 +1,56 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the disk controller type configured for the VM and VirtualMachineScaleSet. This property is only supported
+ * for virtual machines whose operating system disk and VM sku supports Generation 2
+ * (https://docs.microsoft.com/en-us/azure/virtual-machines/generation-2), please check the HyperVGenerations capability
+ * returned as part of VM sku capabilities in the response of Microsoft.Compute SKUs api for the region contains V2
+ * (https://docs.microsoft.com/rest/api/compute/resourceskus/list). For more information about Disk Controller Types
+ * supported please refer to https://aka.ms/azure-diskcontrollertypes.
+ */
+public final class DiskControllerTypes extends ExpandableStringEnum {
+ /**
+ * SCSI disk controller type.
+ */
+ public static final DiskControllerTypes SCSI = fromString("SCSI");
+
+ /**
+ * NVMe disk controller type.
+ */
+ public static final DiskControllerTypes NVME = fromString("NVMe");
+
+ /**
+ * Creates a new instance of DiskControllerTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiskControllerTypes() {
+ }
+
+ /**
+ * Creates or finds a DiskControllerTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiskControllerTypes.
+ */
+ public static DiskControllerTypes fromString(String name) {
+ return fromString(name, DiskControllerTypes.class);
+ }
+
+ /**
+ * Gets known DiskControllerTypes values.
+ *
+ * @return known DiskControllerTypes values.
+ */
+ public static Collection values() {
+ return values(DiskControllerTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskCreateOptionTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskCreateOptionTypes.java
new file mode 100644
index 000000000000..f352658cdcad
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskCreateOptionTypes.java
@@ -0,0 +1,72 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies how the virtual machine disk should be created. Possible values are **Attach:** This value is used when you
+ * are using a specialized disk to create the virtual machine. **FromImage:** This value is used when you are using an
+ * image to create the virtual machine. If you are using a platform image, you should also use the imageReference
+ * element described above. If you are using a marketplace image, you should also use the plan element previously
+ * described. **Empty:** This value is used when creating an empty data disk. **Copy:** This value is used to create a
+ * data disk from a snapshot or another disk. **Restore:** This value is used to create a data disk from a disk restore
+ * point.
+ */
+public final class DiskCreateOptionTypes extends ExpandableStringEnum {
+ /**
+ * Create disk FromImage.
+ */
+ public static final DiskCreateOptionTypes FROM_IMAGE = fromString("FromImage");
+
+ /**
+ * Empty value.
+ */
+ public static final DiskCreateOptionTypes EMPTY = fromString("Empty");
+
+ /**
+ * Create disk by Attach.
+ */
+ public static final DiskCreateOptionTypes ATTACH = fromString("Attach");
+
+ /**
+ * Create disk by Copy.
+ */
+ public static final DiskCreateOptionTypes COPY = fromString("Copy");
+
+ /**
+ * Create disk by Restore.
+ */
+ public static final DiskCreateOptionTypes RESTORE = fromString("Restore");
+
+ /**
+ * Creates a new instance of DiskCreateOptionTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiskCreateOptionTypes() {
+ }
+
+ /**
+ * Creates or finds a DiskCreateOptionTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiskCreateOptionTypes.
+ */
+ public static DiskCreateOptionTypes fromString(String name) {
+ return fromString(name, DiskCreateOptionTypes.class);
+ }
+
+ /**
+ * Gets known DiskCreateOptionTypes values.
+ *
+ * @return known DiskCreateOptionTypes values.
+ */
+ public static Collection values() {
+ return values(DiskCreateOptionTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDeleteOptionTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDeleteOptionTypes.java
new file mode 100644
index 000000000000..1a714071ccfd
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDeleteOptionTypes.java
@@ -0,0 +1,54 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the behavior of the managed disk when the VM gets deleted, for example whether the managed disk is deleted
+ * or detached. Supported values are: **Delete.** If this value is used, the managed disk is deleted when VM gets
+ * deleted. **Detach.** If this value is used, the managed disk is retained after VM gets deleted. Minimum api-version:
+ * 2021-03-01.
+ */
+public final class DiskDeleteOptionTypes extends ExpandableStringEnum {
+ /**
+ * Delete the disk upon VM deletion.
+ */
+ public static final DiskDeleteOptionTypes DELETE = fromString("Delete");
+
+ /**
+ * Detach the disk upon VM deletion.
+ */
+ public static final DiskDeleteOptionTypes DETACH = fromString("Detach");
+
+ /**
+ * Creates a new instance of DiskDeleteOptionTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiskDeleteOptionTypes() {
+ }
+
+ /**
+ * Creates or finds a DiskDeleteOptionTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiskDeleteOptionTypes.
+ */
+ public static DiskDeleteOptionTypes fromString(String name) {
+ return fromString(name, DiskDeleteOptionTypes.class);
+ }
+
+ /**
+ * Gets known DiskDeleteOptionTypes values.
+ *
+ * @return known DiskDeleteOptionTypes values.
+ */
+ public static Collection values() {
+ return values(DiskDeleteOptionTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDetachOptionTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDetachOptionTypes.java
new file mode 100644
index 000000000000..e3fde217f364
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskDetachOptionTypes.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * Specifies the detach behavior to be used while detaching a disk or which is already in the process of detachment from
+ * the virtual machine. Supported values are: **ForceDetach.** detachOption: **ForceDetach** is applicable only for
+ * managed data disks. If a previous detachment attempt of the data disk did not complete due to an unexpected failure
+ * from the virtual machine and the disk is still not released then use force-detach as a last resort option to detach
+ * the disk forcibly from the VM. All writes might not have been flushed when using this detach behavior. **This feature
+ * is still in preview**. To force-detach a data disk update toBeDetached to 'true' along with setting detachOption:
+ * 'ForceDetach'.
+ */
+public final class DiskDetachOptionTypes extends ExpandableStringEnum {
+ /**
+ * ForceDetach the disk.
+ */
+ public static final DiskDetachOptionTypes FORCE_DETACH = fromString("ForceDetach");
+
+ /**
+ * Creates a new instance of DiskDetachOptionTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DiskDetachOptionTypes() {
+ }
+
+ /**
+ * Creates or finds a DiskDetachOptionTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DiskDetachOptionTypes.
+ */
+ public static DiskDetachOptionTypes fromString(String name) {
+ return fromString(name, DiskDetachOptionTypes.class);
+ }
+
+ /**
+ * Gets known DiskDetachOptionTypes values.
+ *
+ * @return known DiskDetachOptionTypes values.
+ */
+ public static Collection values() {
+ return values(DiskDetachOptionTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSetParameters.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSetParameters.java
new file mode 100644
index 000000000000..06dd0e471d71
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSetParameters.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SubResource;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes the parameter of customer managed disk encryption set resource id that can be specified for disk. **Note:**
+ * The disk encryption set resource id can only be specified for managed disk. Please refer
+ * https://aka.ms/mdssewithcmkoverview for more details.
+ */
+@Fluent
+public final class DiskEncryptionSetParameters extends SubResource {
+ /**
+ * Creates an instance of DiskEncryptionSetParameters class.
+ */
+ public DiskEncryptionSetParameters() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public DiskEncryptionSetParameters withId(String id) {
+ super.withId(id);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("id", id());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiskEncryptionSetParameters from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiskEncryptionSetParameters 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 DiskEncryptionSetParameters.
+ */
+ public static DiskEncryptionSetParameters fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiskEncryptionSetParameters deserializedDiskEncryptionSetParameters = new DiskEncryptionSetParameters();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedDiskEncryptionSetParameters.withId(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiskEncryptionSetParameters;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSettings.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSettings.java
new file mode 100644
index 000000000000..2606a03b6321
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DiskEncryptionSettings.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes a Encryption Settings for a Disk.
+ */
+@Fluent
+public final class DiskEncryptionSettings implements JsonSerializable {
+ /*
+ * Specifies the location of the disk encryption key, which is a Key Vault Secret.
+ */
+ private KeyVaultSecretReference diskEncryptionKey;
+
+ /*
+ * Specifies the location of the key encryption key in Key Vault.
+ */
+ private KeyVaultKeyReference keyEncryptionKey;
+
+ /*
+ * Specifies whether disk encryption should be enabled on the virtual machine.
+ */
+ private Boolean enabled;
+
+ /**
+ * Creates an instance of DiskEncryptionSettings class.
+ */
+ public DiskEncryptionSettings() {
+ }
+
+ /**
+ * Get the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault
+ * Secret.
+ *
+ * @return the diskEncryptionKey value.
+ */
+ public KeyVaultSecretReference diskEncryptionKey() {
+ return this.diskEncryptionKey;
+ }
+
+ /**
+ * Set the diskEncryptionKey property: Specifies the location of the disk encryption key, which is a Key Vault
+ * Secret.
+ *
+ * @param diskEncryptionKey the diskEncryptionKey value to set.
+ * @return the DiskEncryptionSettings object itself.
+ */
+ public DiskEncryptionSettings withDiskEncryptionKey(KeyVaultSecretReference diskEncryptionKey) {
+ this.diskEncryptionKey = diskEncryptionKey;
+ return this;
+ }
+
+ /**
+ * Get the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
+ *
+ * @return the keyEncryptionKey value.
+ */
+ public KeyVaultKeyReference keyEncryptionKey() {
+ return this.keyEncryptionKey;
+ }
+
+ /**
+ * Set the keyEncryptionKey property: Specifies the location of the key encryption key in Key Vault.
+ *
+ * @param keyEncryptionKey the keyEncryptionKey value to set.
+ * @return the DiskEncryptionSettings object itself.
+ */
+ public DiskEncryptionSettings withKeyEncryptionKey(KeyVaultKeyReference keyEncryptionKey) {
+ this.keyEncryptionKey = keyEncryptionKey;
+ return this;
+ }
+
+ /**
+ * Get the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
+ *
+ * @return the enabled value.
+ */
+ public Boolean enabled() {
+ return this.enabled;
+ }
+
+ /**
+ * Set the enabled property: Specifies whether disk encryption should be enabled on the virtual machine.
+ *
+ * @param enabled the enabled value to set.
+ * @return the DiskEncryptionSettings object itself.
+ */
+ public DiskEncryptionSettings withEnabled(Boolean enabled) {
+ this.enabled = enabled;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("diskEncryptionKey", this.diskEncryptionKey);
+ jsonWriter.writeJsonField("keyEncryptionKey", this.keyEncryptionKey);
+ jsonWriter.writeBooleanField("enabled", this.enabled);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DiskEncryptionSettings from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DiskEncryptionSettings 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 DiskEncryptionSettings.
+ */
+ public static DiskEncryptionSettings fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DiskEncryptionSettings deserializedDiskEncryptionSettings = new DiskEncryptionSettings();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("diskEncryptionKey".equals(fieldName)) {
+ deserializedDiskEncryptionSettings.diskEncryptionKey = KeyVaultSecretReference.fromJson(reader);
+ } else if ("keyEncryptionKey".equals(fieldName)) {
+ deserializedDiskEncryptionSettings.keyEncryptionKey = KeyVaultKeyReference.fromJson(reader);
+ } else if ("enabled".equals(fieldName)) {
+ deserializedDiskEncryptionSettings.enabled = reader.getNullable(JsonReader::getBoolean);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDiskEncryptionSettings;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DistributionStrategy.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DistributionStrategy.java
new file mode 100644
index 000000000000..ce5e89c044ce
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DistributionStrategy.java
@@ -0,0 +1,61 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The distribution strategy for zone allocation.
+ */
+public final class DistributionStrategy extends ExpandableStringEnum {
+ /**
+ * Platform attempts to place as many VMs as possible in a single zone, falls back to multiple zones if needed.
+ */
+ public static final DistributionStrategy BEST_EFFORT_SINGLE_ZONE = fromString("BestEffortSingleZone");
+
+ /**
+ * Platform uses customer-provided zone rankings to allocate VMs.
+ */
+ public static final DistributionStrategy PRIORITIZED = fromString("Prioritized");
+
+ /**
+ * Platform attempts to evenly distribute VMs across all available zones with best effort.
+ */
+ public static final DistributionStrategy BEST_EFFORT_BALANCED = fromString("BestEffortBalanced");
+
+ /**
+ * Platform must evenly distribute VMs across zones, request is rejected if exact balance cannot be achieved.
+ */
+ public static final DistributionStrategy STRICT_BALANCED = fromString("StrictBalanced");
+
+ /**
+ * Creates a new instance of DistributionStrategy value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DistributionStrategy() {
+ }
+
+ /**
+ * Creates or finds a DistributionStrategy from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DistributionStrategy.
+ */
+ public static DistributionStrategy fromString(String name) {
+ return fromString(name, DistributionStrategy.class);
+ }
+
+ /**
+ * Gets known DistributionStrategy values.
+ *
+ * @return known DistributionStrategy values.
+ */
+ public static Collection values() {
+ return values(DistributionStrategy.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DomainNameLabelScopeTypes.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DomainNameLabelScopeTypes.java
new file mode 100644
index 000000000000..3bc6eafa2ed3
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/DomainNameLabelScopeTypes.java
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The Domain name label scope.The concatenation of the hashed domain name label that generated according to the policy
+ * from domain name label scope and vm index will be the domain name labels of the PublicIPAddress resources that will
+ * be created.
+ */
+public final class DomainNameLabelScopeTypes extends ExpandableStringEnum {
+ /**
+ * TenantReuse scope type.
+ */
+ public static final DomainNameLabelScopeTypes TENANT_REUSE = fromString("TenantReuse");
+
+ /**
+ * SubscriptionReuse scope type.
+ */
+ public static final DomainNameLabelScopeTypes SUBSCRIPTION_REUSE = fromString("SubscriptionReuse");
+
+ /**
+ * ResourceGroupReuse scope type.
+ */
+ public static final DomainNameLabelScopeTypes RESOURCE_GROUP_REUSE = fromString("ResourceGroupReuse");
+
+ /**
+ * NoReuse scope type.
+ */
+ public static final DomainNameLabelScopeTypes NO_REUSE = fromString("NoReuse");
+
+ /**
+ * Creates a new instance of DomainNameLabelScopeTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public DomainNameLabelScopeTypes() {
+ }
+
+ /**
+ * Creates or finds a DomainNameLabelScopeTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding DomainNameLabelScopeTypes.
+ */
+ public static DomainNameLabelScopeTypes fromString(String name) {
+ return fromString(name, DomainNameLabelScopeTypes.class);
+ }
+
+ /**
+ * Gets known DomainNameLabelScopeTypes values.
+ *
+ * @return known DomainNameLabelScopeTypes values.
+ */
+ public static Collection values() {
+ return values(DomainNameLabelScopeTypes.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EncryptionIdentity.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EncryptionIdentity.java
new file mode 100644
index 000000000000..14cc7845ba19
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EncryptionIdentity.java
@@ -0,0 +1,87 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Specifies the Managed Identity used by ADE to get access token for keyvault operations.
+ */
+@Fluent
+public final class EncryptionIdentity implements JsonSerializable {
+ /*
+ * Specifies ARM Resource ID of one of the user identities associated with the VM.
+ */
+ private String userAssignedIdentityResourceId;
+
+ /**
+ * Creates an instance of EncryptionIdentity class.
+ */
+ public EncryptionIdentity() {
+ }
+
+ /**
+ * Get the userAssignedIdentityResourceId property: Specifies ARM Resource ID of one of the user identities
+ * associated with the VM.
+ *
+ * @return the userAssignedIdentityResourceId value.
+ */
+ public String userAssignedIdentityResourceId() {
+ return this.userAssignedIdentityResourceId;
+ }
+
+ /**
+ * Set the userAssignedIdentityResourceId property: Specifies ARM Resource ID of one of the user identities
+ * associated with the VM.
+ *
+ * @param userAssignedIdentityResourceId the userAssignedIdentityResourceId value to set.
+ * @return the EncryptionIdentity object itself.
+ */
+ public EncryptionIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId) {
+ this.userAssignedIdentityResourceId = userAssignedIdentityResourceId;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("userAssignedIdentityResourceId", this.userAssignedIdentityResourceId);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EncryptionIdentity from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EncryptionIdentity 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 EncryptionIdentity.
+ */
+ public static EncryptionIdentity fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EncryptionIdentity deserializedEncryptionIdentity = new EncryptionIdentity();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("userAssignedIdentityResourceId".equals(fieldName)) {
+ deserializedEncryptionIdentity.userAssignedIdentityResourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEncryptionIdentity;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EventGridAndResourceGraph.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EventGridAndResourceGraph.java
new file mode 100644
index 000000000000..3a973fa9504d
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/EventGridAndResourceGraph.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.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Specifies eventGridAndResourceGraph related Scheduled Event related configurations.
+ */
+@Fluent
+public final class EventGridAndResourceGraph implements JsonSerializable {
+ /*
+ * Specifies if event grid and resource graph is enabled for Scheduled event related configurations.
+ */
+ private Boolean enable;
+
+ /*
+ * Specifies the api-version to determine which Scheduled Events configuration schema version will be delivered.
+ */
+ private String scheduledEventsApiVersion;
+
+ /**
+ * Creates an instance of EventGridAndResourceGraph class.
+ */
+ public EventGridAndResourceGraph() {
+ }
+
+ /**
+ * Get the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related
+ * configurations.
+ *
+ * @return the enable value.
+ */
+ public Boolean enable() {
+ return this.enable;
+ }
+
+ /**
+ * Set the enable property: Specifies if event grid and resource graph is enabled for Scheduled event related
+ * configurations.
+ *
+ * @param enable the enable value to set.
+ * @return the EventGridAndResourceGraph object itself.
+ */
+ public EventGridAndResourceGraph withEnable(Boolean enable) {
+ this.enable = enable;
+ return this;
+ }
+
+ /**
+ * Get the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events
+ * configuration schema version will be delivered.
+ *
+ * @return the scheduledEventsApiVersion value.
+ */
+ public String scheduledEventsApiVersion() {
+ return this.scheduledEventsApiVersion;
+ }
+
+ /**
+ * Set the scheduledEventsApiVersion property: Specifies the api-version to determine which Scheduled Events
+ * configuration schema version will be delivered.
+ *
+ * @param scheduledEventsApiVersion the scheduledEventsApiVersion value to set.
+ * @return the EventGridAndResourceGraph object itself.
+ */
+ public EventGridAndResourceGraph withScheduledEventsApiVersion(String scheduledEventsApiVersion) {
+ this.scheduledEventsApiVersion = scheduledEventsApiVersion;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeBooleanField("enable", this.enable);
+ jsonWriter.writeStringField("scheduledEventsApiVersion", this.scheduledEventsApiVersion);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EventGridAndResourceGraph from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EventGridAndResourceGraph 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 EventGridAndResourceGraph.
+ */
+ public static EventGridAndResourceGraph fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EventGridAndResourceGraph deserializedEventGridAndResourceGraph = new EventGridAndResourceGraph();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("enable".equals(fieldName)) {
+ deserializedEventGridAndResourceGraph.enable = reader.getNullable(JsonReader::getBoolean);
+ } else if ("scheduledEventsApiVersion".equals(fieldName)) {
+ deserializedEventGridAndResourceGraph.scheduledEventsApiVersion = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEventGridAndResourceGraph;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateContent.java
similarity index 78%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateContent.java
index e386ab789e79..5b76e72133fc 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateContent.java
@@ -15,7 +15,7 @@
* The ExecuteCreateRequest request for create operations.
*/
@Fluent
-public final class ExecuteCreateRequest implements JsonSerializable {
+public final class ExecuteCreateContent implements JsonSerializable {
/*
* resource creation payload
*/
@@ -32,9 +32,9 @@ public final class ExecuteCreateRequest implements JsonSerializable {
- ExecuteCreateRequest deserializedExecuteCreateRequest = new ExecuteCreateRequest();
+ ExecuteCreateContent deserializedExecuteCreateContent = new ExecuteCreateContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("resourceConfigParameters".equals(fieldName)) {
- deserializedExecuteCreateRequest.resourceConfigParameters
+ deserializedExecuteCreateContent.resourceConfigParameters
= ResourceProvisionPayload.fromJson(reader);
} else if ("executionParameters".equals(fieldName)) {
- deserializedExecuteCreateRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ deserializedExecuteCreateContent.executionParameters = ExecutionParameters.fromJson(reader);
} else if ("correlationid".equals(fieldName)) {
- deserializedExecuteCreateRequest.correlationid = reader.getString();
+ deserializedExecuteCreateContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedExecuteCreateRequest;
+ return deserializedExecuteCreateContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateFlexContent.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateFlexContent.java
new file mode 100644
index 000000000000..0810b31db450
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateFlexContent.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.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The ExecuteCreateFlexRequest request for executeCreateFlex operations.
+ */
+@Fluent
+public final class ExecuteCreateFlexContent implements JsonSerializable {
+ /*
+ * Resource creation payload with flex properties
+ */
+ private ResourceProvisionFlexPayload resourceConfigParameters;
+
+ /*
+ * The execution parameters for the request
+ */
+ private ExecutionParameters executionParameters;
+
+ /*
+ * Correlationid item
+ */
+ private String correlationid;
+
+ /**
+ * Creates an instance of ExecuteCreateFlexContent class.
+ */
+ public ExecuteCreateFlexContent() {
+ }
+
+ /**
+ * Get the resourceConfigParameters property: Resource creation payload with flex properties.
+ *
+ * @return the resourceConfigParameters value.
+ */
+ public ResourceProvisionFlexPayload resourceConfigParameters() {
+ return this.resourceConfigParameters;
+ }
+
+ /**
+ * Set the resourceConfigParameters property: Resource creation payload with flex properties.
+ *
+ * @param resourceConfigParameters the resourceConfigParameters value to set.
+ * @return the ExecuteCreateFlexContent object itself.
+ */
+ public ExecuteCreateFlexContent
+ withResourceConfigParameters(ResourceProvisionFlexPayload resourceConfigParameters) {
+ this.resourceConfigParameters = resourceConfigParameters;
+ return this;
+ }
+
+ /**
+ * Get the executionParameters property: The execution parameters for the request.
+ *
+ * @return the executionParameters value.
+ */
+ public ExecutionParameters executionParameters() {
+ return this.executionParameters;
+ }
+
+ /**
+ * Set the executionParameters property: The execution parameters for the request.
+ *
+ * @param executionParameters the executionParameters value to set.
+ * @return the ExecuteCreateFlexContent object itself.
+ */
+ public ExecuteCreateFlexContent withExecutionParameters(ExecutionParameters executionParameters) {
+ this.executionParameters = executionParameters;
+ return this;
+ }
+
+ /**
+ * Get the correlationid property: Correlationid item.
+ *
+ * @return the correlationid value.
+ */
+ public String correlationid() {
+ return this.correlationid;
+ }
+
+ /**
+ * Set the correlationid property: Correlationid item.
+ *
+ * @param correlationid the correlationid value to set.
+ * @return the ExecuteCreateFlexContent object itself.
+ */
+ public ExecuteCreateFlexContent withCorrelationid(String correlationid) {
+ this.correlationid = correlationid;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("resourceConfigParameters", this.resourceConfigParameters);
+ jsonWriter.writeJsonField("executionParameters", this.executionParameters);
+ jsonWriter.writeStringField("correlationid", this.correlationid);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExecuteCreateFlexContent from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExecuteCreateFlexContent 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 ExecuteCreateFlexContent.
+ */
+ public static ExecuteCreateFlexContent fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExecuteCreateFlexContent deserializedExecuteCreateFlexContent = new ExecuteCreateFlexContent();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceConfigParameters".equals(fieldName)) {
+ deserializedExecuteCreateFlexContent.resourceConfigParameters
+ = ResourceProvisionFlexPayload.fromJson(reader);
+ } else if ("executionParameters".equals(fieldName)) {
+ deserializedExecuteCreateFlexContent.executionParameters = ExecutionParameters.fromJson(reader);
+ } else if ("correlationid".equals(fieldName)) {
+ deserializedExecuteCreateFlexContent.correlationid = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExecuteCreateFlexContent;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateContent.java
similarity index 76%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateContent.java
index 1ad9b8a8fb9f..aea3916b50cb 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeallocateContent.java
@@ -15,7 +15,7 @@
* The ExecuteDeallocateRequest request for executeDeallocate operations.
*/
@Fluent
-public final class ExecuteDeallocateRequest implements JsonSerializable {
+public final class ExecuteDeallocateContent implements JsonSerializable {
/*
* The execution parameters for the request
*/
@@ -32,9 +32,9 @@ public final class ExecuteDeallocateRequest implements JsonSerializable {
- ExecuteDeallocateRequest deserializedExecuteDeallocateRequest = new ExecuteDeallocateRequest();
+ ExecuteDeallocateContent deserializedExecuteDeallocateContent = new ExecuteDeallocateContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("executionParameters".equals(fieldName)) {
- deserializedExecuteDeallocateRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ deserializedExecuteDeallocateContent.executionParameters = ExecutionParameters.fromJson(reader);
} else if ("resources".equals(fieldName)) {
- deserializedExecuteDeallocateRequest.resources = Resources.fromJson(reader);
+ deserializedExecuteDeallocateContent.resources = Resources.fromJson(reader);
} else if ("correlationid".equals(fieldName)) {
- deserializedExecuteDeallocateRequest.correlationid = reader.getString();
+ deserializedExecuteDeallocateContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedExecuteDeallocateRequest;
+ return deserializedExecuteDeallocateContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteContent.java
similarity index 77%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteContent.java
index af539d5f6121..c536a26b06d2 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteDeleteContent.java
@@ -15,7 +15,7 @@
* The ExecuteDeleteRequest for delete VM operation.
*/
@Fluent
-public final class ExecuteDeleteRequest implements JsonSerializable {
+public final class ExecuteDeleteContent implements JsonSerializable {
/*
* The execution parameters for the request
*/
@@ -37,9 +37,9 @@ public final class ExecuteDeleteRequest implements JsonSerializable {
- ExecuteDeleteRequest deserializedExecuteDeleteRequest = new ExecuteDeleteRequest();
+ ExecuteDeleteContent deserializedExecuteDeleteContent = new ExecuteDeleteContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("executionParameters".equals(fieldName)) {
- deserializedExecuteDeleteRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ deserializedExecuteDeleteContent.executionParameters = ExecutionParameters.fromJson(reader);
} else if ("resources".equals(fieldName)) {
- deserializedExecuteDeleteRequest.resources = Resources.fromJson(reader);
+ deserializedExecuteDeleteContent.resources = Resources.fromJson(reader);
} else if ("correlationid".equals(fieldName)) {
- deserializedExecuteDeleteRequest.correlationid = reader.getString();
+ deserializedExecuteDeleteContent.correlationid = reader.getString();
} else if ("forceDeletion".equals(fieldName)) {
- deserializedExecuteDeleteRequest.forceDeletion = reader.getNullable(JsonReader::getBoolean);
+ deserializedExecuteDeleteContent.forceDeletion = reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
}
- return deserializedExecuteDeleteRequest;
+ return deserializedExecuteDeleteContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateContent.java
similarity index 76%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateContent.java
index fd5b38f2f2bc..e1ce92135815 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteHibernateContent.java
@@ -15,7 +15,7 @@
* The ExecuteHibernateRequest request for executeHibernate operations.
*/
@Fluent
-public final class ExecuteHibernateRequest implements JsonSerializable {
+public final class ExecuteHibernateContent implements JsonSerializable {
/*
* The execution parameters for the request
*/
@@ -32,9 +32,9 @@ public final class ExecuteHibernateRequest implements JsonSerializable {
- ExecuteHibernateRequest deserializedExecuteHibernateRequest = new ExecuteHibernateRequest();
+ ExecuteHibernateContent deserializedExecuteHibernateContent = new ExecuteHibernateContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("executionParameters".equals(fieldName)) {
- deserializedExecuteHibernateRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ deserializedExecuteHibernateContent.executionParameters = ExecutionParameters.fromJson(reader);
} else if ("resources".equals(fieldName)) {
- deserializedExecuteHibernateRequest.resources = Resources.fromJson(reader);
+ deserializedExecuteHibernateContent.resources = Resources.fromJson(reader);
} else if ("correlationid".equals(fieldName)) {
- deserializedExecuteHibernateRequest.correlationid = reader.getString();
+ deserializedExecuteHibernateContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedExecuteHibernateRequest;
+ return deserializedExecuteHibernateContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartContent.java
similarity index 76%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartContent.java
index 3dc64c011228..2bb97da4634b 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteStartContent.java
@@ -15,7 +15,7 @@
* The ExecuteStartRequest request for executeStart operations.
*/
@Fluent
-public final class ExecuteStartRequest implements JsonSerializable {
+public final class ExecuteStartContent implements JsonSerializable {
/*
* The execution parameters for the request
*/
@@ -32,9 +32,9 @@ public final class ExecuteStartRequest implements JsonSerializable {
- ExecuteStartRequest deserializedExecuteStartRequest = new ExecuteStartRequest();
+ ExecuteStartContent deserializedExecuteStartContent = new ExecuteStartContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("executionParameters".equals(fieldName)) {
- deserializedExecuteStartRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ deserializedExecuteStartContent.executionParameters = ExecutionParameters.fromJson(reader);
} else if ("resources".equals(fieldName)) {
- deserializedExecuteStartRequest.resources = Resources.fromJson(reader);
+ deserializedExecuteStartContent.resources = Resources.fromJson(reader);
} else if ("correlationid".equals(fieldName)) {
- deserializedExecuteStartRequest.correlationid = reader.getString();
+ deserializedExecuteStartContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedExecuteStartRequest;
+ return deserializedExecuteStartContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocation.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocation.java
new file mode 100644
index 000000000000..ecb791991b8c
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocation.java
@@ -0,0 +1,114 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The complex type of the extended location.
+ */
+@Fluent
+public final class ExtendedLocation implements JsonSerializable {
+ /*
+ * The name of the extended location.
+ */
+ private String name;
+
+ /*
+ * The type of the extended location.
+ */
+ private ExtendedLocationType type;
+
+ /**
+ * Creates an instance of ExtendedLocation class.
+ */
+ public ExtendedLocation() {
+ }
+
+ /**
+ * Get the name property: The name of the extended location.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: The name of the extended location.
+ *
+ * @param name the name value to set.
+ * @return the ExtendedLocation object itself.
+ */
+ public ExtendedLocation withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the type property: The type of the extended location.
+ *
+ * @return the type value.
+ */
+ public ExtendedLocationType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The type of the extended location.
+ *
+ * @param type the type value to set.
+ * @return the ExtendedLocation object itself.
+ */
+ public ExtendedLocation withType(ExtendedLocationType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ExtendedLocation from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExtendedLocation 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 ExtendedLocation.
+ */
+ public static ExtendedLocation fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExtendedLocation deserializedExtendedLocation = new ExtendedLocation();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedExtendedLocation.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedExtendedLocation.type = ExtendedLocationType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExtendedLocation;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocationType.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocationType.java
new file mode 100644
index 000000000000..0cc0b3dfdc5c
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExtendedLocationType.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computeschedule.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import java.util.Collection;
+
+/**
+ * The supported ExtendedLocation types.
+ */
+public final class ExtendedLocationType extends ExpandableStringEnum