Create Or Update cluster.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param clusterName Name of the cluster.
- * @param body Request payload.
- * @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 cluster.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner create(String resourceGroupName, String clusterName, ClusterInner body);
-
/**
* Implements cluster PUT method.
*
@@ -99,21 +81,6 @@ SyncPoller Implements cluster GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param clusterName Name of the cluster.
- * @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 cluster.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ClusterInner getByResourceGroup(String resourceGroupName, String clusterName);
-
/**
* Gets a cluster.
*
@@ -132,9 +99,9 @@ Response API to update certain properties of the cluster resource.
+ * Implements cluster GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param clusterName Name of the cluster.
@@ -144,7 +111,7 @@ Response Implements cluster DELETE method.
+ * API to update certain properties of the cluster resource.
*
* @param resourceGroupName The Resource Group Name.
* @param clusterName Name of the cluster.
- * @param force Whether force delete was specified.
* @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.
+ * @return define the cluster.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update datastore.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param datastoreName Name of the datastore.
- * @param body Request payload.
- * @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 datastore.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DatastoreInner create(String resourceGroupName, String datastoreName, DatastoreInner body);
-
/**
* Implements datastore PUT method.
*
@@ -99,21 +81,6 @@ SyncPoller Implements datastore GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param datastoreName Name of the datastore.
- * @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 datastore.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- DatastoreInner getByResourceGroup(String resourceGroupName, String datastoreName);
-
/**
* Gets a datastore.
*
@@ -132,9 +99,9 @@ Response API to update certain properties of the datastore resource.
+ * Implements datastore GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param datastoreName Name of the datastore.
@@ -144,7 +111,7 @@ Response Implements datastore DELETE method.
+ * API to update certain properties of the datastore resource.
*
* @param resourceGroupName The Resource Group Name.
* @param datastoreName Name of the datastore.
- * @param force Whether force delete was specified.
* @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.
+ * @return define the datastore.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update host.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param hostname Name of the host.
- * @param body Request payload.
- * @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 host.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HostModelInner create(String resourceGroupName, String hostname, HostModelInner body);
-
/**
* Implements host PUT method.
*
@@ -106,13 +88,14 @@ SyncPoller Implements host DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param hostname Name of the host.
- * @param force Whether force delete was specified.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String hostname, Boolean force);
-
/**
* Deletes an host.
*
diff --git a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/HybridIdentityMetadatasClient.java b/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/HybridIdentityMetadatasClient.java
deleted file mode 100644
index f9134bf7bfbd..000000000000
--- a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/HybridIdentityMetadatasClient.java
+++ /dev/null
@@ -1,153 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.connectedvmware.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.connectedvmware.fluent.models.HybridIdentityMetadataInner;
-
-/** An instance of this class provides access to all the operations defined in HybridIdentityMetadatasClient. */
-public interface HybridIdentityMetadatasClient {
- /**
- * Implements HybridIdentityMetadata PUT method.
- *
- * Create Or Update HybridIdentityMetadata.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the hybridIdentityMetadata.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HybridIdentityMetadataInner create(String resourceGroupName, String virtualMachineName, String metadataName);
-
- /**
- * Implements HybridIdentityMetadata PUT method.
- *
- * Create Or Update HybridIdentityMetadata.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the hybridIdentityMetadata.
- * @param body Request payload.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response Implements HybridIdentityMetadata GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the HybridIdentityMetadata.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- HybridIdentityMetadataInner get(String resourceGroupName, String virtualMachineName, String metadataName);
-
- /**
- * Gets HybridIdentityMetadata.
- *
- * Implements HybridIdentityMetadata GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the HybridIdentityMetadata.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response Implements HybridIdentityMetadata DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the HybridIdentityMetadata.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName, String metadataName);
-
- /**
- * Deletes an HybridIdentityMetadata.
- *
- * Implements HybridIdentityMetadata DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param metadataName Name of the HybridIdentityMetadata.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response Returns the list of HybridIdentityMetadata of the given vm.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable Returns the list of HybridIdentityMetadata of the given vm.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable Create Or Update InventoryItem.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param vcenterName Name of the vCenter.
- * @param inventoryItemName Name of the inventoryItem.
- * @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 inventory item.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- InventoryItemInner create(String resourceGroupName, String vcenterName, String inventoryItemName);
-
/**
* Implements InventoryItem PUT method.
*
@@ -53,9 +37,9 @@ Response Implements InventoryItem GET method.
+ * Create Or Update InventoryItem.
*
* @param resourceGroupName The Resource Group Name.
* @param vcenterName Name of the vCenter.
@@ -66,7 +50,7 @@ Response Implements inventoryItem DELETE method.
+ * Implements InventoryItem GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param vcenterName Name of the vCenter.
@@ -97,9 +81,10 @@ Response Implements inventoryItem DELETE method.
+ *
+ * @param resourceGroupName The Resource Group Name.
+ * @param vcenterName Name of the vCenter.
+ * @param inventoryItemName Name of the inventoryItem.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String vcenterName, String inventoryItemName);
+
/**
* Implements GET inventoryItems in a vCenter.
*
diff --git a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/MachineExtensionsClient.java b/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/MachineExtensionsClient.java
deleted file mode 100644
index c691bacf7cc1..000000000000
--- a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/MachineExtensionsClient.java
+++ /dev/null
@@ -1,281 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.connectedvmware.fluent;
-
-import com.azure.core.annotation.ReturnType;
-import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.PagedIterable;
-import com.azure.core.http.rest.Response;
-import com.azure.core.management.polling.PollResult;
-import com.azure.core.util.Context;
-import com.azure.core.util.polling.SyncPoller;
-import com.azure.resourcemanager.connectedvmware.fluent.models.MachineExtensionInner;
-import com.azure.resourcemanager.connectedvmware.models.MachineExtensionUpdate;
-
-/** An instance of this class provides access to all the operations defined in MachineExtensionsClient. */
-public interface MachineExtensionsClient {
- /**
- * The operation to create or update the extension.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param name The name of the machine where the extension should be created or updated.
- * @param extensionName The name of the machine extension.
- * @param extensionParameters Parameters supplied to the Create Machine Extension operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of describes a Machine Extension.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update resourcePool.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param resourcePoolName Name of the resourcePool.
- * @param body Request payload.
- * @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 resourcePool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ResourcePoolInner create(String resourceGroupName, String resourcePoolName, ResourcePoolInner body);
-
/**
* Implements resourcePool PUT method.
*
@@ -100,21 +83,6 @@ SyncPoller Implements resourcePool GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param resourcePoolName Name of the resourcePool.
- * @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 resourcePool.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ResourcePoolInner getByResourceGroup(String resourceGroupName, String resourcePoolName);
-
/**
* Gets a resourcePool.
*
@@ -133,9 +101,9 @@ Response API to update certain properties of the resourcePool resource.
+ * Implements resourcePool GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param resourcePoolName Name of the resourcePool.
@@ -145,7 +113,7 @@ Response Implements resourcePool DELETE method.
+ * API to update certain properties of the resourcePool resource.
*
* @param resourceGroupName The Resource Group Name.
* @param resourcePoolName Name of the resourcePool.
- * @param force Whether force delete was specified.
* @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.
+ * @return define the resourcePool.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update vCenter.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param vcenterName Name of the vCenter.
- * @param body Request payload.
- * @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 vCenter.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VCenterInner create(String resourceGroupName, String vcenterName, VCenterInner body);
-
/**
* Implements vCenter PUT method.
*
@@ -99,21 +81,6 @@ SyncPoller Implements vCenter GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param vcenterName Name of the vCenter.
- * @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 vCenter.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VCenterInner getByResourceGroup(String resourceGroupName, String vcenterName);
-
/**
* Gets a vCenter.
*
@@ -132,9 +99,9 @@ Response API to update certain properties of the vCenter resource.
+ * Implements vCenter GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param vcenterName Name of the vCenter.
@@ -144,7 +111,7 @@ Response Implements vCenter DELETE method.
+ * API to update certain properties of the vCenter resource.
*
* @param resourceGroupName The Resource Group Name.
* @param vcenterName Name of the vCenter.
- * @param force Whether force delete was specified.
* @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.
+ * @return defines the vCenter.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update GuestAgent.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the guestAgents.
- * @param body Request payload.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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 defines the GuestAgent.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update GuestAgent.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the guestAgents.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @param body Request payload.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -50,49 +46,30 @@ SyncPoller Create Or Update GuestAgent.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the guestAgents.
- * @param body Request payload.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GuestAgentInner create(String resourceGroupName, String virtualMachineName, String name, GuestAgentInner body);
+ GuestAgentInner create(String resourceUri);
/**
* Implements GuestAgent PUT method.
*
* Create Or Update GuestAgent.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the guestAgents.
- * @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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GuestAgentInner create(String resourceGroupName, String virtualMachineName, String name);
-
- /**
- * Implements GuestAgent PUT method.
- *
- * Create Or Update GuestAgent.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the guestAgents.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @param body Request payload.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -101,67 +78,61 @@ SyncPoller Implements GuestAgent GET method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 GuestAgent.
+ * @return defines the GuestAgent along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- GuestAgentInner get(String resourceGroupName, String virtualMachineName, String name);
+ Response Implements GuestAgent GET method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
- * @param context The context to associate with this operation.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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 defines the GuestAgent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response Implements GuestAgent DELETE method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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 Implements GuestAgent DELETE method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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.
@@ -169,62 +140,59 @@ Response Implements GuestAgent DELETE method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName, String name);
+ void delete(String resourceUri);
/**
* Deletes an GuestAgent.
*
* Implements GuestAgent DELETE method.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
- * @param name Name of the GuestAgent.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName, String name, Context context);
+ void delete(String resourceUri, Context context);
/**
* Implements GET GuestAgent in a vm.
*
* Returns the list of GuestAgent of the given vm.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of GuestAgent as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable Returns the list of GuestAgent of the given vm.
*
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the vm.
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
* @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.
@@ -232,5 +200,5 @@ SyncPoller The operation to create or update a virtual machine instance. Please note some properties can be set only
+ * during virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to create or update a virtual machine instance. Please note some properties can be set only
+ * during virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Request payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to create or update a virtual machine instance. Please note some properties can be set only
+ * during virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner createOrUpdate(String resourceUri);
+
+ /**
+ * Implements virtual machine PUT method.
+ *
+ * The operation to create or update a virtual machine instance. Please note some properties can be set only
+ * during virtual machine instance creation.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Request payload.
+ * @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 define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner createOrUpdate(String resourceUri, VirtualMachineInstanceInner body, Context context);
+
+ /**
+ * Gets a virtual machine.
+ *
+ * Retrieves information about a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 define the virtualMachineInstance along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response Retrieves information about a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner get(String resourceUri);
+
+ /**
+ * Updates a virtual machine.
+ *
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Resource properties to update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner update(String resourceUri);
+
+ /**
+ * Updates a virtual machine.
+ *
+ * The operation to update a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Resource properties to update.
+ * @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 define the virtualMachineInstance.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineInstanceInner update(String resourceUri, VirtualMachineInstanceUpdate body, Context context);
+
+ /**
+ * Deletes an virtual machine.
+ *
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param deleteFromHost Whether to delete the VM from the vCenter.
+ * @param force Whether force delete was specified.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri);
+
+ /**
+ * Deletes an virtual machine.
+ *
+ * The operation to delete a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param deleteFromHost Whether to delete the VM from the vCenter.
+ * @param force Whether force delete was specified.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceUri, Boolean deleteFromHost, Boolean force, Context context);
+
+ /**
+ * 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 Hybrid Compute machine resource
+ * to be extended.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of VirtualMachineInstances as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable Lists all of the virtual machine instances within the specified parent resource.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of VirtualMachineInstances as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable The operation to power off (stop) a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 The operation to power off (stop) a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param body Virtualmachine stop action payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to power off (stop) a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 stop(String resourceUri);
+
+ /**
+ * 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 Hybrid Compute machine resource
+ * to be extended.
+ * @param body Virtualmachine stop action payload.
+ * @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 stop(String resourceUri, StopVirtualMachineOptions body, Context context);
+
+ /**
+ * Implements the operation to start a virtual machine.
+ *
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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);
+
+ /**
+ * Implements the operation to start a virtual machine.
+ *
+ * The operation to start a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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);
+
+ /**
+ * Implements the operation to restart a virtual machine.
+ *
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 restart(String resourceUri);
+
+ /**
+ * Implements the operation to restart a virtual machine.
+ *
+ * The operation to restart a virtual machine instance.
+ *
+ * @param resourceUri The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource
+ * to be extended.
+ * @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 restart(String resourceUri, Context context);
+}
diff --git a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/VirtualMachineTemplatesClient.java b/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/VirtualMachineTemplatesClient.java
index 86c2cede54c7..fab7b728785d 100644
--- a/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/VirtualMachineTemplatesClient.java
+++ b/sdk/connectedvmware/azure-resourcemanager-connectedvmware/src/main/java/com/azure/resourcemanager/connectedvmware/fluent/VirtualMachineTemplatesClient.java
@@ -23,7 +23,6 @@ public interface VirtualMachineTemplatesClient {
*
* @param resourceGroupName The Resource Group Name.
* @param virtualMachineTemplateName Name of the virtual machine template resource.
- * @param body Request payload.
* @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.
@@ -31,7 +30,7 @@ public interface VirtualMachineTemplatesClient {
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller Create Or Update virtual machine template.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineTemplateName Name of the virtual machine template resource.
- * @param body Request payload.
- * @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 virtualMachineTemplate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineTemplateInner create(
- String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body);
-
/**
* Implements virtual machine template PUT method.
*
@@ -101,21 +83,6 @@ VirtualMachineTemplateInner create(
VirtualMachineTemplateInner create(
String resourceGroupName, String virtualMachineTemplateName, VirtualMachineTemplateInner body, Context context);
- /**
- * Gets a virtual machine template.
- *
- * Implements virtual machine template GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineTemplateName Name of the virtual machine template 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 define the virtualMachineTemplate.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineTemplateInner getByResourceGroup(String resourceGroupName, String virtualMachineTemplateName);
-
/**
* Gets a virtual machine template.
*
@@ -134,9 +101,9 @@ Response API to update certain properties of the virtual machine template resource.
+ * Implements virtual machine template GET method.
*
* @param resourceGroupName The Resource Group Name.
* @param virtualMachineTemplateName Name of the virtual machine template resource.
@@ -146,7 +113,7 @@ Response Implements virtual machine template DELETE method.
+ * API to update certain properties of the virtual machine template resource.
*
* @param resourceGroupName The Resource Group Name.
* @param virtualMachineTemplateName Name of the virtual machine template resource.
- * @param force Whether force delete was specified.
* @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.
+ * @return define the virtualMachineTemplate.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Request payload.
- * @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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Request payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Create Or Update virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Request payload.
- * @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 virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body);
-
- /**
- * Implements virtual machine PUT method.
- *
- * Create Or Update virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner create(String resourceGroupName, String virtualMachineName);
-
- /**
- * Implements virtual machine PUT method.
- *
- * Create Or Update virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Request payload.
- * @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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner create(
- String resourceGroupName, String virtualMachineName, VirtualMachineInner body, Context context);
-
- /**
- * Gets a virtual machine.
- *
- * Implements virtual machine GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner getByResourceGroup(String resourceGroupName, String virtualMachineName);
-
- /**
- * Gets a virtual machine.
- *
- * Implements virtual machine GET method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 define the virtualMachine along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response API to update certain properties of the virtual machine resource.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Resource properties to update.
- * @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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller API to update certain properties of the virtual machine resource.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Resource properties to update.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller API to update certain properties of the virtual machine resource.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Resource properties to update.
- * @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 virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body);
-
- /**
- * Updates a virtual machine.
- *
- * API to update certain properties of the virtual machine resource.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner update(String resourceGroupName, String virtualMachineName);
-
- /**
- * Updates a virtual machine.
- *
- * API to update certain properties of the virtual machine resource.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Resource properties to update.
- * @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 define the virtualMachine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- VirtualMachineInner update(
- String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context);
-
- /**
- * Deletes an virtual machine.
- *
- * Implements virtual machine DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param force Whether force delete was specified.
- * @param retain Whether to just disable the VM from azure and retain the VM in the VMM.
- * @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 Implements virtual machine DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param force Whether force delete was specified.
- * @param retain Whether to just disable the VM from azure and retain the VM in the VMM.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Implements virtual machine DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param force Whether force delete was specified.
- * @param retain Whether to just disable the VM from azure and retain the VM in the VMM.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain);
-
- /**
- * Deletes an virtual machine.
- *
- * Implements virtual machine DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName);
-
- /**
- * Deletes an virtual machine.
- *
- * Implements virtual machine DELETE method.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param force Whether force delete was specified.
- * @param retain Whether to just disable the VM from azure and retain the VM in the VMM.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context);
-
- /**
- * Implements the operation to stop a virtual machine.
- *
- * Stop virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Virtualmachine stop action payload.
- * @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 Stop virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Virtualmachine stop action payload.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Stop virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Virtualmachine stop action payload.
- * @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 stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body);
-
- /**
- * Implements the operation to stop a virtual machine.
- *
- * Stop virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void stop(String resourceGroupName, String virtualMachineName);
-
- /**
- * Implements the operation to stop a virtual machine.
- *
- * Stop virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine resource.
- * @param body Virtualmachine stop action payload.
- * @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 stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, Context context);
-
- /**
- * Implements the operation to start a virtual machine.
- *
- * Start virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Start virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Start virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceGroupName, String virtualMachineName);
-
- /**
- * Implements the operation to start a virtual machine.
- *
- * Start virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void start(String resourceGroupName, String virtualMachineName, Context context);
-
- /**
- * Implements the operation to restart a virtual machine.
- *
- * Restart virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Restart virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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 {@link SyncPoller} for polling of long-running operation.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller Restart virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String virtualMachineName);
-
- /**
- * Implements the operation to restart a virtual machine.
- *
- * Restart virtual machine.
- *
- * @param resourceGroupName The Resource Group Name.
- * @param virtualMachineName Name of the virtual machine 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.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- void restart(String resourceGroupName, String virtualMachineName, Context context);
-
- /**
- * Implements GET virtualMachines in a subscription.
- *
- * List of virtualMachines 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 list of VirtualMachines as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable