diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md b/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
index 2171f64b005e..c2a1d66fefcd 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/CHANGELOG.md
@@ -1,14 +1,266 @@
# Release History
-## 1.2.0-beta.2 (Unreleased)
+## 1.2.0-beta.2 (2026-03-17)
-### 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-03-01-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.ExecuteDeleteRequest` was removed
+
+#### `models.ExecuteStartRequest` was removed
+
+#### `models.ExecuteDeallocateRequest` was removed
+
+#### `models.SubmitHibernateRequest` was removed
+
+#### `models.CancelOperationsRequest` was removed
+
+#### `models.ExecuteCreateRequest` was removed
+
+#### `models.GetOperationErrorsRequest` was removed
+
+#### `models.GetOperationStatusRequest` was removed
+
+#### `models.ExecuteHibernateRequest` was removed
+
+#### `models.SubmitStartRequest` was removed
+
+#### `models.ResourceProvisionPayload` was modified
+
+* `validate()` was removed
+
+#### `models.OccurrenceProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OccurrenceResultSummary` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionUpdateProperties` was modified
+
+* `validate()` was removed
+
+#### `models.OperationErrorDetails` was modified
+
+* `validate()` was removed
+
+#### `models.RetryPolicy` was modified
+
+* `validate()` was removed
+
+#### `models.OperationDisplay` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceOperation` was modified
+
+* `validate()` was removed
+
+#### `models.OccurrenceExtensionProperties` was modified
+
+* `validate()` was removed
+
+#### `models.DelayRequest` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActionsSchedule` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceAttachRequest` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceDetachRequest` was modified
+
+* `validate()` was removed
+
+#### `models.Resources` was modified
+
+* `validate()` was removed
+
+#### `models.CancelOccurrenceRequest` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceStatus` was modified
+
+* `validate()` was removed
+
+#### `models.ExecutionParameters` was modified
+
+* `validate()` was removed
+
+#### `models.InnerError` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceResultSummary` was modified
+
+* `validate()` was removed
+
+#### `models.ScheduledActions` was modified
+
+* `virtualMachinesSubmitStart(java.lang.String,models.SubmitStartRequest)` was removed
+* `virtualMachinesGetOperationStatus(java.lang.String,models.GetOperationStatusRequest)` was removed
+* `virtualMachinesExecuteStartWithResponse(java.lang.String,models.ExecuteStartRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesCancelOperations(java.lang.String,models.CancelOperationsRequest)` was removed
+* `virtualMachinesGetOperationErrors(java.lang.String,models.GetOperationErrorsRequest)` 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
+* `virtualMachinesSubmitStartWithResponse(java.lang.String,models.SubmitStartRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteDeallocate(java.lang.String,models.ExecuteDeallocateRequest)` was removed
+* `virtualMachinesGetOperationStatusWithResponse(java.lang.String,models.GetOperationStatusRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesGetOperationErrorsWithResponse(java.lang.String,models.GetOperationErrorsRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteDeleteWithResponse(java.lang.String,models.ExecuteDeleteRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesSubmitDeallocateWithResponse(java.lang.String,models.SubmitDeallocateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteCreate(java.lang.String,models.ExecuteCreateRequest)` was removed
+* `virtualMachinesExecuteCreateWithResponse(java.lang.String,models.ExecuteCreateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteHibernateWithResponse(java.lang.String,models.ExecuteHibernateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesExecuteDelete(java.lang.String,models.ExecuteDeleteRequest)` was removed
+* `virtualMachinesExecuteHibernate(java.lang.String,models.ExecuteHibernateRequest)` was removed
+* `virtualMachinesExecuteStart(java.lang.String,models.ExecuteStartRequest)` was removed
+* `virtualMachinesSubmitHibernateWithResponse(java.lang.String,models.SubmitHibernateRequest,com.azure.core.util.Context)` was removed
+* `virtualMachinesSubmitDeallocate(java.lang.String,models.SubmitDeallocateRequest)` was removed
+* `virtualMachinesSubmitHibernate(java.lang.String,models.SubmitHibernateRequest)` 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.ScheduledActionProperties` 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.CreateFlexResourceOperationResponse` was added
+
+* `models.ExecuteCreateContent` was added
+
+* `models.GetOperationErrorsContent` was added
+
+* `models.PriorityProfile` was added
+
+* `models.SubmitStartContent` was added
+
+* `models.ExecuteHibernateContent` was added
+
+* `models.FallbackOperationInfo` was added
+
+* `models.SubmitDeallocateContent` was added
+
+* `models.VmSizeProfile` was added
+
+* `models.GetOperationStatusContent` was added
+
+* `models.FlexProperties` was added
+
+* `models.ZoneAllocationPolicy` was added
+
+* `models.AllocationStrategy` was added
+
+* `models.ScheduledActionsExtensionProperties` was added
+
+* `models.ExecuteDeleteContent` was added
+
+* `models.PriorityType` was added
+
+* `models.ExecuteStartContent` was added
+
+* `models.CancelOperationsContent` was added
+
+* `models.ExecuteDeallocateContent` was added
+
+* `models.ResourceProvisionFlexPayload` was added
+
+* `models.ExecuteCreateFlexRequest` was added
+
+* `models.ZonePreference` was added
+
+* `models.SubmitHibernateContent` was added
+
+* `models.DistributionStrategy` was added
+
+* `models.OsType` 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
+
+* `virtualMachinesGetOperationErrorsWithResponse(java.lang.String,models.GetOperationErrorsContent,com.azure.core.util.Context)` was added
+* `virtualMachinesSubmitStartWithResponse(java.lang.String,models.SubmitStartContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDeallocate(java.lang.String,models.ExecuteDeallocateContent)` was added
+* `virtualMachinesExecuteCreateWithResponse(java.lang.String,models.ExecuteCreateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteCreateFlex(java.lang.String,models.ExecuteCreateFlexRequest)` was added
+* `virtualMachinesSubmitHibernate(java.lang.String,models.SubmitHibernateContent)` was added
+* `virtualMachinesExecuteStartWithResponse(java.lang.String,models.ExecuteStartContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteDeleteWithResponse(java.lang.String,models.ExecuteDeleteContent,com.azure.core.util.Context)` was added
+* `virtualMachinesSubmitDeallocateWithResponse(java.lang.String,models.SubmitDeallocateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteCreate(java.lang.String,models.ExecuteCreateContent)` was added
+* `virtualMachinesCancelOperationsWithResponse(java.lang.String,models.CancelOperationsContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteStart(java.lang.String,models.ExecuteStartContent)` was added
+* `virtualMachinesGetOperationStatusWithResponse(java.lang.String,models.GetOperationStatusContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteHibernate(java.lang.String,models.ExecuteHibernateContent)` was added
+* `virtualMachinesSubmitDeallocate(java.lang.String,models.SubmitDeallocateContent)` was added
+* `virtualMachinesExecuteDelete(java.lang.String,models.ExecuteDeleteContent)` was added
+* `virtualMachinesExecuteDeallocateWithResponse(java.lang.String,models.ExecuteDeallocateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesExecuteHibernateWithResponse(java.lang.String,models.ExecuteHibernateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesGetOperationErrors(java.lang.String,models.GetOperationErrorsContent)` was added
+* `virtualMachinesGetOperationStatus(java.lang.String,models.GetOperationStatusContent)` was added
+* `virtualMachinesCancelOperations(java.lang.String,models.CancelOperationsContent)` was added
+* `virtualMachinesExecuteCreateFlexWithResponse(java.lang.String,models.ExecuteCreateFlexRequest,com.azure.core.util.Context)` was added
+* `virtualMachinesSubmitHibernateWithResponse(java.lang.String,models.SubmitHibernateContent,com.azure.core.util.Context)` was added
+* `virtualMachinesSubmitStart(java.lang.String,models.SubmitStartContent)` 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..d4283caf76a8 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-03-01-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..0a684febad55 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,7 @@
*/
public final class OccurrenceExtensionListOccurrenceByVmsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/OccurrenceExtension_ListOccurrenceByVms_MaximumSet_Gen.json
*/
/**
* Sample code: OccurrenceExtension_ListOccurrenceByVms_MaximumSet.
@@ -65,7 +66,7 @@ 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("rgdhjh", com.azure.core.util.Context.NONE);
}
}
```
@@ -81,7 +82,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-03-01-preview/Occurrences_Cancel_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Cancel_MaximumSet.
@@ -91,9 +92,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 +112,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-03-01-preview/Occurrences_Delay_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Delay_MaximumSet.
@@ -121,10 +122,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 +139,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-03-01-preview/Occurrences_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_Get_MaximumSet.
@@ -148,7 +149,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 +163,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-03-01-preview/Occurrences_ListByScheduledAction_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_ListByScheduledAction_MaximumSet.
@@ -172,7 +173,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 +186,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-03-01-preview/Occurrences_ListResources_MaximumSet_Gen.json
*/
/**
* Sample code: Occurrences_ListResources_MaximumSet.
@@ -195,7 +196,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 +210,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-03-01-preview/Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List_MinimumSet.
@@ -222,7 +223,7 @@ public final class OperationsListSamples {
}
/*
- * x-ms-original-file: 2025-04-15-preview/Operations_List_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/Operations_List_MaximumSet_Gen.json
*/
/**
* Sample code: Operations_List_MaximumSet.
@@ -244,7 +245,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-03-01-preview/ScheduledActionExtension_ListByVms_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActionExtension_ListByVms_MaximumSet.
@@ -253,20 +254,7 @@ public final class ScheduledActionExtensionListByVmsSamples {
*/
public static void scheduledActionExtensionListByVmsMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActionExtensions().listByVms("sazvpabfud", com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActionExtension_ListByVms_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActionExtension_ListByVms_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionExtensionListByVmsMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActionExtensions().listByVms("sazvpabfud", com.azure.core.util.Context.NONE);
+ manager.scheduledActionExtensions().listByVms("rgdhjh", com.azure.core.util.Context.NONE);
}
}
```
@@ -286,7 +274,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-03-01-preview/ScheduledActions_AttachResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_AttachResources_MaximumSet.
@@ -296,11 +284,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("zaaoabozbhyuhejwsrennfsxowp")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true))))),
@@ -320,7 +308,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-03-01-preview/ScheduledActions_CancelNextOccurrence_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_CancelNextOccurrence_MaximumSet.
@@ -330,9 +318,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 +336,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 +353,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-03-01-preview/ScheduledActions_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_CreateOrUpdate_MaximumSet.
@@ -374,25 +363,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("hwhsvnvuwsjwu")
.withExistingResourceGroup("rgcomputeschedule")
- .withTags(mapOf("key2102", "fakeTokenPlaceholder"))
+ .withTags(mapOf("key1458", "fakeTokenPlaceholder"))
.withProperties(new ScheduledActionProperties().withResourceType(ResourceType.VIRTUAL_MACHINE)
.withActionType(ScheduledActionType.START)
- .withStartTime(OffsetDateTime.parse("2025-04-17T00:23:55.281Z"))
- .withEndTime(OffsetDateTime.parse("2025-04-17T00:23:55.286Z"))
- .withSchedule(new ScheduledActionsSchedule().withScheduledTime("19:00:00")
- .withTimeZone("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("ywgarwvwqegtdsdvv")
.withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
.withRequestedMonths(Arrays.asList(Month.JANUARY))
- .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withRequestedDaysOfTheMonth(Arrays.asList(18))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withDeadlineType(DeadlineType.UNKNOWN))
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("zaaoabozbhyuhejwsrennfsxowp")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true)))
@@ -422,7 +413,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-03-01-preview/ScheduledActions_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Delete_MaximumSet.
@@ -431,7 +422,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 +438,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-03-01-preview/ScheduledActions_DetachResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_DetachResources_MaximumSet.
@@ -457,9 +448,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 +464,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-03-01-preview/ScheduledActions_Disable_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Disable_MaximumSet.
@@ -483,7 +474,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 +487,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-03-01-preview/ScheduledActions_Enable_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Enable_MaximumSet.
@@ -506,7 +497,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 +510,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-03-01-preview/ScheduledActions_Get_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Get_MaximumSet.
@@ -529,7 +520,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 +534,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-03-01-preview/ScheduledActions_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListBySubscription_MaximumSet.
@@ -553,19 +545,6 @@ public final class ScheduledActionsListSamples {
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions().list(com.azure.core.util.Context.NONE);
}
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListBySubscription_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_ListBySubscription_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsListBySubscriptionMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions().list(com.azure.core.util.Context.NONE);
- }
}
```
@@ -577,7 +556,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-03-01-preview/ScheduledActions_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListByResourceGroup_MaximumSet.
@@ -588,19 +567,6 @@ public final class ScheduledActionsListByResourceGroupSamples {
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions().listByResourceGroup("rgcomputeschedule", com.azure.core.util.Context.NONE);
}
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_ListByResourceGroup_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_ListByResourceGroup_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsListByResourceGroupMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions().listByResourceGroup("rgcomputeschedule", com.azure.core.util.Context.NONE);
- }
}
```
@@ -612,7 +578,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-03-01-preview/ScheduledActions_ListResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_ListResources_MaximumSet.
@@ -622,7 +588,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 +608,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-03-01-preview/ScheduledActions_PatchResources_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_PatchResources_MaximumSet.
@@ -652,11 +618,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("zaaoabozbhyuhejwsrennfsxowp")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true))))),
@@ -673,7 +639,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-03-01-preview/ScheduledActions_TriggerManualOccurrence_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_TriggerManualOccurrence_MaximumSet.
@@ -683,7 +649,7 @@ public final class ScheduledActionsTriggerManualOccurrenceSamples {
public static void scheduledActionsTriggerManualOccurrenceMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .triggerManualOccurrenceWithResponse("rgcomputeschedule", "myScheduledAction",
+ .triggerManualOccurrenceWithResponse("rgcomputeschedule", "scheduled-action-01",
com.azure.core.util.Context.NONE);
}
}
@@ -699,6 +665,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 +683,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-03-01-preview/ScheduledActions_Update_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_Update_MaximumSet.
@@ -726,25 +693,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("key100", "fakeTokenPlaceholder"))
.withProperties(new ScheduledActionUpdateProperties().withResourceType(ResourceType.VIRTUAL_MACHINE)
.withActionType(ScheduledActionType.START)
- .withStartTime(OffsetDateTime.parse("2025-04-17T00:23:58.149Z"))
- .withEndTime(OffsetDateTime.parse("2025-04-17T00:23:58.149Z"))
- .withSchedule(new 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("gythvwybzwqubqtmatezbxj")
.withRequestedWeekDays(Arrays.asList(WeekDay.MONDAY))
.withRequestedMonths(Arrays.asList(Month.JANUARY))
- .withRequestedDaysOfTheMonth(Arrays.asList(15))
+ .withRequestedDaysOfTheMonth(Arrays.asList(18))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
.withDeadlineType(DeadlineType.UNKNOWN))
.withNotificationSettings(
- Arrays.asList(new NotificationProperties().withDestination("wbhryycyolvnypjxzlawwvb")
+ Arrays.asList(new NotificationProperties().withDestination("zaaoabozbhyuhejwsrennfsxowp")
.withType(NotificationType.EMAIL)
.withLanguage(Language.EN_US)
.withDisabled(true)))
@@ -769,7 +739,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,24 +747,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesCancelOperationsSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesCancelOperations_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- 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"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/ScheduledActions_VirtualMachinesCancelOperations_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesCancelOperations_MaximumSet.
@@ -804,9 +757,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("msbzqfwhqmtrxafwwh",
+ new CancelOperationsContent().withOperationIds(Arrays.asList("xgnpiititgkgsewft"))
+ .withCorrelationid("xqlibhgsczjzsbjvc"),
com.azure.core.util.Context.NONE);
}
}
@@ -815,12 +768,12 @@ 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.ExecuteCreateContent;
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.ResourceProvisionPayload;
import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
-import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -830,84 +783,106 @@ 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-03-01-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("tcvpodlxbyg",
+ new ExecuteCreateContent()
+ .withResourceConfigParameters(new ResourceProvisionPayload().withBaseProfile(mapOf())
+ .withResourceOverrides(Arrays.asList(mapOf()))
+ .withResourceCount(19)
+ .withResourcePrefix("ilgcqhoqrpwfkprxok"))
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withCorrelationid("pkm"),
+ 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.AllocationStrategy;
+import com.azure.resourcemanager.computeschedule.models.DistributionStrategy;
+import com.azure.resourcemanager.computeschedule.models.ExecuteCreateFlexRequest;
+import com.azure.resourcemanager.computeschedule.models.ExecutionParameters;
+import com.azure.resourcemanager.computeschedule.models.FlexProperties;
+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.ResourceOperationType;
+import com.azure.resourcemanager.computeschedule.models.ResourceProvisionFlexPayload;
+import com.azure.resourcemanager.computeschedule.models.RetryPolicy;
+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: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/ScheduledActions_VirtualMachinesExecuteCreateFlex_MaximumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteCreate_MinimumSet_Gen - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteCreateFlex_MaximumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteCreateMinimumSetGenGeneratedByMinimumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteCreateFlexMaximumSet(
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))
- .withExecutionParameters(new ExecutionParameters()), com.azure.core.util.Context.NONE);
+ .virtualMachinesExecuteCreateFlexWithResponse("bnadpwmpjyfduxue",
+ new ExecuteCreateFlexRequest()
+ .withResourceConfigParameters(
+ new ResourceProvisionFlexPayload().withBaseProfile(mapOf())
+ .withResourceOverrides(Arrays.asList(mapOf()))
+ .withResourceCount(24)
+ .withResourcePrefix("irskthgchddyuddpqaxlw")
+ .withFlexProperties(new FlexProperties()
+ .withVmSizeProfiles(Arrays.asList(new VmSizeProfile().withName("bmzylbvz").withRank(24),
+ new VmSizeProfile().withName("bmzylbvz").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("kmcvkimwmqwrhfznrqs").withRank(21))))))
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .withOnFailureAction(ResourceOperationType.UNKNOWN)))
+ .withCorrelationid("dnncbbqrhnrwcfqrathnexdpcryo"),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -927,9 +902,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,25 +915,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesExecuteDeallocate_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesExecuteDeallocateMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions()
- .virtualMachinesExecuteDeallocateWithResponse("qqfrkswrovcice", new ExecuteDeallocateRequest()
- .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteDeallocate_MaximumSet.
@@ -967,13 +925,15 @@ public final class ScheduledActionsVirtualMachinesExecuteDeallocateSamples {
public static void scheduledActionsVirtualMachinesExecuteDeallocateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeallocateWithResponse("ykcaptgboliddcfyaiuimj", new ExecuteDeallocateRequest()
+ .virtualMachinesExecuteDeallocateWithResponse("tobscvse", new ExecuteDeallocateContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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("ruwskrvse"), com.azure.core.util.Context.NONE);
}
}
```
@@ -981,8 +941,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 +954,26 @@ 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-03-01-preview/ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen.json
*/
/**
- * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MinimumSet_Gen - generated by [MinimumSet] rule.
+ * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet.
*
* @param manager Entry point to ComputeScheduleManager.
*/
- public static void scheduledActionsVirtualMachinesExecuteDeleteMinimumSetGenGeneratedByMinimumSetRule(
+ public static void scheduledActionsVirtualMachinesExecuteDeleteMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteDeleteWithResponse("east", new ExecuteDeleteRequest()
- .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"))),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesExecuteDelete_MaximumSet_Gen - generated by [MaximumSet] rule.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesExecuteDeleteMaximumSetGenGeneratedByMaximumSetRule(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions()
- .virtualMachinesExecuteDeleteWithResponse("east", new ExecuteDeleteRequest()
- .withExecutionParameters(new ExecutionParameters()
- .withRetryPolicy(new RetryPolicy().withRetryCount(2).withRetryWindowInMinutes(4)))
+ .virtualMachinesExecuteDeleteWithResponse("swchjs", new ExecuteDeleteContent()
+ .withExecutionParameters(
+ new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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("upxtzubhqqzhk")
+ .withForceDeletion(true), com.azure.core.util.Context.NONE);
}
}
```
@@ -1036,9 +981,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 +994,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesExecuteHibernateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesExecuteHibernate_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesExecuteHibernateMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions()
- .virtualMachinesExecuteHibernateWithResponse("xtmm", new ExecuteHibernateRequest()
- .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteHibernate_MaximumSet.
@@ -1076,13 +1004,15 @@ public final class ScheduledActionsVirtualMachinesExecuteHibernateSamples {
public static void scheduledActionsVirtualMachinesExecuteHibernateMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteHibernateWithResponse("gztd", new ExecuteHibernateRequest()
+ .virtualMachinesExecuteHibernateWithResponse("zydcprtgybcyilgugfwtfp", new ExecuteHibernateContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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("miqcvaudnngdedocspkthnoo"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1090,9 +1020,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 +1033,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-03-01-preview/ScheduledActions_VirtualMachinesExecuteStart_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesExecuteStart_MaximumSet.
@@ -1112,31 +1043,15 @@ public final class ScheduledActionsVirtualMachinesExecuteStartSamples {
public static void scheduledActionsVirtualMachinesExecuteStartMaximumSet(
com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
manager.scheduledActions()
- .virtualMachinesExecuteStartWithResponse("qk", new ExecuteStartRequest()
+ .virtualMachinesExecuteStartWithResponse("vpcshwavxibrshqepqktfyu", new ExecuteStartContent()
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesExecuteStart_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesExecuteStart_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesExecuteStartMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions()
- .virtualMachinesExecuteStartWithResponse("fbdewllahrteoavajbomjc", new ExecuteStartRequest()
- .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/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("fmjvelcuicsoqykbyercnrkda"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1144,7 +1059,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 +1067,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-03-01-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("hvevnodfnj",
+ new GetOperationErrorsContent().withOperationIds(Arrays.asList("enrmeatzaw")),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationErrors_MinimumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-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("vkkri",
+ new GetOperationErrorsContent().withOperationIds(Arrays.asList("enrmeatzaw")),
com.azure.core.util.Context.NONE);
}
}
@@ -1188,7 +1103,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 +1111,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-03-01-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesGetOperationStatus_MaximumSet.
@@ -1206,26 +1121,9 @@ 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"),
- com.azure.core.util.Context.NONE);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesGetOperationStatus_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesGetOperationStatusMinimumSet(
- com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager) {
- manager.scheduledActions()
- .virtualMachinesGetOperationStatusWithResponse("ykvvjfoopmkwznctgaiblzvea",
- new GetOperationStatusRequest().withOperationIds(Arrays.asList("duhqnwosjzexcfwfhryvy"))
- .withCorrelationid("b211f086-4b91-4686-a453-2f5c012e4d80"),
+ .virtualMachinesGetOperationStatusWithResponse("gcbtdawfspg",
+ new GetOperationStatusContent().withOperationIds(Arrays.asList("ehesndkmbcncsvkqvxwkbmidmaxhx"))
+ .withCorrelationid("hzpmcjplnbokebrbxrtuvxpp"),
com.azure.core.util.Context.NONE);
}
}
@@ -1237,10 +1135,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 +1148,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-03-01-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitDeallocate_MaximumSet.
@@ -1259,37 +1158,20 @@ 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("wtkfymadciksjsvamowmbiqdltdzw", new SubmitDeallocateContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("ehbjytlhnykfkjxujca")
+ .withTimeZone("feiohhavpmmjrf")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesSubmitDeallocate_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesSubmitDeallocateMinimumSet(
- 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))
- .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/11111111-1111-1111-1111-111111111111/resourceGroups/rgcomputeschedule/providers/Microsoft.Compute/virtualMachines/vm1")))
+ .withCorrelationid("rsi"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1300,10 +1182,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 +1195,7 @@ import java.util.Arrays;
*/
public final class ScheduledActionsVirtualMachinesSubmitHibernateSamples {
/*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesSubmitHibernate_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesSubmitHibernateMinimumSet(
- 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))
- .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json
+ * x-ms-original-file: 2026-03-01-preview/ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitHibernate_MaximumSet.
@@ -1343,16 +1205,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("aoewv", new SubmitHibernateContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("ehbjytlhnykfkjxujca")
+ .withTimeZone("feiohhavpmmjrf")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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("lgpkqjojane"), com.azure.core.util.Context.NONE);
}
}
```
@@ -1363,10 +1229,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 +1242,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-03-01-preview/ScheduledActions_VirtualMachinesSubmitStart_MaximumSet_Gen.json
*/
/**
* Sample code: ScheduledActions_VirtualMachinesSubmitStart_MaximumSet.
@@ -1385,37 +1252,20 @@ 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("cabm", new SubmitStartContent()
+ .withSchedule(new Schedule().withDeadline(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withDeadLine(OffsetDateTime.parse("2026-03-12T02:39:44.444Z"))
+ .withTimezone("ehbjytlhnykfkjxujca")
+ .withTimeZone("feiohhavpmmjrf")
.withDeadlineType(DeadlineType.UNKNOWN))
.withExecutionParameters(
new ExecutionParameters().withOptimizationPreference(OptimizationPreference.COST)
- .withRetryPolicy(new RetryPolicy().withRetryCount(17).withRetryWindowInMinutes(29)))
- .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);
- }
-
- /*
- * x-ms-original-file: 2025-04-15-preview/ScheduledActions_VirtualMachinesSubmitStart_MinimumSet_Gen.json
- */
- /**
- * Sample code: ScheduledActions_VirtualMachinesSubmitStart_MinimumSet.
- *
- * @param manager Entry point to ComputeScheduleManager.
- */
- public static void scheduledActionsVirtualMachinesSubmitStartMinimumSet(
- 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))
- .withExecutionParameters(new ExecutionParameters())
+ .withRetryPolicy(new RetryPolicy().withRetryCount(19)
+ .withRetryWindowInMinutes(3)
+ .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("ttlsvgmsykwowrajtmnztcm"), 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..82da062c6c8a 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-03-01-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..a0a4a7924cdb 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.ExecuteCreateFlexRequest;
+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, ExecuteCreateFlexRequest 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,
+ ExecuteCreateFlexRequest 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..28c363fadd9f 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-03-01-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..7fe70dc656e3 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.ExecuteCreateFlexRequest;
+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") ExecuteCreateFlexRequest 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") ExecuteCreateFlexRequest 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, ExecuteCreateFlexRequest 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, ExecuteCreateFlexRequest 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, ExecuteCreateFlexRequest 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,
+ ExecuteCreateFlexRequest 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..031273783cbb 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.ExecuteCreateFlexRequest;
+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, ExecuteCreateFlexRequest 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,
+ ExecuteCreateFlexRequest 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/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/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/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/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/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/ExecuteCreateFlexRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateFlexRequest.java
new file mode 100644
index 000000000000..fc70c6a83800
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ExecuteCreateFlexRequest.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 ExecuteCreateFlexRequest 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 ExecuteCreateFlexRequest class.
+ */
+ public ExecuteCreateFlexRequest() {
+ }
+
+ /**
+ * 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 ExecuteCreateFlexRequest object itself.
+ */
+ public ExecuteCreateFlexRequest
+ 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 ExecuteCreateFlexRequest object itself.
+ */
+ public ExecuteCreateFlexRequest 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 ExecuteCreateFlexRequest object itself.
+ */
+ public ExecuteCreateFlexRequest 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 ExecuteCreateFlexRequest from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ExecuteCreateFlexRequest 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 ExecuteCreateFlexRequest.
+ */
+ public static ExecuteCreateFlexRequest fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ExecuteCreateFlexRequest deserializedExecuteCreateFlexRequest = new ExecuteCreateFlexRequest();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("resourceConfigParameters".equals(fieldName)) {
+ deserializedExecuteCreateFlexRequest.resourceConfigParameters
+ = ResourceProvisionFlexPayload.fromJson(reader);
+ } else if ("executionParameters".equals(fieldName)) {
+ deserializedExecuteCreateFlexRequest.executionParameters = ExecutionParameters.fromJson(reader);
+ } else if ("correlationid".equals(fieldName)) {
+ deserializedExecuteCreateFlexRequest.correlationid = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedExecuteCreateFlexRequest;
+ });
+ }
+}
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/FallbackOperationInfo.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/FallbackOperationInfo.java
new file mode 100644
index 000000000000..2bec923e4ef4
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/FallbackOperationInfo.java
@@ -0,0 +1,109 @@
+// 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.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * Describes the fallback operation that was performed.
+ */
+@Immutable
+public final class FallbackOperationInfo implements JsonSerializable {
+ /*
+ * The last operation type that was performed as a fallback
+ */
+ private ResourceOperationType lastOpType;
+
+ /*
+ * The status of the fallback operation
+ */
+ private String status;
+
+ /*
+ * The error code if the fallback operation failed
+ */
+ private ResourceOperationError error;
+
+ /**
+ * Creates an instance of FallbackOperationInfo class.
+ */
+ private FallbackOperationInfo() {
+ }
+
+ /**
+ * Get the lastOpType property: The last operation type that was performed as a fallback.
+ *
+ * @return the lastOpType value.
+ */
+ public ResourceOperationType lastOpType() {
+ return this.lastOpType;
+ }
+
+ /**
+ * Get the status property: The status of the fallback operation.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the error property: The error code if the fallback operation failed.
+ *
+ * @return the error value.
+ */
+ public ResourceOperationError error() {
+ return this.error;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("lastOpType", this.lastOpType == null ? null : this.lastOpType.toString());
+ jsonWriter.writeStringField("status", this.status);
+ jsonWriter.writeJsonField("error", this.error);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FallbackOperationInfo from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FallbackOperationInfo 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 FallbackOperationInfo.
+ */
+ public static FallbackOperationInfo fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FallbackOperationInfo deserializedFallbackOperationInfo = new FallbackOperationInfo();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("lastOpType".equals(fieldName)) {
+ deserializedFallbackOperationInfo.lastOpType = ResourceOperationType.fromString(reader.getString());
+ } else if ("status".equals(fieldName)) {
+ deserializedFallbackOperationInfo.status = reader.getString();
+ } else if ("error".equals(fieldName)) {
+ deserializedFallbackOperationInfo.error = ResourceOperationError.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFallbackOperationInfo;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/FlexProperties.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/FlexProperties.java
new file mode 100644
index 000000000000..4b1cec8ee886
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/FlexProperties.java
@@ -0,0 +1,173 @@
+// 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;
+
+/**
+ * The flex properties for flexible VM creation.
+ */
+@Fluent
+public final class FlexProperties implements JsonSerializable {
+ /*
+ * The list of VM size profiles to use for flex creation
+ */
+ private List vmSizeProfiles;
+
+ /*
+ * The operating system type for the VMs
+ */
+ private OsType osType;
+
+ /*
+ * The priority profile for VM allocation
+ */
+ private PriorityProfile priorityProfile;
+
+ /*
+ * The zone allocation policy for distributing VMs across availability zones
+ */
+ private ZoneAllocationPolicy zoneAllocationPolicy;
+
+ /**
+ * Creates an instance of FlexProperties class.
+ */
+ public FlexProperties() {
+ }
+
+ /**
+ * Get the vmSizeProfiles property: The list of VM size profiles to use for flex creation.
+ *
+ * @return the vmSizeProfiles value.
+ */
+ public List vmSizeProfiles() {
+ return this.vmSizeProfiles;
+ }
+
+ /**
+ * Set the vmSizeProfiles property: The list of VM size profiles to use for flex creation.
+ *
+ * @param vmSizeProfiles the vmSizeProfiles value to set.
+ * @return the FlexProperties object itself.
+ */
+ public FlexProperties withVmSizeProfiles(List vmSizeProfiles) {
+ this.vmSizeProfiles = vmSizeProfiles;
+ return this;
+ }
+
+ /**
+ * Get the osType property: The operating system type for the VMs.
+ *
+ * @return the osType value.
+ */
+ public OsType osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The operating system type for the VMs.
+ *
+ * @param osType the osType value to set.
+ * @return the FlexProperties object itself.
+ */
+ public FlexProperties withOsType(OsType osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the priorityProfile property: The priority profile for VM allocation.
+ *
+ * @return the priorityProfile value.
+ */
+ public PriorityProfile priorityProfile() {
+ return this.priorityProfile;
+ }
+
+ /**
+ * Set the priorityProfile property: The priority profile for VM allocation.
+ *
+ * @param priorityProfile the priorityProfile value to set.
+ * @return the FlexProperties object itself.
+ */
+ public FlexProperties withPriorityProfile(PriorityProfile priorityProfile) {
+ this.priorityProfile = priorityProfile;
+ return this;
+ }
+
+ /**
+ * Get the zoneAllocationPolicy property: The zone allocation policy for distributing VMs across availability zones.
+ *
+ * @return the zoneAllocationPolicy value.
+ */
+ public ZoneAllocationPolicy zoneAllocationPolicy() {
+ return this.zoneAllocationPolicy;
+ }
+
+ /**
+ * Set the zoneAllocationPolicy property: The zone allocation policy for distributing VMs across availability zones.
+ *
+ * @param zoneAllocationPolicy the zoneAllocationPolicy value to set.
+ * @return the FlexProperties object itself.
+ */
+ public FlexProperties withZoneAllocationPolicy(ZoneAllocationPolicy zoneAllocationPolicy) {
+ this.zoneAllocationPolicy = zoneAllocationPolicy;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("vmSizeProfiles", this.vmSizeProfiles,
+ (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString());
+ jsonWriter.writeJsonField("priorityProfile", this.priorityProfile);
+ jsonWriter.writeJsonField("zoneAllocationPolicy", this.zoneAllocationPolicy);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FlexProperties from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FlexProperties 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 FlexProperties.
+ */
+ public static FlexProperties fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FlexProperties deserializedFlexProperties = new FlexProperties();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("vmSizeProfiles".equals(fieldName)) {
+ List vmSizeProfiles = reader.readArray(reader1 -> VmSizeProfile.fromJson(reader1));
+ deserializedFlexProperties.vmSizeProfiles = vmSizeProfiles;
+ } else if ("osType".equals(fieldName)) {
+ deserializedFlexProperties.osType = OsType.fromString(reader.getString());
+ } else if ("priorityProfile".equals(fieldName)) {
+ deserializedFlexProperties.priorityProfile = PriorityProfile.fromJson(reader);
+ } else if ("zoneAllocationPolicy".equals(fieldName)) {
+ deserializedFlexProperties.zoneAllocationPolicy = ZoneAllocationPolicy.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFlexProperties;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsContent.java
similarity index 75%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsContent.java
index 39006f132b22..8003842a1e0a 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationErrorsContent.java
@@ -16,16 +16,16 @@
* This is the request to get errors per vm operations.
*/
@Fluent
-public final class GetOperationErrorsRequest implements JsonSerializable {
+public final class GetOperationErrorsContent implements JsonSerializable {
/*
* The list of operation ids to query errors of
*/
private List operationIds;
/**
- * Creates an instance of GetOperationErrorsRequest class.
+ * Creates an instance of GetOperationErrorsContent class.
*/
- public GetOperationErrorsRequest() {
+ public GetOperationErrorsContent() {
}
/**
@@ -41,9 +41,9 @@ public List operationIds() {
* Set the operationIds property: The list of operation ids to query errors of.
*
* @param operationIds the operationIds value to set.
- * @return the GetOperationErrorsRequest object itself.
+ * @return the GetOperationErrorsContent object itself.
*/
- public GetOperationErrorsRequest withOperationIds(List operationIds) {
+ public GetOperationErrorsContent withOperationIds(List operationIds) {
this.operationIds = operationIds;
return this;
}
@@ -59,30 +59,30 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}
/**
- * Reads an instance of GetOperationErrorsRequest from the JsonReader.
+ * Reads an instance of GetOperationErrorsContent from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of GetOperationErrorsRequest if the JsonReader was pointing to an instance of it, or null if
+ * @return An instance of GetOperationErrorsContent 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 GetOperationErrorsRequest.
+ * @throws IOException If an error occurs while reading the GetOperationErrorsContent.
*/
- public static GetOperationErrorsRequest fromJson(JsonReader jsonReader) throws IOException {
+ public static GetOperationErrorsContent fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- GetOperationErrorsRequest deserializedGetOperationErrorsRequest = new GetOperationErrorsRequest();
+ GetOperationErrorsContent deserializedGetOperationErrorsContent = new GetOperationErrorsContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("operationIds".equals(fieldName)) {
List operationIds = reader.readArray(reader1 -> reader1.getString());
- deserializedGetOperationErrorsRequest.operationIds = operationIds;
+ deserializedGetOperationErrorsContent.operationIds = operationIds;
} else {
reader.skipChildren();
}
}
- return deserializedGetOperationErrorsRequest;
+ return deserializedGetOperationErrorsContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusRequest.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusContent.java
similarity index 75%
rename from sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusRequest.java
rename to sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusContent.java
index 7b1d2a40f64d..225d9a3bd2bf 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusRequest.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/GetOperationStatusContent.java
@@ -16,7 +16,7 @@
* This is the request to get operation status using operationids.
*/
@Fluent
-public final class GetOperationStatusRequest implements JsonSerializable {
+public final class GetOperationStatusContent implements JsonSerializable {
/*
* The list of operation ids to get the status of
*/
@@ -28,9 +28,9 @@ public final class GetOperationStatusRequest implements JsonSerializable operationIds() {
* Set the operationIds property: The list of operation ids to get the status of.
*
* @param operationIds the operationIds value to set.
- * @return the GetOperationStatusRequest object itself.
+ * @return the GetOperationStatusContent object itself.
*/
- public GetOperationStatusRequest withOperationIds(List operationIds) {
+ public GetOperationStatusContent 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 GetOperationStatusRequest object itself.
+ * @return the GetOperationStatusContent object itself.
*/
- public GetOperationStatusRequest withCorrelationid(String correlationid) {
+ public GetOperationStatusContent withCorrelationid(String correlationid) {
this.correlationid = correlationid;
return this;
}
@@ -85,32 +85,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
}
/**
- * Reads an instance of GetOperationStatusRequest from the JsonReader.
+ * Reads an instance of GetOperationStatusContent from the JsonReader.
*
* @param jsonReader The JsonReader being read.
- * @return An instance of GetOperationStatusRequest if the JsonReader was pointing to an instance of it, or null if
+ * @return An instance of GetOperationStatusContent 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 GetOperationStatusRequest.
+ * @throws IOException If an error occurs while reading the GetOperationStatusContent.
*/
- public static GetOperationStatusRequest fromJson(JsonReader jsonReader) throws IOException {
+ public static GetOperationStatusContent fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
- GetOperationStatusRequest deserializedGetOperationStatusRequest = new GetOperationStatusRequest();
+ GetOperationStatusContent deserializedGetOperationStatusContent = new GetOperationStatusContent();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("operationIds".equals(fieldName)) {
List operationIds = reader.readArray(reader1 -> reader1.getString());
- deserializedGetOperationStatusRequest.operationIds = operationIds;
+ deserializedGetOperationStatusContent.operationIds = operationIds;
} else if ("correlationid".equals(fieldName)) {
- deserializedGetOperationStatusRequest.correlationid = reader.getString();
+ deserializedGetOperationStatusContent.correlationid = reader.getString();
} else {
reader.skipChildren();
}
}
- return deserializedGetOperationStatusRequest;
+ return deserializedGetOperationStatusContent;
});
}
}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/OsType.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/OsType.java
new file mode 100644
index 000000000000..6fd682cef751
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/OsType.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 operating system types for flex VM creation.
+ */
+public final class OsType extends ExpandableStringEnum {
+ /**
+ * Windows operating system.
+ */
+ public static final OsType WINDOWS = fromString("Windows");
+
+ /**
+ * Linux operating system.
+ */
+ public static final OsType LINUX = fromString("Linux");
+
+ /**
+ * Creates a new instance of OsType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public OsType() {
+ }
+
+ /**
+ * Creates or finds a OsType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding OsType.
+ */
+ public static OsType fromString(String name) {
+ return fromString(name, OsType.class);
+ }
+
+ /**
+ * Gets known OsType values.
+ *
+ * @return known OsType values.
+ */
+ public static Collection values() {
+ return values(OsType.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityProfile.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityProfile.java
new file mode 100644
index 000000000000..52803cf537b1
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityProfile.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 priority profile for flex VM creation.
+ */
+@Fluent
+public final class PriorityProfile implements JsonSerializable {
+ /*
+ * The priority type for VM allocation
+ */
+ private PriorityType type;
+
+ /*
+ * The allocation strategy for VM size selection
+ */
+ private AllocationStrategy allocationStrategy;
+
+ /**
+ * Creates an instance of PriorityProfile class.
+ */
+ public PriorityProfile() {
+ }
+
+ /**
+ * Get the type property: The priority type for VM allocation.
+ *
+ * @return the type value.
+ */
+ public PriorityType type() {
+ return this.type;
+ }
+
+ /**
+ * Set the type property: The priority type for VM allocation.
+ *
+ * @param type the type value to set.
+ * @return the PriorityProfile object itself.
+ */
+ public PriorityProfile withType(PriorityType type) {
+ this.type = type;
+ return this;
+ }
+
+ /**
+ * Get the allocationStrategy property: The allocation strategy for VM size selection.
+ *
+ * @return the allocationStrategy value.
+ */
+ public AllocationStrategy allocationStrategy() {
+ return this.allocationStrategy;
+ }
+
+ /**
+ * Set the allocationStrategy property: The allocation strategy for VM size selection.
+ *
+ * @param allocationStrategy the allocationStrategy value to set.
+ * @return the PriorityProfile object itself.
+ */
+ public PriorityProfile withAllocationStrategy(AllocationStrategy allocationStrategy) {
+ this.allocationStrategy = allocationStrategy;
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString());
+ jsonWriter.writeStringField("allocationStrategy",
+ this.allocationStrategy == null ? null : this.allocationStrategy.toString());
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PriorityProfile from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PriorityProfile 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 PriorityProfile.
+ */
+ public static PriorityProfile fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PriorityProfile deserializedPriorityProfile = new PriorityProfile();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("type".equals(fieldName)) {
+ deserializedPriorityProfile.type = PriorityType.fromString(reader.getString());
+ } else if ("allocationStrategy".equals(fieldName)) {
+ deserializedPriorityProfile.allocationStrategy = AllocationStrategy.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPriorityProfile;
+ });
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityType.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityType.java
new file mode 100644
index 000000000000..8c0bd0109b40
--- /dev/null
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/PriorityType.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 priority type for VM allocation.
+ */
+public final class PriorityType extends ExpandableStringEnum {
+ /**
+ * Regular priority VMs.
+ */
+ public static final PriorityType REGULAR = fromString("Regular");
+
+ /**
+ * Spot priority VMs.
+ */
+ public static final PriorityType SPOT = fromString("Spot");
+
+ /**
+ * Creates a new instance of PriorityType value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public PriorityType() {
+ }
+
+ /**
+ * Creates or finds a PriorityType from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding PriorityType.
+ */
+ public static PriorityType fromString(String name) {
+ return fromString(name, PriorityType.class);
+ }
+
+ /**
+ * Gets known PriorityType values.
+ *
+ * @return known PriorityType values.
+ */
+ public static Collection values() {
+ return values(PriorityType.class);
+ }
+}
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationDetails.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationDetails.java
index 53b9fbf1d385..2b24ebb8eac6 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationDetails.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationDetails.java
@@ -69,6 +69,11 @@ public final class ResourceOperationDetails implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
diff --git a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationType.java b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationType.java
index 53bfac62f4ce..e4fe9da5a924 100644
--- a/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationType.java
+++ b/sdk/computeschedule/azure-resourcemanager-computeschedule/src/main/java/com/azure/resourcemanager/computeschedule/models/ResourceOperationType.java
@@ -31,6 +31,16 @@ public final class ResourceOperationType extends ExpandableStringEnum {
+ /*
+ * JSON object that contains VM properties that are common across all VMs in this batch
+ */
+ private Map baseProfile;
+
+ /*
+ * JSON array that contains VM properties that should be overridden for each VM in the batch
+ */
+ private List