diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md b/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md
index d8d0a6b22065..d7ab0c9bf7ae 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/CHANGELOG.md
@@ -1,14 +1,159 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-12-18)
-### Features Added
+- Azure Resource Manager SCVMM client library for Java. This package contains Microsoft Azure SDK for SCVMM Management SDK. The Microsoft.ScVmm Rest API spec. 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
+#### `ScvmmManager$Configurable` was removed
+
+#### `models.InventoryItemListResult` was removed
+
+#### `models.VmInstanceHybridIdentityMetadataListResult` was removed
+
+#### `models.VirtualMachineTemplateListResult` was removed
+
+#### `models.VirtualNetworkListResult` was removed
+
+#### `models.AvailabilitySetListResult` was removed
+
+#### `models.OperationListResult` was removed
+
+#### `models.VmmServerListResult` was removed
+
+#### `models.CloudListResult` was removed
+
+#### `ScvmmManager` was removed
+
+#### `models.VirtualMachineInstanceUpdateProperties` was removed
+
+#### `models.VirtualMachineInstanceListResult` was removed
+
+#### `models.GuestAgentListResult` was removed
+
+#### `models.VirtualNetworkInventoryItem` was modified
+
+* `managedResourceId()` was removed
+* `provisioningState()` was removed
+* `uuid()` was removed
+* `inventoryItemName()` was removed
+
+#### `models.VirtualMachineTemplateInventoryItem` was modified
+
+* `uuid()` was removed
+* `inventoryItemName()` was removed
+* `managedResourceId()` was removed
+* `provisioningState()` was removed
+
+#### `models.CloudInventoryItem` was modified
+
+* `inventoryItemName()` was removed
+* `uuid()` was removed
+* `managedResourceId()` was removed
+* `provisioningState()` was removed
+
+#### `models.VirtualMachineInstances` was modified
+
+* `stop(java.lang.String,models.StopVirtualMachineOptions)` was removed
+
+#### `models.VirtualMachineInventoryItem` was modified
+
+* `inventoryItemName()` was removed
+* `managedResourceId()` was removed
+* `provisioningState()` was removed
+* `uuid()` was removed
+
+#### `models.Checkpoint` was modified
+
+* `withDescription(java.lang.String)` was removed
+* `withName(java.lang.String)` was removed
+* `withCheckpointId(java.lang.String)` was removed
+* `withParentCheckpointId(java.lang.String)` was removed
+
+#### `models.StorageQosPolicy` was modified
+
+* `withIopsMaximum(java.lang.Long)` was removed
+* `withId(java.lang.String)` was removed
+* `withIopsMinimum(java.lang.Long)` was removed
+* `withName(java.lang.String)` was removed
+* `withPolicyId(java.lang.String)` was removed
+* `withBandwidthLimit(java.lang.Long)` was removed
+
+#### `models.VmInstanceHybridIdentityMetadataProperties` was modified
+
+* `withResourceUid(java.lang.String)` was removed
+* `withPublicKey(java.lang.String)` was removed
+
+#### `models.VirtualMachineInstanceUpdate` was modified
+
+* `properties()` was removed
+* `withProperties(models.VirtualMachineInstanceUpdateProperties)` was removed
+
+### Features Added
+
+* `implementation.models.VirtualMachineInstanceListResult` was added
+
+* `implementation.models.VmmServerListResult` was added
+
+* `SCVMMManager` was added
+
+* `SCVMMManager$Configurable` was added
+
+* `implementation.models.VirtualNetworkListResult` was added
+
+* `implementation.models.InventoryItemListResult` was added
+
+* `implementation.models.GuestAgentListResult` was added
+
+* `implementation.models.VirtualMachineTemplateListResult` was added
+
+* `implementation.models.AvailabilitySetListResult` was added
+
+* `implementation.models.VmInstanceHybridIdentityMetadataListResult` was added
+
+* `implementation.models.OperationListResult` was added
+
+* `implementation.models.CloudListResult` was added
+
+#### `models.GuestAgentProperties` was modified
+
+* `privateLinkScopeResourceId()` was added
+* `withPrivateLinkScopeResourceId(java.lang.String)` was added
+
+#### `models.VirtualMachineInstances` was modified
+
+* `stop(java.lang.String)` was added
+
+#### `models.OsProfileForVmInstance` was modified
+
+* `withDomainPassword(java.lang.String)` was added
+* `runOnceCommands()` was added
+* `productKey()` was added
+* `withWorkgroup(java.lang.String)` was added
+* `timezone()` was added
+* `domainUsername()` was added
+* `domainName()` was added
+* `withDomainName(java.lang.String)` was added
+* `withTimezone(java.lang.Integer)` was added
+* `withProductKey(java.lang.String)` was added
+* `workgroup()` was added
+* `withRunOnceCommands(java.lang.String)` was added
+* `withDomainUsername(java.lang.String)` was added
+* `domainPassword()` was added
+
+#### `models.VirtualMachineInstanceUpdate` was modified
-### Other Changes
+* `networkProfile()` was added
+* `withAvailabilitySets(java.util.List)` was added
+* `withNetworkProfile(models.NetworkProfileUpdate)` was added
+* `infrastructureProfile()` was added
+* `storageProfile()` was added
+* `withHardwareProfile(models.HardwareProfileUpdate)` was added
+* `availabilitySets()` was added
+* `hardwareProfile()` was added
+* `withInfrastructureProfile(models.InfrastructureProfileUpdate)` was added
+* `withStorageProfile(models.StorageProfileUpdate)` was added
## 1.0.0 (2024-06-26)
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/README.md b/sdk/scvmm/azure-resourcemanager-scvmm/README.md
index d95947c8ea27..40fb8a44590d 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/README.md
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/README.md
@@ -1,8 +1,8 @@
-# Azure Resource Manager Scvmm client library for Java
+# Azure Resource Manager SCVMM client library for Java
-Azure Resource Manager Scvmm client library for Java.
+Azure Resource Manager SCVMM client library for Java.
-This package contains Microsoft Azure SDK for Scvmm Management SDK. SCVMM Client. Package tag package-2023-10. 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 SCVMM Management SDK. The Microsoft.ScVmm Rest API spec. 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-scvmm
- 1.0.0
+ 1.1.0-beta.1
```
[//]: # ({x-version-update-end})
@@ -56,7 +56,7 @@ AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
-ScvmmManager manager = ScvmmManager
+SCVMMManager manager = SCVMMManager
.authenticate(credential, profile);
```
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md b/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md
index ee8b2ac27666..9ceb3e961254 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/SAMPLE.md
@@ -95,15 +95,14 @@ import java.util.Map;
*/
public final class AvailabilitySetsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets()
.define("_")
.withRegion("jelevilan")
@@ -113,15 +112,14 @@ public final class AvailabilitySetsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets()
.define("-")
.withRegion("jelevilan")
@@ -160,28 +158,26 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class AvailabilitySetsDeleteSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().delete("rgscvmm", "_", ForceDelete.TRUE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().delete("rgscvmm", "6", null, com.azure.core.util.Context.NONE);
}
}
@@ -195,28 +191,26 @@ public final class AvailabilitySetsDeleteSamples {
*/
public final class AvailabilitySetsGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Get_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().getByResourceGroupWithResponse("rgscvmm", "V", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Get_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().getByResourceGroupWithResponse("rgscvmm", "-", com.azure.core.util.Context.NONE);
}
}
@@ -230,30 +224,28 @@ public final class AvailabilitySetsGetByResourceGroupSamples {
*/
public final class AvailabilitySetsListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_ListBySubscription_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- availabilitySetsListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ availabilitySetsListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_ListBySubscription_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- availabilitySetsListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ availabilitySetsListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().list(com.azure.core.util.Context.NONE);
}
}
@@ -267,30 +259,28 @@ public final class AvailabilitySetsListSamples {
*/
public final class AvailabilitySetsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_ListByResourceGroup_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- availabilitySetsListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ availabilitySetsListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_ListByResourceGroup_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- availabilitySetsListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ availabilitySetsListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.availabilitySets().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
}
@@ -308,15 +298,14 @@ import java.util.Map;
*/
public final class AvailabilitySetsUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Update_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Update_MinimumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
AvailabilitySet resource = manager.availabilitySets()
.getByResourceGroupWithResponse("rgscvmm", "1", com.azure.core.util.Context.NONE)
.getValue();
@@ -324,15 +313,14 @@ public final class AvailabilitySetsUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * AvailabilitySets_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/AvailabilitySets_Update_MaximumSet_Gen.json
*/
/**
* Sample code: AvailabilitySets_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void availabilitySetsUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void availabilitySetsUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
AvailabilitySet resource = manager.availabilitySets()
.getByResourceGroupWithResponse("rgscvmm", "-", com.azure.core.util.Context.NONE)
.getValue();
@@ -366,15 +354,14 @@ import java.util.Map;
*/
public final class CloudsCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds()
.define("-")
.withRegion("khwsdmaxfhmbu")
@@ -384,15 +371,14 @@ public final class CloudsCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds()
.define("2")
.withRegion("khwsdmaxfhmbu")
@@ -432,28 +418,26 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class CloudsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().delete("rgscvmm", "-", ForceDelete.TRUE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().delete("rgscvmm", "1", null, com.azure.core.util.Context.NONE);
}
}
@@ -467,28 +451,26 @@ public final class CloudsDeleteSamples {
*/
public final class CloudsGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Get_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().getByResourceGroupWithResponse("rgscvmm", "_", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Get_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().getByResourceGroupWithResponse("rgscvmm", "i", com.azure.core.util.Context.NONE);
}
}
@@ -502,28 +484,26 @@ public final class CloudsGetByResourceGroupSamples {
*/
public final class CloudsListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_ListBySubscription_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_ListBySubscription_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().list(com.azure.core.util.Context.NONE);
}
}
@@ -537,28 +517,26 @@ public final class CloudsListSamples {
*/
public final class CloudsListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_ListByResourceGroup_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * Clouds_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_ListByResourceGroup_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.clouds().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
}
@@ -576,15 +554,14 @@ import java.util.Map;
*/
public final class CloudsUpdateSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Update_MinimumSet_Gen.json
*/
/**
* Sample code: Clouds_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
Cloud resource = manager.clouds()
.getByResourceGroupWithResponse("rgscvmm", "_", com.azure.core.util.Context.NONE)
.getValue();
@@ -592,15 +569,14 @@ public final class CloudsUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Clouds_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/Clouds_Update_MaximumSet_Gen.json
*/
/**
* Sample code: Clouds_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void cloudsUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void cloudsUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
Cloud resource = manager.clouds()
.getByResourceGroupWithResponse("rgscvmm", "P", com.azure.core.util.Context.NONE)
.getValue();
@@ -635,30 +611,26 @@ import com.azure.resourcemanager.scvmm.models.ProvisioningAction;
*/
public final class GuestAgentsCreateSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MinimumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Create_MinimumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Create_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsCreateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsCreateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().create("gtgclehcbsyave", new GuestAgentInner(), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Create_MaximumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Create_MaximumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Create_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsCreateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsCreateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents()
.create("gtgclehcbsyave",
new GuestAgentInner().withProperties(new GuestAgentProperties()
@@ -679,30 +651,26 @@ public final class GuestAgentsCreateSamples {
*/
public final class GuestAgentsDeleteSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MaximumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().deleteWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Delete_MinimumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().deleteWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -716,30 +684,26 @@ public final class GuestAgentsDeleteSamples {
*/
public final class GuestAgentsGetSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MaximumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Get_MaximumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/GuestAgents_Get_MinimumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/GuestAgents_Get_MinimumSet_Gen.json
*/
/**
* Sample code: GuestAgents_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void guestAgentsGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void guestAgentsGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -753,30 +717,28 @@ public final class GuestAgentsGetSamples {
*/
public final class GuestAgentsListByVirtualMachineInstanceSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * GuestAgents_ListByVirtualMachineInstance_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/GuestAgents_ListByVirtualMachineInstance_MaximumSet_Gen.json
*/
/**
* Sample code: GuestAgents_ListByVirtualMachineInstance_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- guestAgentsListByVirtualMachineInstanceMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ guestAgentsListByVirtualMachineInstanceMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().listByVirtualMachineInstance("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * GuestAgents_ListByVirtualMachineInstance_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/GuestAgents_ListByVirtualMachineInstance_MinimumSet_Gen.json
*/
/**
* Sample code: GuestAgents_ListByVirtualMachineInstance_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- guestAgentsListByVirtualMachineInstanceMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ guestAgentsListByVirtualMachineInstanceMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.guestAgents().listByVirtualMachineInstance("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -792,15 +754,14 @@ import com.azure.resourcemanager.scvmm.models.InventoryItemProperties;
*/
public final class InventoryItemsCreateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_Create_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Create_MinimumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Create_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsCreateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsCreateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.define("bbFb0cBb-50ce-4bfc-3eeD-bC26AbCC257a")
.withExistingVmmServer("rgscvmm", ".")
@@ -808,15 +769,14 @@ public final class InventoryItemsCreateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_Create_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Create_MaximumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Create_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsCreateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsCreateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.define("1BdDc2Ab-bDd9-Ebd6-bfdb-C0dbbdB5DEDf")
.withExistingVmmServer("rgscvmm", "O")
@@ -835,30 +795,28 @@ public final class InventoryItemsCreateSamples {
*/
public final class InventoryItemsDeleteSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.deleteWithResponse("rgscvmm", "b", "EcECadfd-Eaaa-e5Ce-ebdA-badeEd3c6af1",
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.deleteWithResponse("rgscvmm", "_", "cDBcbae6-BC3d-52fe-CedC-7eFeaBFabb82",
com.azure.core.util.Context.NONE);
@@ -874,31 +832,27 @@ public final class InventoryItemsDeleteSamples {
*/
public final class InventoryItemsGetSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MinimumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Get_MinimumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.getWithResponse("rgscvmm", "_", "cacb8Ceb-efAC-bebb-ae7C-dec8C5Bb7100", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/InventoryItems_Get_MaximumSet_Gen
- * .json
+ * x-ms-original-file: 2024-06-01/InventoryItems_Get_MaximumSet_Gen.json
*/
/**
* Sample code: InventoryItems_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems()
.getWithResponse("rgscvmm", "1", "2bFBede6-EEf8-becB-dBbd-B96DbBFdB3f3", com.azure.core.util.Context.NONE);
}
@@ -913,28 +867,26 @@ public final class InventoryItemsGetSamples {
*/
public final class InventoryItemsListByVmmServerSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_ListByVmmServer_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_ListByVmmServer_MaximumSet_Gen.json
*/
/**
* Sample code: InventoryItems_ListByVmmServer_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsListByVmmServerMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsListByVmmServerMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems().listByVmmServer("rgscvmm", "X", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * InventoryItems_ListByVmmServer_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/InventoryItems_ListByVmmServer_MinimumSet_Gen.json
*/
/**
* Sample code: InventoryItems_ListByVmmServer_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void inventoryItemsListByVmmServerMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void inventoryItemsListByVmmServerMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.inventoryItems().listByVmmServer("rgscvmm", "H", com.azure.core.util.Context.NONE);
}
}
@@ -948,30 +900,26 @@ public final class InventoryItemsListByVmmServerSamples {
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MinimumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/Operations_List_MinimumSet_Gen.json
*/
/**
* Sample code: Operations_List_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void operationsListMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void operationsListMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/Operations_List_MaximumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/Operations_List_MaximumSet_Gen.json
*/
/**
* Sample code: Operations_List_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void operationsListMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void operationsListMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.operations().list(com.azure.core.util.Context.NONE);
}
}
@@ -987,32 +935,30 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineCreateCheckpoint;
*/
public final class VirtualMachineInstancesCreateCheckpointSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_CreateCheckpoint_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_CreateCheckpoint_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_CreateCheckpoint_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesCreateCheckpointMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesCreateCheckpointMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.createCheckpoint("gtgclehcbsyave", new VirtualMachineCreateCheckpoint().withName("ilvltf")
.withDescription("zoozhfbepldrgpjqsbhpqebtodrhvy"), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_CreateCheckpoint_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_CreateCheckpoint_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_CreateCheckpoint_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesCreateCheckpointMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesCreateCheckpointMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.createCheckpoint("gtgclehcbsyave", new VirtualMachineCreateCheckpoint(), com.azure.core.util.Context.NONE);
}
@@ -1045,16 +991,15 @@ import java.util.Arrays;
*/
public final class VirtualMachineInstancesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.createOrUpdate("gtgclehcbsyave", new VirtualMachineInstanceInner()
.withProperties(new VirtualMachineInstanceProperties()
@@ -1062,7 +1007,14 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples {
"/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName")
.withName("lwbhaseo")))
.withOsProfile(new OsProfileForVmInstance().withAdminPassword("fakeTokenPlaceholder")
- .withComputerName("uuxpcxuxcufllc"))
+ .withComputerName("uuxpcxuxcufllc")
+ .withDomainName("vblzsoqxzlrygdulnefexjdezo")
+ .withDomainUsername("sn")
+ .withDomainPassword("fakeTokenPlaceholder")
+ .withWorkgroup("bsqftibgcnnjpvmuxligk")
+ .withProductKey("fakeTokenPlaceholder")
+ .withTimezone(4)
+ .withRunOnceCommands("byxpnluptiwxycbbybsf;qwerty"))
.withHardwareProfile(new HardwareProfile().withMemoryMB(5)
.withCpuCount(22)
.withLimitCpuForMigration(LimitCpuForMigration.TRUE)
@@ -1108,16 +1060,15 @@ public final class VirtualMachineInstancesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.createOrUpdate("gtgclehcbsyave",
new VirtualMachineInstanceInner().withExtendedLocation(new ExtendedLocation()),
@@ -1137,29 +1088,27 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class VirtualMachineInstancesDeleteSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.delete("gtgclehcbsyave", ForceDelete.TRUE, DeleteFromHost.TRUE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().delete("gtgclehcbsyave", null, null, com.azure.core.util.Context.NONE);
}
}
@@ -1175,16 +1124,15 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineDeleteCheckpoint;
*/
public final class VirtualMachineInstancesDeleteCheckpointSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_DeleteCheckpoint_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_DeleteCheckpoint_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesDeleteCheckpointMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesDeleteCheckpointMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.deleteCheckpoint("gtgclehcbsyave",
new VirtualMachineDeleteCheckpoint().withId("eenfflimcbgqfsebdusophahjpk"),
@@ -1192,16 +1140,15 @@ public final class VirtualMachineInstancesDeleteCheckpointSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_DeleteCheckpoint_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_DeleteCheckpoint_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesDeleteCheckpointMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesDeleteCheckpointMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.deleteCheckpoint("gtgclehcbsyave", new VirtualMachineDeleteCheckpoint(), com.azure.core.util.Context.NONE);
}
@@ -1216,28 +1163,26 @@ public final class VirtualMachineInstancesDeleteCheckpointSamples {
*/
public final class VirtualMachineInstancesGetSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -1251,28 +1196,26 @@ public final class VirtualMachineInstancesGetSamples {
*/
public final class VirtualMachineInstancesListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_List_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_List_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_List_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesListMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesListMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().list("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_List_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_List_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_List_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesListMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesListMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().list("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -1286,28 +1229,26 @@ public final class VirtualMachineInstancesListSamples {
*/
public final class VirtualMachineInstancesRestartSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Restart_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Restart_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Restart_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesRestartMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesRestartMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().restart("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Restart_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Restart_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Restart_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesRestartMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesRestartMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().restart("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -1323,32 +1264,30 @@ import com.azure.resourcemanager.scvmm.models.VirtualMachineRestoreCheckpoint;
*/
public final class VirtualMachineInstancesRestoreCheckpointSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_RestoreCheckpoint_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_RestoreCheckpoint_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_RestoreCheckpoint_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesRestoreCheckpointMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesRestoreCheckpointMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.restoreCheckpoint("gtgclehcbsyave", new VirtualMachineRestoreCheckpoint(),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_RestoreCheckpoint_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_RestoreCheckpoint_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_RestoreCheckpoint_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineInstancesRestoreCheckpointMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineInstancesRestoreCheckpointMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.restoreCheckpoint("gtgclehcbsyave", new VirtualMachineRestoreCheckpoint().withId("rweqduwzsn"),
com.azure.core.util.Context.NONE);
@@ -1364,28 +1303,26 @@ public final class VirtualMachineInstancesRestoreCheckpointSamples {
*/
public final class VirtualMachineInstancesStartSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Start_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Start_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Start_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesStartMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesStartMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().start("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Start_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Start_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Start_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesStartMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesStartMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances().start("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -1402,30 +1339,28 @@ import com.azure.resourcemanager.scvmm.models.StopVirtualMachineOptions;
*/
public final class VirtualMachineInstancesStopSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Stop_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Stop_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Stop_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesStopMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesStopMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.stop("gtgclehcbsyave", new StopVirtualMachineOptions().withSkipShutdown(SkipShutdown.TRUE),
com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Stop_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Stop_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Stop_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesStopMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesStopMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.stop("gtgclehcbsyave", new StopVirtualMachineOptions(), com.azure.core.util.Context.NONE);
}
@@ -1447,7 +1382,6 @@ import com.azure.resourcemanager.scvmm.models.StorageProfileUpdate;
import com.azure.resourcemanager.scvmm.models.StorageQosPolicyDetails;
import com.azure.resourcemanager.scvmm.models.VirtualDiskUpdate;
import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdate;
-import com.azure.resourcemanager.scvmm.models.VirtualMachineInstanceUpdateProperties;
import java.util.Arrays;
/**
@@ -1455,61 +1389,58 @@ import java.util.Arrays;
*/
public final class VirtualMachineInstancesUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Update_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Update_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
.update("gtgclehcbsyave", new VirtualMachineInstanceUpdate(), com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineInstances_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineInstances_Update_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineInstances_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineInstancesUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineInstancesUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineInstances()
- .update("gtgclehcbsyave",
- new VirtualMachineInstanceUpdate().withProperties(new VirtualMachineInstanceUpdateProperties()
- .withAvailabilitySets(Arrays.asList(new AvailabilitySetListItem().withId(
- "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName")
- .withName("lwbhaseo")))
- .withHardwareProfile(new HardwareProfileUpdate().withMemoryMB(5)
- .withCpuCount(22)
- .withLimitCpuForMigration(LimitCpuForMigration.TRUE)
- .withDynamicMemoryEnabled(DynamicMemoryEnabled.TRUE)
- .withDynamicMemoryMaxMB(2)
- .withDynamicMemoryMinMB(30))
- .withNetworkProfile(new NetworkProfileUpdate()
- .withNetworkInterfaces(Arrays.asList(new NetworkInterfaceUpdate().withName("kvofzqulbjlbtt")
- .withMacAddress("oaeqqegt")
- .withVirtualNetworkId(
- "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualNetworks/virtualNetworkName")
- .withIpv4AddressType(AllocationMethod.DYNAMIC)
- .withIpv6AddressType(AllocationMethod.DYNAMIC)
- .withMacAddressType(AllocationMethod.DYNAMIC)
- .withNicId("roxpsvlo"))))
- .withStorageProfile(new StorageProfileUpdate()
- .withDisks(Arrays.asList(new VirtualDiskUpdate().withName("fgnckfymwdsqnfxkdvexuaobe")
- .withDiskId("ltdrwcfjklpsimhzqyh")
- .withDiskSizeGB(30)
- .withBus(8)
- .withLun(10)
- .withBusType("zu")
- .withVhdType("cnbeeeylrvopigdynvgpkfp")
- .withStorageQosPolicy(new StorageQosPolicyDetails().withName("ceiyfrflu").withId("o")))))
- .withInfrastructureProfile(
- new InfrastructureProfileUpdate().withCheckpointType("jkbpzjxpeegackhsvikrnlnwqz"))),
+ .update("gtgclehcbsyave", new VirtualMachineInstanceUpdate()
+ .withAvailabilitySets(Arrays.asList(new AvailabilitySetListItem().withId(
+ "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName")
+ .withName("lwbhaseo")))
+ .withHardwareProfile(new HardwareProfileUpdate().withMemoryMB(5)
+ .withCpuCount(22)
+ .withLimitCpuForMigration(LimitCpuForMigration.TRUE)
+ .withDynamicMemoryEnabled(DynamicMemoryEnabled.TRUE)
+ .withDynamicMemoryMaxMB(2)
+ .withDynamicMemoryMinMB(30))
+ .withNetworkProfile(new NetworkProfileUpdate()
+ .withNetworkInterfaces(Arrays.asList(new NetworkInterfaceUpdate().withName("kvofzqulbjlbtt")
+ .withMacAddress("oaeqqegt")
+ .withVirtualNetworkId(
+ "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualNetworks/virtualNetworkName")
+ .withIpv4AddressType(AllocationMethod.DYNAMIC)
+ .withIpv6AddressType(AllocationMethod.DYNAMIC)
+ .withMacAddressType(AllocationMethod.DYNAMIC)
+ .withNicId("roxpsvlo"))))
+ .withStorageProfile(new StorageProfileUpdate()
+ .withDisks(Arrays.asList(new VirtualDiskUpdate().withName("fgnckfymwdsqnfxkdvexuaobe")
+ .withDiskId("ltdrwcfjklpsimhzqyh")
+ .withDiskSizeGB(30)
+ .withBus(8)
+ .withLun(10)
+ .withBusType("zu")
+ .withVhdType("cnbeeeylrvopigdynvgpkfp")
+ .withStorageQosPolicy(new StorageQosPolicyDetails().withName("ceiyfrflu").withId("o")))))
+ .withInfrastructureProfile(
+ new InfrastructureProfileUpdate().withCheckpointType("jkbpzjxpeegackhsvikrnlnwqz")),
com.azure.core.util.Context.NONE);
}
}
@@ -1528,16 +1459,15 @@ import java.util.Map;
*/
public final class VirtualMachineTemplatesCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates()
.define("P")
.withRegion("ayxsyduviotylbojh")
@@ -1547,16 +1477,15 @@ public final class VirtualMachineTemplatesCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates()
.define("6")
.withRegion("ayxsyduviotylbojh")
@@ -1596,28 +1525,26 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class VirtualMachineTemplatesDeleteSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().delete("rgscvmm", "5", null, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().delete("rgscvmm", "6", ForceDelete.TRUE, com.azure.core.util.Context.NONE);
}
}
@@ -1631,29 +1558,27 @@ public final class VirtualMachineTemplatesDeleteSamples {
*/
public final class VirtualMachineTemplatesGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates()
.getByResourceGroupWithResponse("rgscvmm", "m", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates()
.getByResourceGroupWithResponse("rgscvmm", "4", com.azure.core.util.Context.NONE);
}
@@ -1668,30 +1593,28 @@ public final class VirtualMachineTemplatesGetByResourceGroupSamples {
*/
public final class VirtualMachineTemplatesListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_ListBySubscription_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_ListBySubscription_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().list(com.azure.core.util.Context.NONE);
}
}
@@ -1705,30 +1628,28 @@ public final class VirtualMachineTemplatesListSamples {
*/
public final class VirtualMachineTemplatesListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_ListByResourceGroup_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_ListByResourceGroup_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualMachineTemplatesListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualMachineTemplatesListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualMachineTemplates().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
}
@@ -1746,15 +1667,14 @@ import java.util.Map;
*/
public final class VirtualMachineTemplatesUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Update_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VirtualMachineTemplate resource = manager.virtualMachineTemplates()
.getByResourceGroupWithResponse("rgscvmm", "g", com.azure.core.util.Context.NONE)
.getValue();
@@ -1762,15 +1682,14 @@ public final class VirtualMachineTemplatesUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualMachineTemplates_Update_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualMachineTemplates_Update_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualMachineTemplates_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualMachineTemplatesUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualMachineTemplatesUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VirtualMachineTemplate resource = manager.virtualMachineTemplates()
.getByResourceGroupWithResponse("rgscvmm", "-", com.azure.core.util.Context.NONE)
.getValue();
@@ -1804,15 +1723,14 @@ import java.util.Map;
*/
public final class VirtualNetworksCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks()
.define("_")
.withRegion("fky")
@@ -1829,15 +1747,14 @@ public final class VirtualNetworksCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks()
.define("-")
.withRegion("fky")
@@ -1870,28 +1787,26 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class VirtualNetworksDeleteSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Delete_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().delete("rgscvmm", ".", ForceDelete.TRUE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Delete_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().delete("rgscvmm", "1", null, com.azure.core.util.Context.NONE);
}
}
@@ -1905,28 +1820,26 @@ public final class VirtualNetworksDeleteSamples {
*/
public final class VirtualNetworksGetByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().getByResourceGroupWithResponse("rgscvmm", "2", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().getByResourceGroupWithResponse("rgscvmm", "-", com.azure.core.util.Context.NONE);
}
}
@@ -1940,30 +1853,28 @@ public final class VirtualNetworksGetByResourceGroupSamples {
*/
public final class VirtualNetworksListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_ListBySubscription_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualNetworksListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualNetworksListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_ListBySubscription_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualNetworksListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualNetworksListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().list(com.azure.core.util.Context.NONE);
}
}
@@ -1977,30 +1888,28 @@ public final class VirtualNetworksListSamples {
*/
public final class VirtualNetworksListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_ListByResourceGroup_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualNetworksListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualNetworksListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_ListByResourceGroup_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- virtualNetworksListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ virtualNetworksListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.virtualNetworks().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
}
@@ -2018,15 +1927,14 @@ import java.util.Map;
*/
public final class VirtualNetworksUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Update_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Update_MinimumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VirtualNetwork resource = manager.virtualNetworks()
.getByResourceGroupWithResponse("rgscvmm", "-", com.azure.core.util.Context.NONE)
.getValue();
@@ -2034,15 +1942,14 @@ public final class VirtualNetworksUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VirtualNetworks_Update_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VirtualNetworks_Update_MaximumSet_Gen.json
*/
/**
* Sample code: VirtualNetworks_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void virtualNetworksUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void virtualNetworksUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VirtualNetwork resource = manager.virtualNetworks()
.getByResourceGroupWithResponse("rgscvmm", "S", com.azure.core.util.Context.NONE)
.getValue();
@@ -2071,30 +1978,28 @@ public final class VirtualNetworksUpdateSamples {
*/
public final class VmInstanceHybridIdentityMetadatasGetSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmInstanceHybridIdentityMetadatas_Get_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmInstanceHybridIdentityMetadatas_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VmInstanceHybridIdentityMetadatas_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- vmInstanceHybridIdentityMetadatasGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ vmInstanceHybridIdentityMetadatasGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmInstanceHybridIdentityMetadatas().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmInstanceHybridIdentityMetadatas_Get_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmInstanceHybridIdentityMetadatas_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VmInstanceHybridIdentityMetadatas_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void
- vmInstanceHybridIdentityMetadatasGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ vmInstanceHybridIdentityMetadatasGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmInstanceHybridIdentityMetadatas().getWithResponse("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
}
@@ -2108,31 +2013,29 @@ public final class VmInstanceHybridIdentityMetadatasGetSamples {
*/
public final class VmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MaximumSet_Gen.json
*/
/**
* Sample code: VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceMaximumSet(
- com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmInstanceHybridIdentityMetadatas()
.listByVirtualMachineInstance("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MinimumSet_Gen.json
*/
/**
* Sample code: VmInstanceHybridIdentityMetadatas_ListByVirtualMachineInstance_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
public static void vmInstanceHybridIdentityMetadatasListByVirtualMachineInstanceMinimumSet(
- com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmInstanceHybridIdentityMetadatas()
.listByVirtualMachineInstance("gtgclehcbsyave", com.azure.core.util.Context.NONE);
}
@@ -2153,15 +2056,14 @@ import java.util.Map;
*/
public final class VmmServersCreateOrUpdateSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_CreateOrUpdate_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_CreateOrUpdate_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_CreateOrUpdate_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersCreateOrUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers()
.define("w")
.withRegion("hslxkyzktvwpqbypvs")
@@ -2171,15 +2073,14 @@ public final class VmmServersCreateOrUpdateSamples {
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_CreateOrUpdate_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_CreateOrUpdate_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_CreateOrUpdate_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersCreateOrUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers()
.define("-")
.withRegion("hslxkyzktvwpqbypvs")
@@ -2220,30 +2121,26 @@ import com.azure.resourcemanager.scvmm.models.ForceDelete;
*/
public final class VmmServersDeleteSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MaximumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Delete_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_Delete_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersDeleteMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersDeleteMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().delete("rgscvmm", ".", ForceDelete.TRUE, com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Delete_MinimumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Delete_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_Delete_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersDeleteMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersDeleteMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().delete("rgscvmm", "8", null, com.azure.core.util.Context.NONE);
}
}
@@ -2257,30 +2154,26 @@ public final class VmmServersDeleteSamples {
*/
public final class VmmServersGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MinimumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Get_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_Get_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersGetMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersGetMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().getByResourceGroupWithResponse("rgscvmm", "D", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Get_MaximumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Get_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_Get_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersGetMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersGetMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().getByResourceGroupWithResponse("rgscvmm", ".", com.azure.core.util.Context.NONE);
}
}
@@ -2294,28 +2187,26 @@ public final class VmmServersGetByResourceGroupSamples {
*/
public final class VmmServersListSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_ListBySubscription_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_ListBySubscription_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_ListBySubscription_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersListBySubscriptionMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().list(com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_ListBySubscription_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_ListBySubscription_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_ListBySubscription_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersListBySubscriptionMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().list(com.azure.core.util.Context.NONE);
}
}
@@ -2329,28 +2220,26 @@ public final class VmmServersListSamples {
*/
public final class VmmServersListByResourceGroupSamples {
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_ListByResourceGroup_MinimumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_ListByResourceGroup_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_ListByResourceGroup_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersListByResourceGroupMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
/*
- * x-ms-original-file: specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/
- * VmmServers_ListByResourceGroup_MaximumSet_Gen.json
+ * x-ms-original-file: 2024-06-01/VmmServers_ListByResourceGroup_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_ListByResourceGroup_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersListByResourceGroupMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
manager.vmmServers().listByResourceGroup("rgscvmm", com.azure.core.util.Context.NONE);
}
}
@@ -2368,16 +2257,14 @@ import java.util.Map;
*/
public final class VmmServersUpdateSamples {
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MinimumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Update_MinimumSet_Gen.json
*/
/**
* Sample code: VmmServers_Update_MinimumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersUpdateMinimumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersUpdateMinimumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VmmServer resource = manager.vmmServers()
.getByResourceGroupWithResponse("rgscvmm", "_", com.azure.core.util.Context.NONE)
.getValue();
@@ -2385,16 +2272,14 @@ public final class VmmServersUpdateSamples {
}
/*
- * x-ms-original-file:
- * specification/scvmm/resource-manager/Microsoft.ScVmm/stable/2023-10-07/examples/VmmServers_Update_MaximumSet_Gen.
- * json
+ * x-ms-original-file: 2024-06-01/VmmServers_Update_MaximumSet_Gen.json
*/
/**
* Sample code: VmmServers_Update_MaximumSet.
*
- * @param manager Entry point to ScvmmManager.
+ * @param manager Entry point to SCVMMManager.
*/
- public static void vmmServersUpdateMaximumSet(com.azure.resourcemanager.scvmm.ScvmmManager manager) {
+ public static void vmmServersUpdateMaximumSet(com.azure.resourcemanager.scvmm.SCVMMManager manager) {
VmmServer resource = manager.vmmServers()
.getByResourceGroupWithResponse("rgscvmm", "Y", com.azure.core.util.Context.NONE)
.getValue();
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml b/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml
index 0f718c1f7c43..a35578f725f1 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/pom.xml
@@ -1,7 +1,7 @@
4.0.0
@@ -17,8 +17,8 @@
1.1.0-beta.1
jar
- Microsoft Azure SDK for Scvmm Management
- This package contains Microsoft Azure SDK for Scvmm Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. SCVMM Client. Package tag package-2023-10.
+ Microsoft Azure SDK for SCVMM Management
+ This package contains Microsoft Azure SDK for SCVMM Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Microsoft.ScVmm Rest API spec.
https://github.com/Azure/azure-sdk-for-java
@@ -45,13 +45,10 @@
UTF-8
0
0
+ true
+ false
-
- com.azure
- azure-json
- 1.3.0
-
com.azure
azure-core
@@ -74,5 +71,10 @@
1.14.2
test
+
+ com.azure
+ azure-json
+ 1.3.0
+
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/SCVMMManager.java
similarity index 90%
rename from sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java
rename to sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/SCVMMManager.java
index 11e2df4a9505..7cdd3a4af90c 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/ScvmmManager.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/SCVMMManager.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm;
@@ -11,25 +11,25 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.scvmm.fluent.ScvmmClient;
+import com.azure.resourcemanager.scvmm.fluent.ScVmmClient;
import com.azure.resourcemanager.scvmm.implementation.AvailabilitySetsImpl;
import com.azure.resourcemanager.scvmm.implementation.CloudsImpl;
import com.azure.resourcemanager.scvmm.implementation.GuestAgentsImpl;
import com.azure.resourcemanager.scvmm.implementation.InventoryItemsImpl;
import com.azure.resourcemanager.scvmm.implementation.OperationsImpl;
-import com.azure.resourcemanager.scvmm.implementation.ScvmmClientBuilder;
+import com.azure.resourcemanager.scvmm.implementation.ScVmmClientBuilder;
import com.azure.resourcemanager.scvmm.implementation.VirtualMachineInstancesImpl;
import com.azure.resourcemanager.scvmm.implementation.VirtualMachineTemplatesImpl;
import com.azure.resourcemanager.scvmm.implementation.VirtualNetworksImpl;
@@ -53,36 +53,36 @@
import java.util.stream.Collectors;
/**
- * Entry point to ScvmmManager.
- * SCVMM Client.
+ * Entry point to SCVMMManager.
+ * The Microsoft.ScVmm Rest API spec.
*/
-public final class ScvmmManager {
- private VirtualMachineInstances virtualMachineInstances;
-
- private GuestAgents guestAgents;
-
- private VmInstanceHybridIdentityMetadatas vmInstanceHybridIdentityMetadatas;
-
+public final class SCVMMManager {
private Operations operations;
- private AvailabilitySets availabilitySets;
+ private VmmServers vmmServers;
private Clouds clouds;
- private VirtualMachineTemplates virtualMachineTemplates;
-
private VirtualNetworks virtualNetworks;
- private VmmServers vmmServers;
+ private VirtualMachineTemplates virtualMachineTemplates;
+
+ private AvailabilitySets availabilitySets;
private InventoryItems inventoryItems;
- private final ScvmmClient clientObject;
+ private VirtualMachineInstances virtualMachineInstances;
+
+ private VmInstanceHybridIdentityMetadatas vmInstanceHybridIdentityMetadatas;
- private ScvmmManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ private GuestAgents guestAgents;
+
+ private final ScVmmClient clientObject;
+
+ private SCVMMManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new ScvmmClientBuilder().pipeline(httpPipeline)
+ this.clientObject = new ScVmmClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -90,38 +90,38 @@ private ScvmmManager(HttpPipeline httpPipeline, AzureProfile profile, Duration d
}
/**
- * Creates an instance of Scvmm service API entry point.
+ * Creates an instance of SCVMM service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the Scvmm service API instance.
+ * @return the SCVMM service API instance.
*/
- public static ScvmmManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public static SCVMMManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return configure().authenticate(credential, profile);
}
/**
- * Creates an instance of Scvmm service API entry point.
+ * Creates an instance of SCVMM service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
- * @return the Scvmm service API instance.
+ * @return the SCVMM service API instance.
*/
- public static ScvmmManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ public static SCVMMManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- return new ScvmmManager(httpPipeline, profile, null);
+ return new SCVMMManager(httpPipeline, profile, null);
}
/**
- * Gets a Configurable instance that can be used to create ScvmmManager with optional configuration.
+ * Gets a Configurable instance that can be used to create SCVMMManager with optional configuration.
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
- return new ScvmmManager.Configurable();
+ return new SCVMMManager.Configurable();
}
/**
@@ -226,13 +226,13 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}
/**
- * Creates an instance of Scvmm service API entry point.
+ * Creates an instance of SCVMM service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
- * @return the Scvmm service API instance.
+ * @return the SCVMM service API instance.
*/
- public ScvmmManager authenticate(TokenCredential credential, AzureProfile profile) {
+ public SCVMMManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
@@ -241,7 +241,7 @@ public ScvmmManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.scvmm")
.append("/")
- .append("1.0.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -274,7 +274,7 @@ public ScvmmManager authenticate(TokenCredential credential, AzureProfile profil
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -283,46 +283,8 @@ public ScvmmManager authenticate(TokenCredential credential, AzureProfile profil
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
- return new ScvmmManager(httpPipeline, profile, defaultPollInterval);
- }
- }
-
- /**
- * Gets the resource collection API of VirtualMachineInstances.
- *
- * @return Resource collection API of VirtualMachineInstances.
- */
- public VirtualMachineInstances virtualMachineInstances() {
- if (this.virtualMachineInstances == null) {
- this.virtualMachineInstances
- = new VirtualMachineInstancesImpl(clientObject.getVirtualMachineInstances(), this);
+ return new SCVMMManager(httpPipeline, profile, defaultPollInterval);
}
- return virtualMachineInstances;
- }
-
- /**
- * Gets the resource collection API of GuestAgents.
- *
- * @return Resource collection API of GuestAgents.
- */
- public GuestAgents guestAgents() {
- if (this.guestAgents == null) {
- this.guestAgents = new GuestAgentsImpl(clientObject.getGuestAgents(), this);
- }
- return guestAgents;
- }
-
- /**
- * Gets the resource collection API of VmInstanceHybridIdentityMetadatas.
- *
- * @return Resource collection API of VmInstanceHybridIdentityMetadatas.
- */
- public VmInstanceHybridIdentityMetadatas vmInstanceHybridIdentityMetadatas() {
- if (this.vmInstanceHybridIdentityMetadatas == null) {
- this.vmInstanceHybridIdentityMetadatas
- = new VmInstanceHybridIdentityMetadatasImpl(clientObject.getVmInstanceHybridIdentityMetadatas(), this);
- }
- return vmInstanceHybridIdentityMetadatas;
}
/**
@@ -338,15 +300,15 @@ public Operations operations() {
}
/**
- * Gets the resource collection API of AvailabilitySets. It manages AvailabilitySet.
+ * Gets the resource collection API of VmmServers. It manages VmmServer.
*
- * @return Resource collection API of AvailabilitySets.
+ * @return Resource collection API of VmmServers.
*/
- public AvailabilitySets availabilitySets() {
- if (this.availabilitySets == null) {
- this.availabilitySets = new AvailabilitySetsImpl(clientObject.getAvailabilitySets(), this);
+ public VmmServers vmmServers() {
+ if (this.vmmServers == null) {
+ this.vmmServers = new VmmServersImpl(clientObject.getVmmServers(), this);
}
- return availabilitySets;
+ return vmmServers;
}
/**
@@ -361,6 +323,18 @@ public Clouds clouds() {
return clouds;
}
+ /**
+ * Gets the resource collection API of VirtualNetworks. It manages VirtualNetwork.
+ *
+ * @return Resource collection API of VirtualNetworks.
+ */
+ public VirtualNetworks virtualNetworks() {
+ if (this.virtualNetworks == null) {
+ this.virtualNetworks = new VirtualNetworksImpl(clientObject.getVirtualNetworks(), this);
+ }
+ return virtualNetworks;
+ }
+
/**
* Gets the resource collection API of VirtualMachineTemplates. It manages VirtualMachineTemplate.
*
@@ -375,27 +349,15 @@ public VirtualMachineTemplates virtualMachineTemplates() {
}
/**
- * Gets the resource collection API of VirtualNetworks. It manages VirtualNetwork.
- *
- * @return Resource collection API of VirtualNetworks.
- */
- public VirtualNetworks virtualNetworks() {
- if (this.virtualNetworks == null) {
- this.virtualNetworks = new VirtualNetworksImpl(clientObject.getVirtualNetworks(), this);
- }
- return virtualNetworks;
- }
-
- /**
- * Gets the resource collection API of VmmServers. It manages VmmServer.
+ * Gets the resource collection API of AvailabilitySets. It manages AvailabilitySet.
*
- * @return Resource collection API of VmmServers.
+ * @return Resource collection API of AvailabilitySets.
*/
- public VmmServers vmmServers() {
- if (this.vmmServers == null) {
- this.vmmServers = new VmmServersImpl(clientObject.getVmmServers(), this);
+ public AvailabilitySets availabilitySets() {
+ if (this.availabilitySets == null) {
+ this.availabilitySets = new AvailabilitySetsImpl(clientObject.getAvailabilitySets(), this);
}
- return vmmServers;
+ return availabilitySets;
}
/**
@@ -411,12 +373,50 @@ public InventoryItems inventoryItems() {
}
/**
- * Gets wrapped service client ScvmmClient providing direct access to the underlying auto-generated API
+ * Gets the resource collection API of VirtualMachineInstances.
+ *
+ * @return Resource collection API of VirtualMachineInstances.
+ */
+ public VirtualMachineInstances virtualMachineInstances() {
+ if (this.virtualMachineInstances == null) {
+ this.virtualMachineInstances
+ = new VirtualMachineInstancesImpl(clientObject.getVirtualMachineInstances(), this);
+ }
+ return virtualMachineInstances;
+ }
+
+ /**
+ * Gets the resource collection API of VmInstanceHybridIdentityMetadatas.
+ *
+ * @return Resource collection API of VmInstanceHybridIdentityMetadatas.
+ */
+ public VmInstanceHybridIdentityMetadatas vmInstanceHybridIdentityMetadatas() {
+ if (this.vmInstanceHybridIdentityMetadatas == null) {
+ this.vmInstanceHybridIdentityMetadatas
+ = new VmInstanceHybridIdentityMetadatasImpl(clientObject.getVmInstanceHybridIdentityMetadatas(), this);
+ }
+ return vmInstanceHybridIdentityMetadatas;
+ }
+
+ /**
+ * Gets the resource collection API of GuestAgents.
+ *
+ * @return Resource collection API of GuestAgents.
+ */
+ public GuestAgents guestAgents() {
+ if (this.guestAgents == null) {
+ this.guestAgents = new GuestAgentsImpl(clientObject.getGuestAgents(), this);
+ }
+ return guestAgents;
+ }
+
+ /**
+ * Gets wrapped service client ScVmmClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
- * @return Wrapped service client ScvmmClient.
+ * @return Wrapped service client ScVmmClient.
*/
- public ScvmmClient serviceClient() {
+ public ScVmmClient serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/AvailabilitySetsClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/AvailabilitySetsClient.java
index 167374ae858c..b3fb4a288175 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/AvailabilitySetsClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/AvailabilitySetsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -19,61 +19,6 @@
* An instance of this class provides access to all the operations defined in AvailabilitySetsClient.
*/
public interface AvailabilitySetsClient {
- /**
- * Implements GET AvailabilitySets in a subscription.
- *
- * List of AvailabilitySets in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Implements GET AvailabilitySets in a subscription.
- *
- * List of AvailabilitySets in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Implements GET AvailabilitySets in a resource group.
- *
- * List of AvailabilitySets in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Implements GET AvailabilitySets in a resource group.
- *
- * List of AvailabilitySets in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets an AvailabilitySet.
*
@@ -85,7 +30,9 @@ public interface AvailabilitySetsClient {
* @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 AvailabilitySets resource definition along with {@link Response}.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName,
@@ -101,7 +48,9 @@ Response getByResourceGroupWithResponse(String resourceGro
* @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 AvailabilitySets resource definition.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetResourceName);
@@ -308,4 +257,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String availabilitySetResourceName, ForceDelete force, Context context);
+
+ /**
+ * Implements GET AvailabilitySets in a resource group.
+ *
+ * List of AvailabilitySets in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Implements GET AvailabilitySets in a resource group.
+ *
+ * List of AvailabilitySets in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Implements GET AvailabilitySets in a subscription.
+ *
+ * List of AvailabilitySets in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Implements GET AvailabilitySets in a subscription.
+ *
+ * List of AvailabilitySets in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/CloudsClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/CloudsClient.java
index 48b89cbdaa71..bd7b32d8644e 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/CloudsClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/CloudsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -19,61 +19,6 @@
* An instance of this class provides access to all the operations defined in CloudsClient.
*/
public interface CloudsClient {
- /**
- * Implements GET Clouds in a subscription.
- *
- * List of Clouds in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Implements GET Clouds in a subscription.
- *
- * List of Clouds in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Implements GET Clouds in a resource group.
- *
- * List of Clouds in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Implements GET Clouds in a resource group.
- *
- * List of Clouds in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets a Cloud.
*
@@ -85,7 +30,9 @@ public interface CloudsClient {
* @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 Clouds resource definition along with {@link Response}.
+ * @return a Cloud.
+ *
+ * Implements Cloud GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String cloudResourceName,
@@ -101,7 +48,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName, St
* @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 Clouds resource definition.
+ * @return a Cloud.
+ *
+ * Implements Cloud GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CloudInner getByResourceGroup(String resourceGroupName, String cloudResourceName);
@@ -304,4 +253,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String cloudResourceName, ForceDelete force, Context context);
+
+ /**
+ * Implements GET Clouds in a resource group.
+ *
+ * List of Clouds in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Implements GET Clouds in a resource group.
+ *
+ * List of Clouds in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Implements GET Clouds in a subscription.
+ *
+ * List of Clouds in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Implements GET Clouds in a subscription.
+ *
+ * List of Clouds in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Cloud list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/GuestAgentsClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/GuestAgentsClient.java
index 2e3c7defa1a9..3640cb832ab4 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/GuestAgentsClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/GuestAgentsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -17,35 +17,6 @@
* An instance of this class provides access to all the operations defined in GuestAgentsClient.
*/
public interface GuestAgentsClient {
- /**
- * Implements GET GuestAgent in a vm.
- *
- * Returns the list of GuestAgent of the given vm.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a GuestAgent list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualMachineInstance(String resourceUri);
-
- /**
- * Implements GET GuestAgent in a vm.
- *
- * Returns the list of GuestAgent of the given vm.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a GuestAgent list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualMachineInstance(String resourceUri, Context context);
-
/**
* Gets GuestAgent.
*
@@ -56,7 +27,9 @@ public interface GuestAgentsClient {
* @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 defines the GuestAgent along with {@link Response}.
+ * @return guestAgent.
+ *
+ * Implements GuestAgent GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceUri, Context context);
@@ -70,7 +43,9 @@ public interface GuestAgentsClient {
* @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 defines the GuestAgent.
+ * @return guestAgent.
+ *
+ * Implements GuestAgent GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
GuestAgentInner get(String resourceUri);
@@ -165,4 +140,33 @@ SyncPoller, GuestAgentInner> beginCreate(String reso
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceUri);
+
+ /**
+ * Implements GET GuestAgent in a vm.
+ *
+ * Returns the list of GuestAgent of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a GuestAgent list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVirtualMachineInstance(String resourceUri);
+
+ /**
+ * Implements GET GuestAgent in a vm.
+ *
+ * Returns the list of GuestAgent of the given vm.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a GuestAgent list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVirtualMachineInstance(String resourceUri, Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/InventoryItemsClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/InventoryItemsClient.java
index 2cba42113436..d9c119c82dc2 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/InventoryItemsClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/InventoryItemsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -15,37 +15,6 @@
* An instance of this class provides access to all the operations defined in InventoryItemsClient.
*/
public interface InventoryItemsClient {
- /**
- * Implements GET for the list of Inventory Items in the VMMServer.
- *
- * Returns the list of inventoryItems in the given VmmServer.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmmServerName Name of the VmmServer.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InventoryItem list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVmmServer(String resourceGroupName, String vmmServerName);
-
- /**
- * Implements GET for the list of Inventory Items in the VMMServer.
- *
- * Returns the list of inventoryItems in the given VmmServer.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param vmmServerName Name of the VmmServer.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a InventoryItem list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVmmServer(String resourceGroupName, String vmmServerName, Context context);
-
/**
* Implements GET InventoryItem method.
*
@@ -149,4 +118,35 @@ Response deleteWithResponse(String resourceGroupName, String vmmServerName
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String vmmServerName, String inventoryItemResourceName);
+
+ /**
+ * Implements GET for the list of Inventory Items in the VMMServer.
+ *
+ * Returns the list of inventoryItems in the given VmmServer.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmmServerName Name of the VmmServer.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InventoryItem list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVmmServer(String resourceGroupName, String vmmServerName);
+
+ /**
+ * Implements GET for the list of Inventory Items in the VMMServer.
+ *
+ * Returns the list of inventoryItems in the given VmmServer.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param vmmServerName Name of the VmmServer.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a InventoryItem list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVmmServer(String resourceGroupName, String vmmServerName, Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/OperationsClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/OperationsClient.java
index 70b2d088ee3a..38272346cf4d 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/OperationsClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/OperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScvmmClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScVmmClient.java
similarity index 93%
rename from sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScvmmClient.java
rename to sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScVmmClient.java
index 222d20a1d00e..6d4c3ffb7a8c 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScvmmClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/ScVmmClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -8,30 +8,30 @@
import java.time.Duration;
/**
- * The interface for ScvmmClient class.
+ * The interface for ScVmmClient class.
*/
-public interface ScvmmClient {
+public interface ScVmmClient {
/**
- * Gets The ID of the target subscription. The value must be an UUID.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -47,72 +47,72 @@ public interface ScvmmClient {
Duration getDefaultPollInterval();
/**
- * Gets the VirtualMachineInstancesClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the VirtualMachineInstancesClient object.
+ * @return the OperationsClient object.
*/
- VirtualMachineInstancesClient getVirtualMachineInstances();
+ OperationsClient getOperations();
/**
- * Gets the GuestAgentsClient object to access its operations.
+ * Gets the VmmServersClient object to access its operations.
*
- * @return the GuestAgentsClient object.
+ * @return the VmmServersClient object.
*/
- GuestAgentsClient getGuestAgents();
+ VmmServersClient getVmmServers();
/**
- * Gets the VmInstanceHybridIdentityMetadatasClient object to access its operations.
+ * Gets the CloudsClient object to access its operations.
*
- * @return the VmInstanceHybridIdentityMetadatasClient object.
+ * @return the CloudsClient object.
*/
- VmInstanceHybridIdentityMetadatasClient getVmInstanceHybridIdentityMetadatas();
+ CloudsClient getClouds();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the VirtualNetworksClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the VirtualNetworksClient object.
*/
- OperationsClient getOperations();
+ VirtualNetworksClient getVirtualNetworks();
/**
- * Gets the AvailabilitySetsClient object to access its operations.
+ * Gets the VirtualMachineTemplatesClient object to access its operations.
*
- * @return the AvailabilitySetsClient object.
+ * @return the VirtualMachineTemplatesClient object.
*/
- AvailabilitySetsClient getAvailabilitySets();
+ VirtualMachineTemplatesClient getVirtualMachineTemplates();
/**
- * Gets the CloudsClient object to access its operations.
+ * Gets the AvailabilitySetsClient object to access its operations.
*
- * @return the CloudsClient object.
+ * @return the AvailabilitySetsClient object.
*/
- CloudsClient getClouds();
+ AvailabilitySetsClient getAvailabilitySets();
/**
- * Gets the VirtualMachineTemplatesClient object to access its operations.
+ * Gets the InventoryItemsClient object to access its operations.
*
- * @return the VirtualMachineTemplatesClient object.
+ * @return the InventoryItemsClient object.
*/
- VirtualMachineTemplatesClient getVirtualMachineTemplates();
+ InventoryItemsClient getInventoryItems();
/**
- * Gets the VirtualNetworksClient object to access its operations.
+ * Gets the VirtualMachineInstancesClient object to access its operations.
*
- * @return the VirtualNetworksClient object.
+ * @return the VirtualMachineInstancesClient object.
*/
- VirtualNetworksClient getVirtualNetworks();
+ VirtualMachineInstancesClient getVirtualMachineInstances();
/**
- * Gets the VmmServersClient object to access its operations.
+ * Gets the VmInstanceHybridIdentityMetadatasClient object to access its operations.
*
- * @return the VmmServersClient object.
+ * @return the VmInstanceHybridIdentityMetadatasClient object.
*/
- VmmServersClient getVmmServers();
+ VmInstanceHybridIdentityMetadatasClient getVmInstanceHybridIdentityMetadatas();
/**
- * Gets the InventoryItemsClient object to access its operations.
+ * Gets the GuestAgentsClient object to access its operations.
*
- * @return the InventoryItemsClient object.
+ * @return the GuestAgentsClient object.
*/
- InventoryItemsClient getInventoryItems();
+ GuestAgentsClient getGuestAgents();
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java
index d224a41cfcaf..02991e400f0e 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineInstancesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -24,35 +24,6 @@
* An instance of this class provides access to all the operations defined in VirtualMachineInstancesClient.
*/
public interface VirtualMachineInstancesClient {
- /**
- * Implements List virtual machine instances.
- *
- * Lists all of the virtual machine instances within the specified parent resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineInstance list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceUri);
-
- /**
- * Implements List virtual machine instances.
- *
- * Lists all of the virtual machine instances within the specified parent resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineInstance list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceUri, Context context);
-
/**
* Gets a virtual machine.
*
@@ -63,7 +34,9 @@ public interface VirtualMachineInstancesClient {
* @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 define the virtualMachineInstance along with {@link Response}.
+ * @return a virtual machine.
+ *
+ * Retrieves information about a virtual machine instance along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceUri, Context context);
@@ -77,7 +50,9 @@ public interface VirtualMachineInstancesClient {
* @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 define the virtualMachineInstance.
+ * @return a virtual machine.
+ *
+ * Retrieves information about a virtual machine instance.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualMachineInstanceInner get(String resourceUri);
@@ -277,24 +252,52 @@ SyncPoller, Void> beginDelete(String resourceUri, ForceDelete f
void delete(String resourceUri, ForceDelete force, DeleteFromHost deleteFromHost, Context context);
/**
- * Implements the operation to creates a checkpoint in a virtual machine instance.
+ * Implements List virtual machine instances.
*
- * Creates a checkpoint in virtual machine instance.
+ * Lists all of the virtual machine instances within the specified parent resource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineInstance list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri);
+
+ /**
+ * Implements List virtual machine instances.
+ *
+ * Lists all of the virtual machine instances within the specified parent resource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineInstance list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceUri, Context context);
+
+ /**
+ * Implements the operation to stop a virtual machine.
+ *
+ * The operation to power off (stop) a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginCreateCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body);
+ SyncPoller, Void> beginStop(String resourceUri);
/**
- * Implements the operation to creates a checkpoint in a virtual machine instance.
+ * Implements the operation to stop a virtual machine.
*
- * Creates a checkpoint in virtual machine instance.
+ * The operation to power off (stop) a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -305,27 +308,25 @@ SyncPoller, Void> beginDelete(String resourceUri, ForceDelete f
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginCreateCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body,
- Context context);
+ SyncPoller, Void> beginStop(String resourceUri, StopVirtualMachineOptions body, Context context);
/**
- * Implements the operation to creates a checkpoint in a virtual machine instance.
+ * Implements the operation to stop a virtual machine.
*
- * Creates a checkpoint in virtual machine instance.
+ * The operation to power off (stop) a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body);
+ void stop(String resourceUri);
/**
- * Implements the operation to creates a checkpoint in a virtual machine instance.
+ * Implements the operation to stop a virtual machine.
*
- * Creates a checkpoint in virtual machine instance.
+ * The operation to power off (stop) a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -335,30 +336,28 @@ SyncPoller, Void> beginCreateCheckpoint(String resourceUri, Vir
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body, Context context);
+ void stop(String resourceUri, StopVirtualMachineOptions body, Context context);
/**
- * Implements the operation to delete a checkpoint in a virtual machine instance.
+ * Implements the operation to start a virtual machine.
*
- * Deletes a checkpoint in virtual machine instance.
+ * The operation to start a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body);
+ SyncPoller, Void> beginStart(String resourceUri);
/**
- * Implements the operation to delete a checkpoint in a virtual machine instance.
+ * Implements the operation to start a virtual machine.
*
- * Deletes a checkpoint in virtual machine instance.
+ * The operation to start a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -366,37 +365,34 @@ SyncPoller, Void> beginCreateCheckpoint(String resourceUri, Vir
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body,
- Context context);
+ SyncPoller, Void> beginStart(String resourceUri, Context context);
/**
- * Implements the operation to delete a checkpoint in a virtual machine instance.
+ * Implements the operation to start a virtual machine.
*
- * Deletes a checkpoint in virtual machine instance.
+ * The operation to start a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body);
+ void start(String resourceUri);
/**
- * Implements the operation to delete a checkpoint in a virtual machine instance.
+ * Implements the operation to start a virtual machine.
*
- * Deletes a checkpoint in virtual machine instance.
+ * The operation to start a virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body, Context context);
+ void start(String resourceUri, Context context);
/**
* Implements the operation to restart a virtual machine.
@@ -455,9 +451,9 @@ SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, Vir
void restart(String resourceUri, Context context);
/**
- * Implements the operation to restores to a checkpoint in a virtual machine instance.
+ * Implements the operation to creates a checkpoint in a virtual machine instance.
*
- * Restores to a checkpoint in virtual machine instance.
+ * Creates a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -467,12 +463,12 @@ SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, Vir
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body);
+ SyncPoller, Void> beginCreateCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body);
/**
- * Implements the operation to restores to a checkpoint in a virtual machine instance.
+ * Implements the operation to creates a checkpoint in a virtual machine instance.
*
- * Restores to a checkpoint in virtual machine instance.
+ * Creates a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -483,13 +479,13 @@ SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, Vir
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body,
+ SyncPoller, Void> beginCreateCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body,
Context context);
/**
- * Implements the operation to restores to a checkpoint in a virtual machine instance.
+ * Implements the operation to creates a checkpoint in a virtual machine instance.
*
- * Restores to a checkpoint in virtual machine instance.
+ * Creates a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -498,12 +494,12 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body);
+ void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body);
/**
- * Implements the operation to restores to a checkpoint in a virtual machine instance.
+ * Implements the operation to creates a checkpoint in a virtual machine instance.
*
- * Restores to a checkpoint in virtual machine instance.
+ * Creates a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -513,28 +509,30 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body, Context context);
+ void createCheckpoint(String resourceUri, VirtualMachineCreateCheckpoint body, Context context);
/**
- * Implements the operation to start a virtual machine.
+ * Implements the operation to delete a checkpoint in a virtual machine instance.
*
- * The operation to start a virtual machine instance.
+ * Deletes a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStart(String resourceUri);
+ SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body);
/**
- * Implements the operation to start a virtual machine.
+ * Implements the operation to delete a checkpoint in a virtual machine instance.
*
- * The operation to start a virtual machine instance.
+ * Deletes a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -542,39 +540,42 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStart(String resourceUri, Context context);
+ SyncPoller, Void> beginDeleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body,
+ Context context);
/**
- * Implements the operation to start a virtual machine.
+ * Implements the operation to delete a checkpoint in a virtual machine instance.
*
- * The operation to start a virtual machine instance.
+ * Deletes a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param body The content of the action request.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceUri);
+ void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body);
/**
- * Implements the operation to start a virtual machine.
+ * Implements the operation to delete a checkpoint in a virtual machine instance.
*
- * The operation to start a virtual machine instance.
+ * Deletes a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param body The content of the action request.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceUri, Context context);
+ void deleteCheckpoint(String resourceUri, VirtualMachineDeleteCheckpoint body, Context context);
/**
- * Implements the operation to stop a virtual machine.
+ * Implements the operation to restores to a checkpoint in a virtual machine instance.
*
- * The operation to power off (stop) a virtual machine instance.
+ * Restores to a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -584,12 +585,12 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStop(String resourceUri, StopVirtualMachineOptions body);
+ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body);
/**
- * Implements the operation to stop a virtual machine.
+ * Implements the operation to restores to a checkpoint in a virtual machine instance.
*
- * The operation to power off (stop) a virtual machine instance.
+ * Restores to a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -600,12 +601,13 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginStop(String resourceUri, StopVirtualMachineOptions body, Context context);
+ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body,
+ Context context);
/**
- * Implements the operation to stop a virtual machine.
+ * Implements the operation to restores to a checkpoint in a virtual machine instance.
*
- * The operation to power off (stop) a virtual machine instance.
+ * Restores to a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -614,12 +616,12 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void stop(String resourceUri, StopVirtualMachineOptions body);
+ void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body);
/**
- * Implements the operation to stop a virtual machine.
+ * Implements the operation to restores to a checkpoint in a virtual machine instance.
*
- * The operation to power off (stop) a virtual machine instance.
+ * Restores to a checkpoint in virtual machine instance.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
* @param body The content of the action request.
@@ -629,5 +631,5 @@ SyncPoller, Void> beginRestoreCheckpoint(String resourceUri, Vi
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void stop(String resourceUri, StopVirtualMachineOptions body, Context context);
+ void restoreCheckpoint(String resourceUri, VirtualMachineRestoreCheckpoint body, Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineTemplatesClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineTemplatesClient.java
index b252f67d1615..4a2fdaf72387 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineTemplatesClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualMachineTemplatesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -19,61 +19,6 @@
* An instance of this class provides access to all the operations defined in VirtualMachineTemplatesClient.
*/
public interface VirtualMachineTemplatesClient {
- /**
- * Implements GET VirtualMachineTemplates in a subscription.
- *
- * List of VirtualMachineTemplates in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Implements GET VirtualMachineTemplates in a subscription.
- *
- * List of VirtualMachineTemplates in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Implements GET VirtualMachineTemplates in a resource group.
- *
- * List of VirtualMachineTemplates in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Implements GET VirtualMachineTemplates in a resource group.
- *
- * List of VirtualMachineTemplates in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets a VirtualMachineTemplate.
*
@@ -85,7 +30,9 @@ public interface VirtualMachineTemplatesClient {
* @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 VirtualMachineTemplates resource definition along with {@link Response}.
+ * @return a VirtualMachineTemplate.
+ *
+ * Implements VirtualMachineTemplate GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName,
@@ -101,7 +48,9 @@ Response getByResourceGroupWithResponse(String reso
* @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 VirtualMachineTemplates resource definition.
+ * @return a VirtualMachineTemplate.
+ *
+ * Implements VirtualMachineTemplate GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualMachineTemplateInner getByResourceGroup(String resourceGroupName, String virtualMachineTemplateName);
@@ -310,4 +259,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String virtualMachineTemplateName, ForceDelete force, Context context);
+
+ /**
+ * Implements GET VirtualMachineTemplates in a resource group.
+ *
+ * List of VirtualMachineTemplates in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Implements GET VirtualMachineTemplates in a resource group.
+ *
+ * List of VirtualMachineTemplates in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Implements GET VirtualMachineTemplates in a subscription.
+ *
+ * List of VirtualMachineTemplates in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Implements GET VirtualMachineTemplates in a subscription.
+ *
+ * List of VirtualMachineTemplates in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualMachineTemplate list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualNetworksClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualNetworksClient.java
index e66b0a46c8e4..bfd3c1a3e758 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualNetworksClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VirtualNetworksClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -19,61 +19,6 @@
* An instance of this class provides access to all the operations defined in VirtualNetworksClient.
*/
public interface VirtualNetworksClient {
- /**
- * Implements GET VirtualNetworks in a subscription.
- *
- * List of VirtualNetworks in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Implements GET VirtualNetworks in a subscription.
- *
- * List of VirtualNetworks in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Implements GET VirtualNetworks in a resource group.
- *
- * List of VirtualNetworks in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Implements GET VirtualNetworks in a resource group.
- *
- * List of VirtualNetworks in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets a VirtualNetwork.
*
@@ -85,7 +30,9 @@ public interface VirtualNetworksClient {
* @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 VirtualNetworks resource definition along with {@link Response}.
+ * @return a VirtualNetwork.
+ *
+ * Implements VirtualNetwork GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String virtualNetworkName,
@@ -101,7 +48,9 @@ Response getByResourceGroupWithResponse(String resourceGrou
* @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 VirtualNetworks resource definition.
+ * @return a VirtualNetwork.
+ *
+ * Implements VirtualNetwork GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VirtualNetworkInner getByResourceGroup(String resourceGroupName, String virtualNetworkName);
@@ -308,4 +257,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String virtualNetworkName, ForceDelete force, Context context);
+
+ /**
+ * Implements GET VirtualNetworks in a resource group.
+ *
+ * List of VirtualNetworks in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Implements GET VirtualNetworks in a resource group.
+ *
+ * List of VirtualNetworks in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Implements GET VirtualNetworks in a subscription.
+ *
+ * List of VirtualNetworks in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Implements GET VirtualNetworks in a subscription.
+ *
+ * List of VirtualNetworks in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VirtualNetwork list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmInstanceHybridIdentityMetadatasClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmInstanceHybridIdentityMetadatasClient.java
index f886535bb147..d7b764a89118 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmInstanceHybridIdentityMetadatasClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmInstanceHybridIdentityMetadatasClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -16,63 +16,67 @@
*/
public interface VmInstanceHybridIdentityMetadatasClient {
/**
- * Implements GET HybridIdentityMetadata in a vm.
+ * Gets HybridIdentityMetadata.
*
- * Returns the list of HybridIdentityMetadata of the given VM.
+ * Implements HybridIdentityMetadata GET method.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmInstanceHybridIdentityMetadata list operation as paginated response with
- * {@link PagedIterable}.
+ * @return hybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualMachineInstance(String resourceUri);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceUri, Context context);
/**
- * Implements GET HybridIdentityMetadata in a vm.
+ * Gets HybridIdentityMetadata.
*
- * Returns the list of HybridIdentityMetadata of the given VM.
+ * Implements HybridIdentityMetadata GET method.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmInstanceHybridIdentityMetadata list operation as paginated response with
- * {@link PagedIterable}.
+ * @return hybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByVirtualMachineInstance(String resourceUri,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VmInstanceHybridIdentityMetadataInner get(String resourceUri);
/**
- * Gets HybridIdentityMetadata.
+ * Implements GET HybridIdentityMetadata in a vm.
*
- * Implements HybridIdentityMetadata GET method.
+ * Returns the list of HybridIdentityMetadata of the given VM.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return defines the HybridIdentityMetadata along with {@link Response}.
+ * @return the response of a VmInstanceHybridIdentityMetadata list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceUri, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVirtualMachineInstance(String resourceUri);
/**
- * Gets HybridIdentityMetadata.
+ * Implements GET HybridIdentityMetadata in a vm.
*
- * Implements HybridIdentityMetadata GET method.
+ * Returns the list of HybridIdentityMetadata of the given VM.
*
* @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return defines the HybridIdentityMetadata.
+ * @return the response of a VmInstanceHybridIdentityMetadata list operation as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- VmInstanceHybridIdentityMetadataInner get(String resourceUri);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByVirtualMachineInstance(String resourceUri,
+ Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmmServersClient.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmmServersClient.java
index a559ca804b78..75762f12c64a 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmmServersClient.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/VmmServersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent;
@@ -19,61 +19,6 @@
* An instance of this class provides access to all the operations defined in VmmServersClient.
*/
public interface VmmServersClient {
- /**
- * Implements GET VmmServers in a subscription.
- *
- * List of VmmServers in a subscription.
- *
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * Implements GET VmmServers in a subscription.
- *
- * List of VmmServers in a subscription.
- *
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Implements GET VmmServers in a resource group.
- *
- * List of VmmServers in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Implements GET VmmServers in a resource group.
- *
- * List of VmmServers in a resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
/**
* Gets a VMMServer.
*
@@ -85,7 +30,9 @@ public interface VmmServersClient {
* @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 VmmServers resource definition along with {@link Response}.
+ * @return a VMMServer.
+ *
+ * Implements VmmServer GET method along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(String resourceGroupName, String vmmServerName,
@@ -101,7 +48,9 @@ Response getByResourceGroupWithResponse(String resourceGroupName
* @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 VmmServers resource definition.
+ * @return a VMMServer.
+ *
+ * Implements VmmServer GET method.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
VmmServerInner getByResourceGroup(String resourceGroupName, String vmmServerName);
@@ -306,4 +255,59 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String vmmServerName, ForceDelete force, Context context);
+
+ /**
+ * Implements GET VmmServers in a resource group.
+ *
+ * List of VmmServers in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Implements GET VmmServers in a resource group.
+ *
+ * List of VmmServers in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Implements GET VmmServers in a subscription.
+ *
+ * List of VmmServers in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Implements GET VmmServers in a subscription.
+ *
+ * List of VmmServers in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a VmmServer list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
}
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java
index 8b902f8f5143..35ecd03ac802 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/AvailabilitySetInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -37,9 +37,9 @@ public final class AvailabilitySetInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class AvailabilitySetInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of AvailabilitySetInner class.
@@ -107,13 +107,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -127,13 +127,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java
index 90cf0eae97b2..db677977e106 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/CloudInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -37,9 +37,9 @@ public final class CloudInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class CloudInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of CloudInner class.
@@ -107,13 +107,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -127,13 +127,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java
index 3193a51c1136..f15188ec0200 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/GuestAgentInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -29,9 +29,9 @@ public final class GuestAgentInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,9 +39,9 @@ public final class GuestAgentInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of GuestAgentInner class.
@@ -79,13 +79,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -99,13 +99,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java
index 9ab0a50b5df5..c80149744270 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/InventoryItemInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -36,9 +36,9 @@ public final class InventoryItemInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -46,9 +46,9 @@ public final class InventoryItemInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of InventoryItemInner class.
@@ -110,13 +110,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -130,13 +130,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/OperationInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/OperationInner.java
index 4a0db33126a7..726b4500a0b1 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/OperationInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/OperationInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -15,8 +15,6 @@
import java.io.IOException;
/**
- * REST API Operation
- *
* Details of a REST API operation, returned from the Resource Provider Operations API.
*/
@Immutable
@@ -28,8 +26,8 @@ public final class OperationInner implements JsonSerializable {
private String name;
/*
- * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for
- * ARM/control-plane operations.
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
*/
private Boolean isDataAction;
@@ -45,7 +43,7 @@ public final class OperationInner implements JsonSerializable {
private Origin origin;
/*
- * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
*/
private ActionType actionType;
@@ -67,7 +65,7 @@ public String name() {
/**
* Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
- * operations and "false" for ARM/control-plane operations.
+ * operations and "false" for Azure Resource Manager/control-plane operations.
*
* @return the isDataAction value.
*/
@@ -95,8 +93,8 @@ public Origin origin() {
}
/**
- * Get the actionType property: Enum. Indicates the action type. "Internal" refers to actions that are for internal
- * only APIs.
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
*
* @return the actionType value.
*/
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java
index 7e5f5a6d72a0..8f3ae16e35f1 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -36,9 +36,9 @@ public final class VirtualMachineInstanceInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -46,9 +46,9 @@ public final class VirtualMachineInstanceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VirtualMachineInstanceInner class.
@@ -106,13 +106,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -126,13 +126,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineInstanceUpdateProperties.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceUpdateProperties.java
similarity index 94%
rename from sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineInstanceUpdateProperties.java
rename to sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceUpdateProperties.java
index c7be4f35c5a9..3776bbb9d0b4 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/models/VirtualMachineInstanceUpdateProperties.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineInstanceUpdateProperties.java
@@ -1,14 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
-package com.azure.resourcemanager.scvmm.models;
+package com.azure.resourcemanager.scvmm.fluent.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 com.azure.resourcemanager.scvmm.models.AvailabilitySetListItem;
+import com.azure.resourcemanager.scvmm.models.HardwareProfileUpdate;
+import com.azure.resourcemanager.scvmm.models.InfrastructureProfileUpdate;
+import com.azure.resourcemanager.scvmm.models.NetworkProfileUpdate;
+import com.azure.resourcemanager.scvmm.models.StorageProfileUpdate;
import java.io.IOException;
import java.util.List;
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java
index a51ddc0ba56e..7afe9d13df26 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualMachineTemplateInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -37,9 +37,9 @@ public final class VirtualMachineTemplateInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class VirtualMachineTemplateInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VirtualMachineTemplateInner class.
@@ -107,13 +107,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -127,13 +127,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java
index 074bfd63c7de..fe14b39644ea 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VirtualNetworkInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -37,9 +37,9 @@ public final class VirtualNetworkInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class VirtualNetworkInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VirtualNetworkInner class.
@@ -107,13 +107,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -127,13 +127,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java
index dfd9097c7ced..233ef19a8fdd 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmInstanceHybridIdentityMetadataInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
@@ -16,7 +16,7 @@
/**
* Defines the HybridIdentityMetadata.
*/
-@Fluent
+@Immutable
public final class VmInstanceHybridIdentityMetadataInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
@@ -29,9 +29,9 @@ public final class VmInstanceHybridIdentityMetadataInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -39,14 +39,14 @@ public final class VmInstanceHybridIdentityMetadataInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VmInstanceHybridIdentityMetadataInner class.
*/
- public VmInstanceHybridIdentityMetadataInner() {
+ private VmInstanceHybridIdentityMetadataInner() {
}
/**
@@ -58,17 +58,6 @@ public VmInstanceHybridIdentityMetadataProperties properties() {
return this.properties;
}
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the VmInstanceHybridIdentityMetadataInner object itself.
- */
- public VmInstanceHybridIdentityMetadataInner withProperties(VmInstanceHybridIdentityMetadataProperties properties) {
- this.properties = properties;
- return this;
- }
-
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
@@ -79,13 +68,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -99,13 +88,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java
index c861dccd3968..591c35eb7213 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/VmmServerInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.fluent.models;
@@ -37,9 +37,9 @@ public final class VmmServerInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -47,9 +47,9 @@ public final class VmmServerInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of VmmServerInner class.
@@ -107,13 +107,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -127,13 +127,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/package-info.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/package-info.java
index 04a3c49ce47c..301d65605591 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/package-info.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the inner data models for ScvmmClient.
- * SCVMM Client.
+ * Package containing the inner data models for SCVMM.
+ * The Microsoft.ScVmm Rest API spec.
*/
package com.azure.resourcemanager.scvmm.fluent.models;
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/package-info.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/package-info.java
index af00da8e8cdc..bb624fc419e3 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/package-info.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
- * Package containing the service clients for ScvmmClient.
- * SCVMM Client.
+ * Package containing the service clients for SCVMM.
+ * The Microsoft.ScVmm Rest API spec.
*/
package com.azure.resourcemanager.scvmm.fluent;
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetImpl.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetImpl.java
index a519197c35d6..9f25557db88a 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetImpl.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.implementation;
@@ -18,7 +18,7 @@
public final class AvailabilitySetImpl implements AvailabilitySet, AvailabilitySet.Definition, AvailabilitySet.Update {
private AvailabilitySetInner innerObject;
- private final com.azure.resourcemanager.scvmm.ScvmmManager serviceManager;
+ private final com.azure.resourcemanager.scvmm.SCVMMManager serviceManager;
public String id() {
return this.innerModel().id();
@@ -73,7 +73,7 @@ public AvailabilitySetInner innerModel() {
return this.innerObject;
}
- private com.azure.resourcemanager.scvmm.ScvmmManager manager() {
+ private com.azure.resourcemanager.scvmm.SCVMMManager manager() {
return this.serviceManager;
}
@@ -102,7 +102,7 @@ public AvailabilitySet create(Context context) {
return this;
}
- AvailabilitySetImpl(String name, com.azure.resourcemanager.scvmm.ScvmmManager serviceManager) {
+ AvailabilitySetImpl(String name, com.azure.resourcemanager.scvmm.SCVMMManager serviceManager) {
this.innerObject = new AvailabilitySetInner();
this.serviceManager = serviceManager;
this.availabilitySetResourceName = name;
@@ -127,7 +127,7 @@ public AvailabilitySet apply(Context context) {
return this;
}
- AvailabilitySetImpl(AvailabilitySetInner innerObject, com.azure.resourcemanager.scvmm.ScvmmManager serviceManager) {
+ AvailabilitySetImpl(AvailabilitySetInner innerObject, com.azure.resourcemanager.scvmm.SCVMMManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
diff --git a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetsClientImpl.java b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetsClientImpl.java
index cf3cbbd44d04..9cb255e604c0 100644
--- a/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetsClientImpl.java
+++ b/sdk/scvmm/azure-resourcemanager-scvmm/src/main/java/com/azure/resourcemanager/scvmm/implementation/AvailabilitySetsClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.scvmm.implementation;
@@ -34,7 +34,7 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.scvmm.fluent.AvailabilitySetsClient;
import com.azure.resourcemanager.scvmm.fluent.models.AvailabilitySetInner;
-import com.azure.resourcemanager.scvmm.models.AvailabilitySetListResult;
+import com.azure.resourcemanager.scvmm.implementation.models.AvailabilitySetListResult;
import com.azure.resourcemanager.scvmm.models.AvailabilitySetTagsUpdate;
import com.azure.resourcemanager.scvmm.models.ForceDelete;
import java.nio.ByteBuffer;
@@ -53,91 +53,81 @@ public final class AvailabilitySetsClientImpl implements AvailabilitySetsClient
/**
* The service client containing this operation class.
*/
- private final ScvmmClientImpl client;
+ private final ScVmmClientImpl client;
/**
* Initializes an instance of AvailabilitySetsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- AvailabilitySetsClientImpl(ScvmmClientImpl client) {
+ AvailabilitySetsClientImpl(ScVmmClientImpl client) {
this.service
= RestProxy.create(AvailabilitySetsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for ScvmmClientAvailabilitySets to be used by the proxy service to
+ * The interface defining all the services for ScVmmClientAvailabilitySets to be used by the proxy service to
* perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "ScvmmClientAvailabil")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ScVmmClientAvailabil")
public interface AvailabilitySetsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/availabilitySets")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(@HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
- Context context);
-
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("availabilitySetResourceName") String availabilitySetResourceName,
@HeaderParam("Accept") String accept, Context context);
- @Headers({ "Content-Type: application/json" })
@Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("$host") String endpoint,
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("availabilitySetResourceName") String availabilitySetResourceName,
- @BodyParam("application/json") AvailabilitySetInner resource, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AvailabilitySetInner resource, Context context);
- @Headers({ "Content-Type: application/json" })
@Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName,
@PathParam("availabilitySetResourceName") String availabilitySetResourceName,
- @BodyParam("application/json") AvailabilitySetTagsUpdate properties, @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") AvailabilitySetTagsUpdate properties, Context context);
@Headers({ "Content-Type: application/json" })
@Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets/{availabilitySetResourceName}")
@ExpectedResponses({ 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @QueryParam("force") ForceDelete force,
@PathParam("availabilitySetResourceName") String availabilitySetResourceName,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ScVmm/availabilitySets")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/availabilitySets")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -145,22 +135,35 @@ Mono> listBySubscriptionNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
- * Implements GET AvailabilitySets in a subscription.
+ * Gets an AvailabilitySet.
*
- * List of AvailabilitySets in a subscription.
+ * Implements AvailabilitySet GET method.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @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 of a AvailabilitySet list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync() {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -169,29 +172,39 @@ private Mono> listSinglePageAsync() {
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (availabilitySetResourceName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements GET AvailabilitySets in a subscription.
+ * Gets an AvailabilitySet.
*
- * List of AvailabilitySets in a subscription.
+ * Implements AvailabilitySet GET method.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
* @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 of a AvailabilitySet list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listSinglePageAsync(Context context) {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -200,91 +213,98 @@ private Mono> listSinglePageAsync(Context co
return Mono.error(new IllegalArgumentException(
"Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (availabilitySetResourceName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
+ }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
- context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, accept, context);
}
/**
- * Implements GET AvailabilitySets in a subscription.
+ * Gets an AvailabilitySet.
*
- * List of AvailabilitySets in a subscription.
+ * Implements AvailabilitySet GET method.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @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 of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method on successful completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync() {
- return new PagedFlux<>(() -> listSinglePageAsync(),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName,
+ String availabilitySetResourceName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, availabilitySetResourceName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
}
/**
- * Implements GET AvailabilitySets in a subscription.
+ * Gets an AvailabilitySet.
*
- * List of AvailabilitySets in a subscription.
+ * Implements AvailabilitySet GET method.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
* @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 of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listAsync(Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(context),
- nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
- }
-
- /**
- * Implements GET AvailabilitySets in a subscription.
- *
- * List of AvailabilitySets in a subscription.
+ * @return an AvailabilitySet.
*
- * @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 of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ * Implements AvailabilitySet GET method along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list() {
- return new PagedIterable<>(listAsync());
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String availabilitySetResourceName, Context context) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, availabilitySetResourceName, context).block();
}
/**
- * Implements GET AvailabilitySets in a subscription.
+ * Gets an AvailabilitySet.
*
- * List of AvailabilitySets in a subscription.
+ * Implements AvailabilitySet GET method.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
* @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 of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ * @return an AvailabilitySet.
+ *
+ * Implements AvailabilitySet GET method.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable list(Context context) {
- return new PagedIterable<>(listAsync(context));
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetResourceName) {
+ return getByResourceGroupWithResponse(resourceGroupName, availabilitySetResourceName, Context.NONE).getValue();
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return the AvailabilitySets resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetInner resource) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -297,31 +317,42 @@ private Mono> listByResourceGroupSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
+ if (availabilitySetResourceName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, contentType, accept,
+ resource, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
+ * @return the AvailabilitySets resource definition along with {@link Response} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
- Context context) {
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -334,224 +365,197 @@ private Mono> listByResourceGroupSinglePageA
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
+ if (availabilitySetResourceName == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
+ }
+ if (resource == null) {
+ return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ } else {
+ resource.validate();
+ }
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, accept, context)
- .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
- res.getValue().value(), res.getValue().nextLink(), null));
+ return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, contentType, accept,
+ resource, context);
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AvailabilitySetInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, availabilitySetResourceName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AvailabilitySetInner.class, AvailabilitySetInner.class, this.client.getContext());
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
+ * @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
- return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
- nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, AvailabilitySetInner> beginCreateOrUpdateAsync(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, availabilitySetResourceName, resource, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ AvailabilitySetInner.class, AvailabilitySetInner.class, context);
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AvailabilitySetInner> beginCreateOrUpdate(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).getSyncPoller();
}
/**
- * Implements GET AvailabilitySets in a resource group.
+ * Implements AvailabilitySets PUT method.
*
- * List of AvailabilitySets in a resource group.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
- return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, AvailabilitySetInner> beginCreateOrUpdate(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
+ return this.beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context)
+ .getSyncPoller();
}
/**
- * Gets an AvailabilitySet.
+ * Implements AvailabilitySets PUT method.
*
- * Implements AvailabilitySet GET method.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the AvailabilitySets resource definition along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the AvailabilitySets resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (availabilitySetResourceName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
- }
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ private Mono createOrUpdateAsync(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Gets an AvailabilitySet.
+ * Implements AvailabilitySets PUT method.
*
- * Implements AvailabilitySet GET method.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the AvailabilitySets resource definition along with {@link Response} on successful completion of
- * {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, Context context) {
- if (this.client.getEndpoint() == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (availabilitySetResourceName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
- }
- final String accept = "application/json";
- context = this.client.mergeContext(context);
- return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, accept, context);
- }
-
- /**
- * Gets an AvailabilitySet.
- *
- * Implements AvailabilitySet GET method.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @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 AvailabilitySets resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getByResourceGroupAsync(String resourceGroupName,
- String availabilitySetResourceName) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, availabilitySetResourceName)
- .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ private Mono createOrUpdateAsync(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetInner resource, Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Gets an AvailabilitySet.
+ * Implements AvailabilitySets PUT method.
*
- * Implements AvailabilitySet GET method.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param context The context to associate with this operation.
+ * @param resource Resource create parameters.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the AvailabilitySets resource definition along with {@link Response}.
+ * @return the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(String resourceGroupName,
- String availabilitySetResourceName, Context context) {
- return getByResourceGroupWithResponseAsync(resourceGroupName, availabilitySetResourceName, context).block();
+ public AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetInner resource) {
+ return createOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).block();
}
/**
- * Gets an AvailabilitySet.
+ * Implements AvailabilitySets PUT method.
*
- * Implements AvailabilitySet GET method.
+ * Onboards the ScVmm availability set as an Azure resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetResourceName) {
- return getByResourceGroupWithResponse(resourceGroupName, availabilitySetResourceName, Context.NONE).getValue();
+ public AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetInner resource, Context context) {
+ return createOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context).block();
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @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.
@@ -559,8 +563,8 @@ public AvailabilitySetInner getByResourceGroup(String resourceGroupName, String
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetInner resource) {
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -577,27 +581,28 @@ private Mono>> createOrUpdateWithResponseAsync(String
return Mono.error(
new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
}
- if (resource == null) {
- return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
} else {
- resource.validate();
+ properties.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, resource, accept,
- context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, contentType, accept,
+ properties, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -606,8 +611,8 @@ private Mono>> createOrUpdateWithResponseAsync(String
* {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
+ private Mono>> updateWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetTagsUpdate properties, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -624,47 +629,48 @@ private Mono>> createOrUpdateWithResponseAsync(String
return Mono.error(
new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
}
- if (resource == null) {
- return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null."));
+ if (properties == null) {
+ return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
} else {
- resource.validate();
+ properties.validate();
}
+ final String contentType = "application/json";
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, resource, accept, context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, availabilitySetResourceName, contentType, accept, properties, context);
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AvailabilitySetInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource) {
+ private PollerFlux, AvailabilitySetInner> beginUpdateAsync(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, availabilitySetResourceName, resource);
+ = updateWithResponseAsync(resourceGroupName, availabilitySetResourceName, properties);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
AvailabilitySetInner.class, AvailabilitySetInner.class, this.client.getContext());
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -672,42 +678,43 @@ private PollerFlux, AvailabilitySetInner> begin
* @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AvailabilitySetInner> beginCreateOrUpdateAsync(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
+ private PollerFlux, AvailabilitySetInner> beginUpdateAsync(
+ String resourceGroupName, String availabilitySetResourceName, AvailabilitySetTagsUpdate properties,
+ Context context) {
context = this.client.mergeContext(context);
Mono>> mono
- = createOrUpdateWithResponseAsync(resourceGroupName, availabilitySetResourceName, resource, context);
+ = updateWithResponseAsync(resourceGroupName, availabilitySetResourceName, properties, context);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
AvailabilitySetInner.class, AvailabilitySetInner.class, context);
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AvailabilitySetInner> beginCreateOrUpdate(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).getSyncPoller();
+ public SyncPoller, AvailabilitySetInner> beginUpdate(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
+ return this.beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties).getSyncPoller();
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -715,40 +722,40 @@ public SyncPoller, AvailabilitySetInner> beginC
* @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AvailabilitySetInner> beginCreateOrUpdate(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetInner resource, Context context) {
- return this.beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context)
+ public SyncPoller, AvailabilitySetInner> beginUpdate(String resourceGroupName,
+ String availabilitySetResourceName, AvailabilitySetTagsUpdate properties, Context context) {
+ return this.beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties, context)
.getSyncPoller();
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @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 AvailabilitySets resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetInner resource) {
- return beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).last()
+ private Mono updateAsync(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetTagsUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -756,39 +763,39 @@ private Mono createOrUpdateAsync(String resourceGroupName,
* @return the AvailabilitySets resource definition on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetInner resource, Context context) {
- return beginCreateOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context).last()
+ private Mono updateAsync(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetTagsUpdate properties, Context context) {
+ return beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @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 AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetInner resource) {
- return createOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource).block();
+ public AvailabilitySetInner update(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetTagsUpdate properties) {
+ return updateAsync(resourceGroupName, availabilitySetResourceName, properties).block();
}
/**
- * Implements AvailabilitySets PUT method.
+ * Implements the AvailabilitySets PATCH method.
*
- * Onboards the ScVmm availability set as an Azure resource.
+ * Updates the AvailabilitySets resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param resource Resource create parameters.
+ * @param properties The resource properties to be updated.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -796,28 +803,27 @@ public AvailabilitySetInner createOrUpdate(String resourceGroupName, String avai
* @return the AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AvailabilitySetInner createOrUpdate(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetInner resource, Context context) {
- return createOrUpdateAsync(resourceGroupName, availabilitySetResourceName, resource, context).block();
+ public AvailabilitySetInner update(String resourceGroupName, String availabilitySetResourceName,
+ AvailabilitySetTagsUpdate properties, Context context) {
+ return updateAsync(resourceGroupName, availabilitySetResourceName, properties, context).block();
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
* @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 AvailabilitySets resource definition along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, ForceDelete force) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -834,37 +840,29 @@ private Mono>> updateWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, availabilitySetResourceName, properties, accept,
- context))
+ return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, force, availabilitySetResourceName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
* @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 AvailabilitySets resource definition along with {@link Response} on successful completion of
- * {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetTagsUpdate properties, Context context) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String availabilitySetResourceName, ForceDelete force, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -881,182 +879,193 @@ private Mono>> updateWithResponseAsync(String resource
return Mono.error(
new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
}
- if (properties == null) {
- return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null."));
- } else {
- properties.validate();
- }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, availabilitySetResourceName, properties, accept, context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, force, availabilitySetResourceName, accept, context);
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AvailabilitySetInner> beginUpdateAsync(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String availabilitySetResourceName, ForceDelete force) {
Mono>> mono
- = updateWithResponseAsync(resourceGroupName, availabilitySetResourceName, properties);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- AvailabilitySetInner.class, AvailabilitySetInner.class, this.client.getContext());
+ = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String availabilitySetResourceName) {
+ final ForceDelete force = null;
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Implements AvailabilitySet DELETE method.
+ *
+ * Deregisters the ScVmm availability set from Azure.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param force Forces the resource to be deleted.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of the AvailabilitySets resource definition.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, AvailabilitySetInner> beginUpdateAsync(
- String resourceGroupName, String availabilitySetResourceName, AvailabilitySetTagsUpdate properties,
- Context context) {
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
+ String availabilitySetResourceName, ForceDelete force, Context context) {
context = this.client.mergeContext(context);
Mono>> mono
- = updateWithResponseAsync(resourceGroupName, availabilitySetResourceName, properties, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(),
- AvailabilitySetInner.class, AvailabilitySetInner.class, context);
+ = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AvailabilitySetInner> beginUpdate(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetTagsUpdate properties) {
- return this.beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties).getSyncPoller();
+ public SyncPoller, Void> beginDelete(String resourceGroupName,
+ String availabilitySetResourceName) {
+ final ForceDelete force = null;
+ return this.beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).getSyncPoller();
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of the AvailabilitySets resource definition.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, AvailabilitySetInner> beginUpdate(String resourceGroupName,
- String availabilitySetResourceName, AvailabilitySetTagsUpdate properties, Context context) {
- return this.beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties, context)
- .getSyncPoller();
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String availabilitySetResourceName,
+ ForceDelete force, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force, context).getSyncPoller();
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
* @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 AvailabilitySets resource definition on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetTagsUpdate properties) {
- return beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties).last()
+ private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName, ForceDelete force) {
+ return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 AvailabilitySets resource definition on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetTagsUpdate properties, Context context) {
- return beginUpdateAsync(resourceGroupName, availabilitySetResourceName, properties, context).last()
+ private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName) {
+ final ForceDelete force = null;
+ return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
+ * @param force Forces the resource to be deleted.
+ * @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 AvailabilitySets resource definition.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AvailabilitySetInner update(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetTagsUpdate properties) {
- return updateAsync(resourceGroupName, availabilitySetResourceName, properties).block();
+ private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName, ForceDelete force,
+ Context context) {
+ return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force, context).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Implements the AvailabilitySets PATCH method.
+ * Implements AvailabilitySet DELETE method.
*
- * Updates the AvailabilitySets resource.
+ * Deregisters the ScVmm availability set from Azure.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param properties The resource properties to be updated.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 AvailabilitySets resource definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public AvailabilitySetInner update(String resourceGroupName, String availabilitySetResourceName,
- AvailabilitySetTagsUpdate properties, Context context) {
- return updateAsync(resourceGroupName, availabilitySetResourceName, properties, context).block();
+ public void delete(String resourceGroupName, String availabilitySetResourceName) {
+ final ForceDelete force = null;
+ deleteAsync(resourceGroupName, availabilitySetResourceName, force).block();
}
/**
@@ -1067,14 +1076,31 @@ public AvailabilitySetInner update(String resourceGroupName, String availability
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param availabilitySetResourceName Name of the AvailabilitySet.
* @param force Forces the resource to be deleted.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, ForceDelete force) {
+ public void delete(String resourceGroupName, String availabilitySetResourceName, ForceDelete force,
+ Context context) {
+ deleteAsync(resourceGroupName, availabilitySetResourceName, force, context).block();
+ }
+
+ /**
+ * Implements GET AvailabilitySets in a resource group.
+ *
+ * List of AvailabilitySets in a resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 of a AvailabilitySet list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1087,33 +1113,31 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (availabilitySetResourceName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
- }
final String accept = "application/json";
- return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, force, availabilitySetResourceName, accept, context))
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a resource group.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return the response of a AvailabilitySet list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(String resourceGroupName,
- String availabilitySetResourceName, ForceDelete force, Context context) {
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
+ Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -1126,219 +1150,208 @@ private Mono>> deleteWithResponseAsync(String resource
return Mono
.error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
}
- if (availabilitySetResourceName == null) {
- return Mono.error(
- new IllegalArgumentException("Parameter availabilitySetResourceName is required and cannot be null."));
- }
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
- resourceGroupName, force, availabilitySetResourceName, accept, context);
+ return service
+ .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, accept, context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a resource group.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String availabilitySetResourceName, ForceDelete force) {
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a resource group.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String availabilitySetResourceName) {
- final ForceDelete force = null;
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a resource group.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(String resourceGroupName,
- String availabilitySetResourceName, ForceDelete force, Context context) {
- context = this.client.mergeContext(context);
- Mono>> mono
- = deleteWithResponseAsync(resourceGroupName, availabilitySetResourceName, force, context);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a resource group.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName,
- String availabilitySetResourceName) {
- final ForceDelete force = null;
- return this.beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).getSyncPoller();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the response of a AvailabilitySet list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String availabilitySetResourceName,
- ForceDelete force, Context context) {
- return this.beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force, context).getSyncPoller();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
+ * @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 A {@link Mono} that completes when a successful response is received.
+ * @return the response of a AvailabilitySet list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName, ForceDelete force) {
- return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ private Mono> listSinglePageAsync(Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept,
+ context)
+ .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName) {
- final ForceDelete force = null;
- return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
* @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 A {@link Mono} that completes when a successful response is received.
+ * @return the response of a AvailabilitySet list operation as paginated response with {@link PagedFlux}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String availabilitySetResourceName, ForceDelete force,
- Context context) {
- return beginDeleteAsync(resourceGroupName, availabilitySetResourceName, force, context).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(context),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context));
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @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 of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String availabilitySetResourceName) {
- final ForceDelete force = null;
- deleteAsync(resourceGroupName, availabilitySetResourceName, force).block();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(listAsync());
}
/**
- * Implements AvailabilitySet DELETE method.
+ * Implements GET AvailabilitySets in a subscription.
*
- * Deregisters the ScVmm availability set from Azure.
+ * List of AvailabilitySets in a subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param availabilitySetResourceName Name of the AvailabilitySet.
- * @param force Forces the resource to be deleted.
* @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 of a AvailabilitySet list operation as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String availabilitySetResourceName, ForceDelete force,
- Context context) {
- deleteAsync(resourceGroupName, availabilitySetResourceName, force, context).block();
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(listAsync(context));
}
/**
+ * Implements GET AvailabilitySets in a resource group.
+ *
* Get the next page of items.
*
* @param nextLink The URL to get the next list of items.
@@ -1349,7 +1362,7 @@ public void delete(String resourceGroupName, String availabilitySetResourceName,
* completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ private Mono