getWithResponse(
+ String resourceGroupName, String machineName, String metadataName, Context context);
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 machineName, String metadataName);
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ *
Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 listByMachines(String resourceGroupName, String machineName);
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 listByMachines(
+ String resourceGroupName, String machineName, Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java
new file mode 100644
index 000000000000..912859b22554
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java
@@ -0,0 +1,294 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.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.hybridcompute.fluent.models.MachineRunCommandInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandUpdate;
+
+/** An instance of this class provides access to all the operations defined in MachineRunCommandsClient. */
+public interface MachineRunCommandsClient {
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineRunCommandInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties);
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineRunCommandInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context);
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner createOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties);
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner createOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context);
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineRunCommandInner> beginUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties);
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineRunCommandInner> beginUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context);
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner update(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties);
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner update(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context);
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String machineName, String runCommandName);
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String machineName, String runCommandName, Context context);
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 machineName, String runCommandName);
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 machineName, String runCommandName, Context context);
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String machineName, String runCommandName, Context context);
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner get(String resourceGroupName, String machineName, String runCommandName);
+
+ /**
+ * The operation to get all the run commands of a non-Azure machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes the Run Commands List Result as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String machineName);
+
+ /**
+ * The operation to get all the run commands of a non-Azure machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param expand The expand expression to apply on the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes the Run Commands List Result as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String machineName, String expand, Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
index d0ecfaa56860..4bce966e6298 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
@@ -8,14 +8,19 @@
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.hybridcompute.fluent.models.MachineAssessPatchesResultInner;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInstallPatchesResultInner;
import com.azure.resourcemanager.hybridcompute.models.InstanceViewTypes;
+import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesParameters;
/** An instance of this class provides access to all the operations defined in MachinesClient. */
public interface MachinesClient {
/**
- * The operation to remove a hybrid machine identity in Azure.
+ * The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
@@ -29,7 +34,7 @@ public interface MachinesClient {
Response deleteWithResponse(String resourceGroupName, String machineName, Context context);
/**
- * The operation to remove a hybrid machine identity in Azure.
+ * The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
@@ -69,6 +74,124 @@ Response getByResourceGroupWithResponse(
@ServiceMethod(returns = ReturnType.SINGLE)
MachineInner getByResourceGroup(String resourceGroupName, String machineName);
+ /**
+ * The operation to assess patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 the properties of an AssessPatches result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineAssessPatchesResultInner> beginAssessPatches(
+ String resourceGroupName, String name);
+
+ /**
+ * The operation to assess patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @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 describes the properties of an AssessPatches result.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineAssessPatchesResultInner> beginAssessPatches(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * The operation to assess patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes the properties of an AssessPatches result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name);
+
+ /**
+ * The operation to assess patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @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 describes the properties of an AssessPatches result.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name, Context context);
+
+ /**
+ * The operation to install patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @param installPatchesInput Input for InstallPatches as directly received by the API.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the result summary of an installation operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineInstallPatchesResultInner> beginInstallPatches(
+ String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput);
+
+ /**
+ * The operation to install patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @param installPatchesInput Input for InstallPatches as directly received by the API.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of the result summary of an installation operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MachineInstallPatchesResultInner> beginInstallPatches(
+ String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput, Context context);
+
+ /**
+ * The operation to install patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @param installPatchesInput Input for InstallPatches as directly received by the API.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 result summary of an installation operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineInstallPatchesResultInner installPatches(
+ String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput);
+
+ /**
+ * The operation to install patches on a hybrid machine identity in Azure.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param name The name of the hybrid machine.
+ * @param installPatchesInput Input for InstallPatches as directly received by the API.
+ * @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 result summary of an installation operation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineInstallPatchesResultInner installPatches(
+ String resourceGroupName, String name, MachineInstallPatchesParameters installPatchesInput, Context context);
+
/**
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
* the next page of hybrid machines.
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java
new file mode 100644
index 000000000000..12bad427e256
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java
@@ -0,0 +1,41 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
+
+/** An instance of this class provides access to all the operations defined in NetworkProfilesClient. */
+public interface NetworkProfilesClient {
+ /**
+ * The operation to get network information of hybrid machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 describes the network information on this machine along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String machineName, Context context);
+
+ /**
+ * The operation to get network information of hybrid machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.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 describes the network information on this machine.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NetworkProfileInner get(String resourceGroupName, String machineName);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java
new file mode 100644
index 000000000000..22c4e9a1c695
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions 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 upgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void upgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionInner.java
new file mode 100644
index 000000000000..489dd78204ca
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionInner.java
@@ -0,0 +1,102 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes properties of Agent Version. */
+@Fluent
+public final class AgentVersionInner {
+ /*
+ * Represents the agent version.
+ */
+ @JsonProperty(value = "agentVersion")
+ private String agentVersion;
+
+ /*
+ * Represents the download link of specific agent version.
+ */
+ @JsonProperty(value = "downloadLink")
+ private String downloadLink;
+
+ /*
+ * Defines the os type.
+ */
+ @JsonProperty(value = "osType")
+ private String osType;
+
+ /** Creates an instance of AgentVersionInner class. */
+ public AgentVersionInner() {
+ }
+
+ /**
+ * Get the agentVersion property: Represents the agent version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.agentVersion;
+ }
+
+ /**
+ * Set the agentVersion property: Represents the agent version.
+ *
+ * @param agentVersion the agentVersion value to set.
+ * @return the AgentVersionInner object itself.
+ */
+ public AgentVersionInner withAgentVersion(String agentVersion) {
+ this.agentVersion = agentVersion;
+ return this;
+ }
+
+ /**
+ * Get the downloadLink property: Represents the download link of specific agent version.
+ *
+ * @return the downloadLink value.
+ */
+ public String downloadLink() {
+ return this.downloadLink;
+ }
+
+ /**
+ * Set the downloadLink property: Represents the download link of specific agent version.
+ *
+ * @param downloadLink the downloadLink value to set.
+ * @return the AgentVersionInner object itself.
+ */
+ public AgentVersionInner withDownloadLink(String downloadLink) {
+ this.downloadLink = downloadLink;
+ return this;
+ }
+
+ /**
+ * Get the osType property: Defines the os type.
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: Defines the os type.
+ *
+ * @param osType the osType value to set.
+ * @return the AgentVersionInner object itself.
+ */
+ public AgentVersionInner withOsType(String osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionsListInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionsListInner.java
new file mode 100644
index 000000000000..23a48f953f4a
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AgentVersionsListInner.java
@@ -0,0 +1,80 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Describes AgentVersions List. */
+@Fluent
+public final class AgentVersionsListInner {
+ /*
+ * The list of available Agent Versions.
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /*
+ * The URI to fetch the next 10 available Agent Versions.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /** Creates an instance of AgentVersionsListInner class. */
+ public AgentVersionsListInner() {
+ }
+
+ /**
+ * Get the value property: The list of available Agent Versions.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: The list of available Agent Versions.
+ *
+ * @param value the value value to set.
+ * @return the AgentVersionsListInner object itself.
+ */
+ public AgentVersionsListInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Get the nextLink property: The URI to fetch the next 10 available Agent Versions.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The URI to fetch the next 10 available Agent Versions.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the AgentVersionsListInner object itself.
+ */
+ public AgentVersionsListInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
new file mode 100644
index 000000000000..2dbed12fa942
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes a Extension Metadata. */
+@Immutable
+public final class ExtensionValueInner extends ProxyResource {
+ /*
+ * The single extension based on search criteria
+ */
+ @JsonProperty(value = "properties")
+ private ExtensionValueProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of ExtensionValueInner class. */
+ public ExtensionValueInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The single extension based on search criteria.
+ *
+ * @return the innerProperties value.
+ */
+ private ExtensionValueProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the version property: The version of the Extension being received.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Get the extensionType property: The type of the Extension being received.
+ *
+ * @return the extensionType value.
+ */
+ public String extensionType() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensionType();
+ }
+
+ /**
+ * Get the publisher property: The publisher of the Extension being received.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.innerProperties() == null ? null : this.innerProperties().publisher();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java
new file mode 100644
index 000000000000..e4d1cd924223
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes Extension Metadata properties. */
+@Immutable
+public final class ExtensionValueProperties {
+ /*
+ * The version of the Extension being received.
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * The type of the Extension being received.
+ */
+ @JsonProperty(value = "extensionType", access = JsonProperty.Access.WRITE_ONLY)
+ private String extensionType;
+
+ /*
+ * The publisher of the Extension being received.
+ */
+ @JsonProperty(value = "publisher", access = JsonProperty.Access.WRITE_ONLY)
+ private String publisher;
+
+ /** Creates an instance of ExtensionValueProperties class. */
+ public ExtensionValueProperties() {
+ }
+
+ /**
+ * Get the version property: The version of the Extension being received.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the extensionType property: The type of the Extension being received.
+ *
+ * @return the extensionType value.
+ */
+ public String extensionType() {
+ return this.extensionType;
+ }
+
+ /**
+ * Get the publisher property: The publisher of the Extension being received.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataInner.java
new file mode 100644
index 000000000000..288d87311573
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataInner.java
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.models.Identity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the HybridIdentityMetadata. */
+@Fluent
+public final class HybridIdentityMetadataInner extends ProxyResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private HybridIdentityMetadataProperties innerProperties = new HybridIdentityMetadataProperties();
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of HybridIdentityMetadataInner class. */
+ public HybridIdentityMetadataInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private HybridIdentityMetadataProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the vmId property: The unique identifier for the resource.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmId();
+ }
+
+ /**
+ * Set the vmId property: The unique identifier for the resource.
+ *
+ * @param vmId the vmId value to set.
+ * @return the HybridIdentityMetadataInner object itself.
+ */
+ public HybridIdentityMetadataInner withVmId(String vmId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HybridIdentityMetadataProperties();
+ }
+ this.innerProperties().withVmId(vmId);
+ return this;
+ }
+
+ /**
+ * Get the publicKey property: The Public Key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicKey();
+ }
+
+ /**
+ * Set the publicKey property: The Public Key.
+ *
+ * @param publicKey the publicKey value to set.
+ * @return the HybridIdentityMetadataInner object itself.
+ */
+ public HybridIdentityMetadataInner withPublicKey(String publicKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new HybridIdentityMetadataProperties();
+ }
+ this.innerProperties().withPublicKey(publicKey);
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.innerProperties() == null ? null : this.innerProperties().identity();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property innerProperties in model HybridIdentityMetadataInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(HybridIdentityMetadataInner.class);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataProperties.java
new file mode 100644
index 000000000000..04f76fb8a56a
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataProperties.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.Identity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Defines the resource properties. */
+@Fluent
+public final class HybridIdentityMetadataProperties {
+ /*
+ * The unique identifier for the resource.
+ */
+ @JsonProperty(value = "vmId")
+ private String vmId;
+
+ /*
+ * The Public Key.
+ */
+ @JsonProperty(value = "publicKey")
+ private String publicKey;
+
+ /*
+ * Identity for the resource.
+ */
+ @JsonProperty(value = "identity", access = JsonProperty.Access.WRITE_ONLY)
+ private Identity identity;
+
+ /** Creates an instance of HybridIdentityMetadataProperties class. */
+ public HybridIdentityMetadataProperties() {
+ }
+
+ /**
+ * Get the vmId property: The unique identifier for the resource.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.vmId;
+ }
+
+ /**
+ * Set the vmId property: The unique identifier for the resource.
+ *
+ * @param vmId the vmId value to set.
+ * @return the HybridIdentityMetadataProperties object itself.
+ */
+ public HybridIdentityMetadataProperties withVmId(String vmId) {
+ this.vmId = vmId;
+ return this;
+ }
+
+ /**
+ * Get the publicKey property: The Public Key.
+ *
+ * @return the publicKey value.
+ */
+ public String publicKey() {
+ return this.publicKey;
+ }
+
+ /**
+ * Set the publicKey property: The Public Key.
+ *
+ * @param publicKey the publicKey value to set.
+ * @return the HybridIdentityMetadataProperties object itself.
+ */
+ public HybridIdentityMetadataProperties withPublicKey(String publicKey) {
+ this.publicKey = publicKey;
+ return this;
+ }
+
+ /**
+ * Get the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ public Identity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineAssessPatchesResultInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineAssessPatchesResultInner.java
new file mode 100644
index 000000000000..7b9d96ca3f06
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineAssessPatchesResultInner.java
@@ -0,0 +1,204 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.models.AvailablePatchCountByClassification;
+import com.azure.resourcemanager.hybridcompute.models.OsType;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStartedBy;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStatus;
+import com.azure.resourcemanager.hybridcompute.models.PatchServiceUsed;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** Describes the properties of an AssessPatches result. */
+@Fluent
+public final class MachineAssessPatchesResultInner {
+ /*
+ * The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ * At that point it will become "Unknown", "Failed", "Succeeded", or "CompletedWithWarnings."
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchOperationStatus status;
+
+ /*
+ * The activity ID of the operation that produced this result.
+ */
+ @JsonProperty(value = "assessmentActivityId", access = JsonProperty.Access.WRITE_ONLY)
+ private String assessmentActivityId;
+
+ /*
+ * The overall reboot status of the VM. It will be true when partially installed patches require a reboot to
+ * complete installation but the reboot has not yet occurred.
+ */
+ @JsonProperty(value = "rebootPending", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean rebootPending;
+
+ /*
+ * Summarization of patches available for installation on the machine by classification.
+ */
+ @JsonProperty(value = "availablePatchCountByClassification")
+ private AvailablePatchCountByClassification availablePatchCountByClassification;
+
+ /*
+ * The UTC timestamp when the operation began.
+ */
+ @JsonProperty(value = "startDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime startDateTime;
+
+ /*
+ * The UTC timestamp when the operation finished.
+ */
+ @JsonProperty(value = "lastModifiedDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedDateTime;
+
+ /*
+ * Indicates if operation was triggered by user or by platform.
+ */
+ @JsonProperty(value = "startedBy", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchOperationStartedBy startedBy;
+
+ /*
+ * Specifies the patch service used for the operation.
+ */
+ @JsonProperty(value = "patchServiceUsed", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchServiceUsed patchServiceUsed;
+
+ /*
+ * The operating system type of the machine.
+ */
+ @JsonProperty(value = "osType", access = JsonProperty.Access.WRITE_ONLY)
+ private OsType osType;
+
+ /*
+ * The errors that were encountered during execution of the operation. The details array contains the list of them.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private ManagementError errorDetails;
+
+ /** Creates an instance of MachineAssessPatchesResultInner class. */
+ public MachineAssessPatchesResultInner() {
+ }
+
+ /**
+ * Get the status property: The overall success or failure status of the operation. It remains "InProgress" until
+ * the operation completes. At that point it will become "Unknown", "Failed", "Succeeded", or
+ * "CompletedWithWarnings.".
+ *
+ * @return the status value.
+ */
+ public PatchOperationStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the assessmentActivityId property: The activity ID of the operation that produced this result.
+ *
+ * @return the assessmentActivityId value.
+ */
+ public String assessmentActivityId() {
+ return this.assessmentActivityId;
+ }
+
+ /**
+ * Get the rebootPending property: The overall reboot status of the VM. It will be true when partially installed
+ * patches require a reboot to complete installation but the reboot has not yet occurred.
+ *
+ * @return the rebootPending value.
+ */
+ public Boolean rebootPending() {
+ return this.rebootPending;
+ }
+
+ /**
+ * Get the availablePatchCountByClassification property: Summarization of patches available for installation on the
+ * machine by classification.
+ *
+ * @return the availablePatchCountByClassification value.
+ */
+ public AvailablePatchCountByClassification availablePatchCountByClassification() {
+ return this.availablePatchCountByClassification;
+ }
+
+ /**
+ * Set the availablePatchCountByClassification property: Summarization of patches available for installation on the
+ * machine by classification.
+ *
+ * @param availablePatchCountByClassification the availablePatchCountByClassification value to set.
+ * @return the MachineAssessPatchesResultInner object itself.
+ */
+ public MachineAssessPatchesResultInner withAvailablePatchCountByClassification(
+ AvailablePatchCountByClassification availablePatchCountByClassification) {
+ this.availablePatchCountByClassification = availablePatchCountByClassification;
+ return this;
+ }
+
+ /**
+ * Get the startDateTime property: The UTC timestamp when the operation began.
+ *
+ * @return the startDateTime value.
+ */
+ public OffsetDateTime startDateTime() {
+ return this.startDateTime;
+ }
+
+ /**
+ * Get the lastModifiedDateTime property: The UTC timestamp when the operation finished.
+ *
+ * @return the lastModifiedDateTime value.
+ */
+ public OffsetDateTime lastModifiedDateTime() {
+ return this.lastModifiedDateTime;
+ }
+
+ /**
+ * Get the startedBy property: Indicates if operation was triggered by user or by platform.
+ *
+ * @return the startedBy value.
+ */
+ public PatchOperationStartedBy startedBy() {
+ return this.startedBy;
+ }
+
+ /**
+ * Get the patchServiceUsed property: Specifies the patch service used for the operation.
+ *
+ * @return the patchServiceUsed value.
+ */
+ public PatchServiceUsed patchServiceUsed() {
+ return this.patchServiceUsed;
+ }
+
+ /**
+ * Get the osType property: The operating system type of the machine.
+ *
+ * @return the osType value.
+ */
+ public OsType osType() {
+ return this.osType;
+ }
+
+ /**
+ * Get the errorDetails property: The errors that were encountered during execution of the operation. The details
+ * array contains the list of them.
+ *
+ * @return the errorDetails value.
+ */
+ public ManagementError errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (availablePatchCountByClassification() != null) {
+ availablePatchCountByClassification().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionInner.java
index 1f893b5ee14f..0dac2a8317fe 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionInner.java
@@ -7,7 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
@@ -18,10 +18,10 @@ public final class MachineExtensionInner extends Resource {
* Describes Machine Extension Properties.
*/
@JsonProperty(value = "properties")
- private MachineExtensionProperties properties;
+ private MachineExtensionProperties innerProperties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -31,27 +31,16 @@ public MachineExtensionInner() {
}
/**
- * Get the properties property: Describes Machine Extension Properties.
+ * Get the innerProperties property: Describes Machine Extension Properties.
*
- * @return the properties value.
+ * @return the innerProperties value.
*/
- public MachineExtensionProperties properties() {
- return this.properties;
+ private MachineExtensionProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the properties property: Describes Machine Extension Properties.
- *
- * @param properties the properties value to set.
- * @return the MachineExtensionInner object itself.
- */
- public MachineExtensionInner withProperties(MachineExtensionProperties properties) {
- this.properties = properties;
- return this;
- }
-
- /**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -73,14 +62,240 @@ public MachineExtensionInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @return the forceUpdateTag value.
+ */
+ public String forceUpdateTag() {
+ return this.innerProperties() == null ? null : this.innerProperties().forceUpdateTag();
+ }
+
+ /**
+ * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @param forceUpdateTag the forceUpdateTag value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withForceUpdateTag(String forceUpdateTag) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withForceUpdateTag(forceUpdateTag);
+ return this;
+ }
+
+ /**
+ * Get the publisher property: The name of the extension handler publisher.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.innerProperties() == null ? null : this.innerProperties().publisher();
+ }
+
+ /**
+ * Set the publisher property: The name of the extension handler publisher.
+ *
+ * @param publisher the publisher value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withPublisher(String publisher) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withPublisher(publisher);
+ return this;
+ }
+
+ /**
+ * Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
+ *
+ * @return the type value.
+ */
+ public String typePropertiesType() {
+ return this.innerProperties() == null ? null : this.innerProperties().type();
+ }
+
+ /**
+ * Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
+ *
+ * @param type the type value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withTypePropertiesType(String type) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withType(type);
+ return this;
+ }
+
+ /**
+ * Get the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @return the typeHandlerVersion value.
+ */
+ public String typeHandlerVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().typeHandlerVersion();
+ }
+
+ /**
+ * Set the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @param typeHandlerVersion the typeHandlerVersion value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withTypeHandlerVersion(typeHandlerVersion);
+ return this;
+ }
+
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableAutomaticUpgrade();
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withEnableAutomaticUpgrade(enableAutomaticUpgrade);
+ return this;
+ }
+
+ /**
+ * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @return the autoUpgradeMinorVersion value.
+ */
+ public Boolean autoUpgradeMinorVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoUpgradeMinorVersion();
+ }
+
+ /**
+ * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
+ return this;
+ }
+
+ /**
+ * Get the settings property: Json formatted public settings for the extension.
+ *
+ * @return the settings value.
+ */
+ public Map settings() {
+ return this.innerProperties() == null ? null : this.innerProperties().settings();
+ }
+
+ /**
+ * Set the settings property: Json formatted public settings for the extension.
+ *
+ * @param settings the settings value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withSettings(Map settings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withSettings(settings);
+ return this;
+ }
+
+ /**
+ * Get the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @return the protectedSettings value.
+ */
+ public Map protectedSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().protectedSettings();
+ }
+
+ /**
+ * Set the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @param protectedSettings the protectedSettings value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withProtectedSettings(Map protectedSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withProtectedSettings(protectedSettings);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the instanceView property: The machine extension instance view.
+ *
+ * @return the instanceView value.
+ */
+ public MachineExtensionInstanceView instanceView() {
+ return this.innerProperties() == null ? null : this.innerProperties().instanceView();
+ }
+
+ /**
+ * Set the instanceView property: The machine extension instance view.
+ *
+ * @param instanceView the instanceView value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withInstanceView(MachineExtensionInstanceView instanceView) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withInstanceView(instanceView);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (properties() != null) {
- properties().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
similarity index 81%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
index 454bea5796e0..3d1f8b5d626a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
@@ -2,10 +2,13 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** Describes the properties of a Machine Extension. */
@Fluent
@@ -34,6 +37,13 @@ public final class MachineExtensionProperties {
@JsonProperty(value = "typeHandlerVersion")
private String typeHandlerVersion;
+ /*
+ * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version
+ * available.
+ */
+ @JsonProperty(value = "enableAutomaticUpgrade")
+ private Boolean enableAutomaticUpgrade;
+
/*
* Indicates whether the extension should use a newer minor version if one is available at deployment time. Once
* deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set
@@ -46,14 +56,16 @@ public final class MachineExtensionProperties {
* Json formatted public settings for the extension.
*/
@JsonProperty(value = "settings")
- private Object settings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map settings;
/*
* The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at
* all.
*/
@JsonProperty(value = "protectedSettings")
- private Object protectedSettings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map protectedSettings;
/*
* The provisioning state, which only appears in the response.
@@ -153,6 +165,28 @@ public MachineExtensionProperties withTypeHandlerVersion(String typeHandlerVersi
return this;
}
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionProperties object itself.
+ */
+ public MachineExtensionProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
/**
* Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
* is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
@@ -182,7 +216,7 @@ public MachineExtensionProperties withAutoUpgradeMinorVersion(Boolean autoUpgrad
*
* @return the settings value.
*/
- public Object settings() {
+ public Map settings() {
return this.settings;
}
@@ -192,7 +226,7 @@ public Object settings() {
* @param settings the settings value to set.
* @return the MachineExtensionProperties object itself.
*/
- public MachineExtensionProperties withSettings(Object settings) {
+ public MachineExtensionProperties withSettings(Map settings) {
this.settings = settings;
return this;
}
@@ -203,7 +237,7 @@ public MachineExtensionProperties withSettings(Object settings) {
*
* @return the protectedSettings value.
*/
- public Object protectedSettings() {
+ public Map protectedSettings() {
return this.protectedSettings;
}
@@ -214,7 +248,7 @@ public Object protectedSettings() {
* @param protectedSettings the protectedSettings value to set.
* @return the MachineExtensionProperties object itself.
*/
- public MachineExtensionProperties withProtectedSettings(Object protectedSettings) {
+ public MachineExtensionProperties withProtectedSettings(Map protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
similarity index 79%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
index 113b394ab128..18a4c376960b 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
@@ -2,10 +2,12 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** Describes the properties of a Machine Extension. */
@Fluent
@@ -34,6 +36,13 @@ public final class MachineExtensionUpdateProperties {
@JsonProperty(value = "typeHandlerVersion")
private String typeHandlerVersion;
+ /*
+ * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version
+ * available.
+ */
+ @JsonProperty(value = "enableAutomaticUpgrade")
+ private Boolean enableAutomaticUpgrade;
+
/*
* Indicates whether the extension should use a newer minor version if one is available at deployment time. Once
* deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set
@@ -46,14 +55,16 @@ public final class MachineExtensionUpdateProperties {
* Json formatted public settings for the extension.
*/
@JsonProperty(value = "settings")
- private Object settings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map settings;
/*
* The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at
* all.
*/
@JsonProperty(value = "protectedSettings")
- private Object protectedSettings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map protectedSettings;
/** Creates an instance of MachineExtensionUpdateProperties class. */
public MachineExtensionUpdateProperties() {
@@ -141,6 +152,28 @@ public MachineExtensionUpdateProperties withTypeHandlerVersion(String typeHandle
return this;
}
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionUpdateProperties object itself.
+ */
+ public MachineExtensionUpdateProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
/**
* Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
* is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
@@ -170,7 +203,7 @@ public MachineExtensionUpdateProperties withAutoUpgradeMinorVersion(Boolean auto
*
* @return the settings value.
*/
- public Object settings() {
+ public Map settings() {
return this.settings;
}
@@ -180,7 +213,7 @@ public Object settings() {
* @param settings the settings value to set.
* @return the MachineExtensionUpdateProperties object itself.
*/
- public MachineExtensionUpdateProperties withSettings(Object settings) {
+ public MachineExtensionUpdateProperties withSettings(Map settings) {
this.settings = settings;
return this;
}
@@ -191,7 +224,7 @@ public MachineExtensionUpdateProperties withSettings(Object settings) {
*
* @return the protectedSettings value.
*/
- public Object protectedSettings() {
+ public Map protectedSettings() {
return this.protectedSettings;
}
@@ -202,7 +235,7 @@ public Object protectedSettings() {
* @param protectedSettings the protectedSettings value to set.
* @return the MachineExtensionUpdateProperties object itself.
*/
- public MachineExtensionUpdateProperties withProtectedSettings(Object protectedSettings) {
+ public MachineExtensionUpdateProperties withProtectedSettings(Map protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java
index c883d1849d63..a15016f41f4d 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java
@@ -7,9 +7,20 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.AgentUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
import com.azure.resourcemanager.hybridcompute.models.Identity;
-import com.azure.resourcemanager.hybridcompute.models.MachineProperties;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.PrivateCloudKind;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
import java.util.Map;
/** Describes a hybrid machine. */
@@ -19,7 +30,13 @@ public final class MachineInner extends Resource {
* Hybrid Compute Machine properties
*/
@JsonProperty(value = "properties")
- private MachineProperties properties;
+ private MachinePropertiesInner innerProperties;
+
+ /*
+ * The list of extensions affiliated to the machine
+ */
+ @JsonProperty(value = "resources", access = JsonProperty.Access.WRITE_ONLY)
+ private List resources;
/*
* Identity for the resource.
@@ -28,7 +45,13 @@ public final class MachineInner extends Resource {
private Identity identity;
/*
- * The system meta data relating to this resource.
+ * Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM etc.
+ */
+ @JsonProperty(value = "kind")
+ private PrivateCloudKind kind;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -38,23 +61,21 @@ public MachineInner() {
}
/**
- * Get the properties property: Hybrid Compute Machine properties.
+ * Get the innerProperties property: Hybrid Compute Machine properties.
*
- * @return the properties value.
+ * @return the innerProperties value.
*/
- public MachineProperties properties() {
- return this.properties;
+ private MachinePropertiesInner innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the properties property: Hybrid Compute Machine properties.
+ * Get the resources property: The list of extensions affiliated to the machine.
*
- * @param properties the properties value to set.
- * @return the MachineInner object itself.
+ * @return the resources value.
*/
- public MachineInner withProperties(MachineProperties properties) {
- this.properties = properties;
- return this;
+ public List resources() {
+ return this.resources;
}
/**
@@ -78,7 +99,29 @@ public MachineInner withIdentity(Identity identity) {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the kind property: Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM
+ * etc.
+ *
+ * @return the kind value.
+ */
+ public PrivateCloudKind kind() {
+ return this.kind;
+ }
+
+ /**
+ * Set the kind property: Indicates which kind of VM fabric the instance is an instance of, such as HCI or SCVMM
+ * etc.
+ *
+ * @param kind the kind value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withKind(PrivateCloudKind kind) {
+ this.kind = kind;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -100,14 +143,453 @@ public MachineInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @return the locationData value.
+ */
+ public LocationData locationData() {
+ return this.innerProperties() == null ? null : this.innerProperties().locationData();
+ }
+
+ /**
+ * Set the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @param locationData the locationData value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withLocationData(LocationData locationData) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withLocationData(locationData);
+ return this;
+ }
+
+ /**
+ * Get the agentConfiguration property: Configurable properties that the user can set locally via the azcmagent
+ * config command, or remotely via ARM.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentConfiguration agentConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentConfiguration();
+ }
+
+ /**
+ * Get the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @return the serviceStatuses value.
+ */
+ public ServiceStatuses serviceStatuses() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceStatuses();
+ }
+
+ /**
+ * Set the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @param serviceStatuses the serviceStatuses value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withServiceStatuses(ServiceStatuses serviceStatuses) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withServiceStatuses(serviceStatuses);
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudMetadata();
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withCloudMetadata(CloudMetadata cloudMetadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withCloudMetadata(cloudMetadata);
+ return this;
+ }
+
+ /**
+ * Get the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @return the agentUpgrade value.
+ */
+ public AgentUpgrade agentUpgrade() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentUpgrade();
+ }
+
+ /**
+ * Set the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @param agentUpgrade the agentUpgrade value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withAgentUpgrade(AgentUpgrade agentUpgrade) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withAgentUpgrade(agentUpgrade);
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().osProfile();
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withOsProfile(OSProfile osProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withOsProfile(osProfile);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The status of the hybrid machine agent.
+ *
+ * @return the status value.
+ */
+ public StatusTypes status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the lastStatusChange property: The time of the last status change.
+ *
+ * @return the lastStatusChange value.
+ */
+ public OffsetDateTime lastStatusChange() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastStatusChange();
+ }
+
+ /**
+ * Get the errorDetails property: Details about the error state.
+ *
+ * @return the errorDetails value.
+ */
+ public List errorDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorDetails();
+ }
+
+ /**
+ * Get the agentVersion property: The hybrid machine agent full version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentVersion();
+ }
+
+ /**
+ * Get the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmId();
+ }
+
+ /**
+ * Set the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @param vmId the vmId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withVmId(String vmId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withVmId(vmId);
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Specifies the hybrid machine display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
+ }
+
+ /**
+ * Get the machineFqdn property: Specifies the hybrid machine FQDN.
+ *
+ * @return the machineFqdn value.
+ */
+ public String machineFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().machineFqdn();
+ }
+
+ /**
+ * Get the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @return the clientPublicKey value.
+ */
+ public String clientPublicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientPublicKey();
+ }
+
+ /**
+ * Set the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @param clientPublicKey the clientPublicKey value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withClientPublicKey(String clientPublicKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withClientPublicKey(clientPublicKey);
+ return this;
+ }
+
+ /**
+ * Get the osName property: The Operating System running on the hybrid machine.
+ *
+ * @return the osName value.
+ */
+ public String osName() {
+ return this.innerProperties() == null ? null : this.innerProperties().osName();
+ }
+
+ /**
+ * Get the osVersion property: The version of Operating System running on the hybrid machine.
+ *
+ * @return the osVersion value.
+ */
+ public String osVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().osVersion();
+ }
+
+ /**
+ * Get the osType property: The type of Operating System (windows/linux).
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: The type of Operating System (windows/linux).
+ *
+ * @param osType the osType value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withOsType(String osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the vmUuid property: Specifies the Arc Machine's unique SMBIOS ID.
+ *
+ * @return the vmUuid value.
+ */
+ public String vmUuid() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmUuid();
+ }
+
+ /**
+ * Get the extensions property: Machine Extensions information (deprecated field).
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensions();
+ }
+
+ /**
+ * Set the extensions property: Machine Extensions information (deprecated field).
+ *
+ * @param extensions the extensions value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withExtensions(List extensions) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withExtensions(extensions);
+ return this;
+ }
+
+ /**
+ * Get the osSku property: Specifies the Operating System product SKU.
+ *
+ * @return the osSku value.
+ */
+ public String osSku() {
+ return this.innerProperties() == null ? null : this.innerProperties().osSku();
+ }
+
+ /**
+ * Get the domainName property: Specifies the Windows domain name.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.innerProperties() == null ? null : this.innerProperties().domainName();
+ }
+
+ /**
+ * Get the adFqdn property: Specifies the AD fully qualified display name.
+ *
+ * @return the adFqdn value.
+ */
+ public String adFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().adFqdn();
+ }
+
+ /**
+ * Get the dnsFqdn property: Specifies the DNS fully qualified display name.
+ *
+ * @return the dnsFqdn value.
+ */
+ public String dnsFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsFqdn();
+ }
+
+ /**
+ * Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @return the privateLinkScopeResourceId value.
+ */
+ public String privateLinkScopeResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkScopeResourceId();
+ }
+
+ /**
+ * Set the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @param privateLinkScopeResourceId the privateLinkScopeResourceId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withPrivateLinkScopeResourceId(String privateLinkScopeResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withPrivateLinkScopeResourceId(privateLinkScopeResourceId);
+ return this;
+ }
+
+ /**
+ * Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @return the parentClusterResourceId value.
+ */
+ public String parentClusterResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().parentClusterResourceId();
+ }
+
+ /**
+ * Set the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @param parentClusterResourceId the parentClusterResourceId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withParentClusterResourceId(String parentClusterResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withParentClusterResourceId(parentClusterResourceId);
+ return this;
+ }
+
+ /**
+ * Get the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @return the mssqlDiscovered value.
+ */
+ public String mssqlDiscovered() {
+ return this.innerProperties() == null ? null : this.innerProperties().mssqlDiscovered();
+ }
+
+ /**
+ * Set the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @param mssqlDiscovered the mssqlDiscovered value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withMssqlDiscovered(String mssqlDiscovered) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachinePropertiesInner();
+ }
+ this.innerProperties().withMssqlDiscovered(mssqlDiscovered);
+ return this;
+ }
+
+ /**
+ * Get the detectedProperties property: Detected properties from the machine.
+ *
+ * @return the detectedProperties value.
+ */
+ public Map detectedProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().detectedProperties();
+ }
+
+ /**
+ * Get the networkProfile property: Information about the network the machine is on.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfileInner networkProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkProfile();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (properties() != null) {
- properties().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (resources() != null) {
+ resources().forEach(e -> e.validate());
}
if (identity() != null) {
identity().validate();
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java
new file mode 100644
index 000000000000..3c078ae9f8fe
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java
@@ -0,0 +1,266 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.models.OsType;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStartedBy;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStatus;
+import com.azure.resourcemanager.hybridcompute.models.PatchServiceUsed;
+import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchRebootStatus;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+
+/** The result summary of an installation operation. */
+@Immutable
+public final class MachineInstallPatchesResultInner {
+ /*
+ * The overall success or failure status of the operation. It remains "InProgress" until the operation completes.
+ * At that point it will become "Failed", "Succeeded", "Unknown" or "CompletedWithWarnings."
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchOperationStatus status;
+
+ /*
+ * The activity ID of the operation that produced this result.
+ */
+ @JsonProperty(value = "installationActivityId", access = JsonProperty.Access.WRITE_ONLY)
+ private String installationActivityId;
+
+ /*
+ * The reboot state of the VM following completion of the operation.
+ */
+ @JsonProperty(value = "rebootStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private VMGuestPatchRebootStatus rebootStatus;
+
+ /*
+ * Whether the operation ran out of time before it completed all its intended actions.
+ */
+ @JsonProperty(value = "maintenanceWindowExceeded", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean maintenanceWindowExceeded;
+
+ /*
+ * The number of patches that were not installed due to the user blocking their installation.
+ */
+ @JsonProperty(value = "excludedPatchCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer excludedPatchCount;
+
+ /*
+ * The number of patches that were detected as available for install, but did not meet the operation's criteria.
+ */
+ @JsonProperty(value = "notSelectedPatchCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer notSelectedPatchCount;
+
+ /*
+ * The number of patches that were identified as meeting the installation criteria, but were not able to be
+ * installed. Typically this happens when maintenanceWindowExceeded == true.
+ */
+ @JsonProperty(value = "pendingPatchCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer pendingPatchCount;
+
+ /*
+ * The number of patches successfully installed.
+ */
+ @JsonProperty(value = "installedPatchCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer installedPatchCount;
+
+ /*
+ * The number of patches that could not be installed due to some issue. See errors for details.
+ */
+ @JsonProperty(value = "failedPatchCount", access = JsonProperty.Access.WRITE_ONLY)
+ private Integer failedPatchCount;
+
+ /*
+ * The UTC timestamp when the operation began.
+ */
+ @JsonProperty(value = "startDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime startDateTime;
+
+ /*
+ * The UTC timestamp when the operation finished.
+ */
+ @JsonProperty(value = "lastModifiedDateTime", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastModifiedDateTime;
+
+ /*
+ * Indicates if operation was triggered by user or by platform.
+ */
+ @JsonProperty(value = "startedBy", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchOperationStartedBy startedBy;
+
+ /*
+ * Specifies the patch service used for the operation.
+ */
+ @JsonProperty(value = "patchServiceUsed", access = JsonProperty.Access.WRITE_ONLY)
+ private PatchServiceUsed patchServiceUsed;
+
+ /*
+ * The operating system type of the machine.
+ */
+ @JsonProperty(value = "osType", access = JsonProperty.Access.WRITE_ONLY)
+ private OsType osType;
+
+ /*
+ * The errors that were encountered during execution of the operation. The details array contains the list of them.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private ManagementError errorDetails;
+
+ /** Creates an instance of MachineInstallPatchesResultInner class. */
+ public MachineInstallPatchesResultInner() {
+ }
+
+ /**
+ * Get the status property: The overall success or failure status of the operation. It remains "InProgress" until
+ * the operation completes. At that point it will become "Failed", "Succeeded", "Unknown" or
+ * "CompletedWithWarnings.".
+ *
+ * @return the status value.
+ */
+ public PatchOperationStatus status() {
+ return this.status;
+ }
+
+ /**
+ * Get the installationActivityId property: The activity ID of the operation that produced this result.
+ *
+ * @return the installationActivityId value.
+ */
+ public String installationActivityId() {
+ return this.installationActivityId;
+ }
+
+ /**
+ * Get the rebootStatus property: The reboot state of the VM following completion of the operation.
+ *
+ * @return the rebootStatus value.
+ */
+ public VMGuestPatchRebootStatus rebootStatus() {
+ return this.rebootStatus;
+ }
+
+ /**
+ * Get the maintenanceWindowExceeded property: Whether the operation ran out of time before it completed all its
+ * intended actions.
+ *
+ * @return the maintenanceWindowExceeded value.
+ */
+ public Boolean maintenanceWindowExceeded() {
+ return this.maintenanceWindowExceeded;
+ }
+
+ /**
+ * Get the excludedPatchCount property: The number of patches that were not installed due to the user blocking their
+ * installation.
+ *
+ * @return the excludedPatchCount value.
+ */
+ public Integer excludedPatchCount() {
+ return this.excludedPatchCount;
+ }
+
+ /**
+ * Get the notSelectedPatchCount property: The number of patches that were detected as available for install, but
+ * did not meet the operation's criteria.
+ *
+ * @return the notSelectedPatchCount value.
+ */
+ public Integer notSelectedPatchCount() {
+ return this.notSelectedPatchCount;
+ }
+
+ /**
+ * Get the pendingPatchCount property: The number of patches that were identified as meeting the installation
+ * criteria, but were not able to be installed. Typically this happens when maintenanceWindowExceeded == true.
+ *
+ * @return the pendingPatchCount value.
+ */
+ public Integer pendingPatchCount() {
+ return this.pendingPatchCount;
+ }
+
+ /**
+ * Get the installedPatchCount property: The number of patches successfully installed.
+ *
+ * @return the installedPatchCount value.
+ */
+ public Integer installedPatchCount() {
+ return this.installedPatchCount;
+ }
+
+ /**
+ * Get the failedPatchCount property: The number of patches that could not be installed due to some issue. See
+ * errors for details.
+ *
+ * @return the failedPatchCount value.
+ */
+ public Integer failedPatchCount() {
+ return this.failedPatchCount;
+ }
+
+ /**
+ * Get the startDateTime property: The UTC timestamp when the operation began.
+ *
+ * @return the startDateTime value.
+ */
+ public OffsetDateTime startDateTime() {
+ return this.startDateTime;
+ }
+
+ /**
+ * Get the lastModifiedDateTime property: The UTC timestamp when the operation finished.
+ *
+ * @return the lastModifiedDateTime value.
+ */
+ public OffsetDateTime lastModifiedDateTime() {
+ return this.lastModifiedDateTime;
+ }
+
+ /**
+ * Get the startedBy property: Indicates if operation was triggered by user or by platform.
+ *
+ * @return the startedBy value.
+ */
+ public PatchOperationStartedBy startedBy() {
+ return this.startedBy;
+ }
+
+ /**
+ * Get the patchServiceUsed property: Specifies the patch service used for the operation.
+ *
+ * @return the patchServiceUsed value.
+ */
+ public PatchServiceUsed patchServiceUsed() {
+ return this.patchServiceUsed;
+ }
+
+ /**
+ * Get the osType property: The operating system type of the machine.
+ *
+ * @return the osType value.
+ */
+ public OsType osType() {
+ return this.osType;
+ }
+
+ /**
+ * Get the errorDetails property: The errors that were encountered during execution of the operation. The details
+ * array contains the list of them.
+ *
+ * @return the errorDetails value.
+ */
+ public ManagementError errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java
new file mode 100644
index 000000000000..a0e756445f14
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java
@@ -0,0 +1,636 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.AgentUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+import java.util.List;
+import java.util.Map;
+
+/** Describes the properties of a hybrid machine. */
+@Fluent
+public final class MachinePropertiesInner {
+ /*
+ * Metadata pertaining to the geographic location of the resource.
+ */
+ @JsonProperty(value = "locationData")
+ private LocationData locationData;
+
+ /*
+ * Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
+ */
+ @JsonProperty(value = "agentConfiguration", access = JsonProperty.Access.WRITE_ONLY)
+ private AgentConfiguration agentConfiguration;
+
+ /*
+ * Statuses of dependent services that are reported back to ARM.
+ */
+ @JsonProperty(value = "serviceStatuses")
+ private ServiceStatuses serviceStatuses;
+
+ /*
+ * The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ */
+ @JsonProperty(value = "cloudMetadata")
+ private CloudMetadata cloudMetadata;
+
+ /*
+ * The info of the machine w.r.t Agent Upgrade
+ */
+ @JsonProperty(value = "agentUpgrade")
+ private AgentUpgrade agentUpgrade;
+
+ /*
+ * Specifies the operating system settings for the hybrid machine.
+ */
+ @JsonProperty(value = "osProfile")
+ private OSProfile osProfile;
+
+ /*
+ * The provisioning state, which only appears in the response.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * The status of the hybrid machine agent.
+ */
+ @JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
+ private StatusTypes status;
+
+ /*
+ * The time of the last status change.
+ */
+ @JsonProperty(value = "lastStatusChange", access = JsonProperty.Access.WRITE_ONLY)
+ private OffsetDateTime lastStatusChange;
+
+ /*
+ * Details about the error state.
+ */
+ @JsonProperty(value = "errorDetails", access = JsonProperty.Access.WRITE_ONLY)
+ private List errorDetails;
+
+ /*
+ * The hybrid machine agent full version.
+ */
+ @JsonProperty(value = "agentVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String agentVersion;
+
+ /*
+ * Specifies the hybrid machine unique ID.
+ */
+ @JsonProperty(value = "vmId")
+ private String vmId;
+
+ /*
+ * Specifies the hybrid machine display name.
+ */
+ @JsonProperty(value = "displayName", access = JsonProperty.Access.WRITE_ONLY)
+ private String displayName;
+
+ /*
+ * Specifies the hybrid machine FQDN.
+ */
+ @JsonProperty(value = "machineFqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String machineFqdn;
+
+ /*
+ * Public Key that the client provides to be used during initial resource onboarding
+ */
+ @JsonProperty(value = "clientPublicKey")
+ private String clientPublicKey;
+
+ /*
+ * The Operating System running on the hybrid machine.
+ */
+ @JsonProperty(value = "osName", access = JsonProperty.Access.WRITE_ONLY)
+ private String osName;
+
+ /*
+ * The version of Operating System running on the hybrid machine.
+ */
+ @JsonProperty(value = "osVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String osVersion;
+
+ /*
+ * The type of Operating System (windows/linux).
+ */
+ @JsonProperty(value = "osType")
+ private String osType;
+
+ /*
+ * Specifies the Arc Machine's unique SMBIOS ID
+ */
+ @JsonProperty(value = "vmUuid", access = JsonProperty.Access.WRITE_ONLY)
+ private String vmUuid;
+
+ /*
+ * Machine Extensions information (deprecated field)
+ */
+ @JsonProperty(value = "extensions")
+ private List extensions;
+
+ /*
+ * Specifies the Operating System product SKU.
+ */
+ @JsonProperty(value = "osSku", access = JsonProperty.Access.WRITE_ONLY)
+ private String osSku;
+
+ /*
+ * Specifies the Windows domain name.
+ */
+ @JsonProperty(value = "domainName", access = JsonProperty.Access.WRITE_ONLY)
+ private String domainName;
+
+ /*
+ * Specifies the AD fully qualified display name.
+ */
+ @JsonProperty(value = "adFqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String adFqdn;
+
+ /*
+ * Specifies the DNS fully qualified display name.
+ */
+ @JsonProperty(value = "dnsFqdn", access = JsonProperty.Access.WRITE_ONLY)
+ private String dnsFqdn;
+
+ /*
+ * The resource id of the private link scope this machine is assigned to, if any.
+ */
+ @JsonProperty(value = "privateLinkScopeResourceId")
+ private String privateLinkScopeResourceId;
+
+ /*
+ * The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
+ */
+ @JsonProperty(value = "parentClusterResourceId")
+ private String parentClusterResourceId;
+
+ /*
+ * Specifies whether any MS SQL instance is discovered on the machine.
+ */
+ @JsonProperty(value = "mssqlDiscovered")
+ private String mssqlDiscovered;
+
+ /*
+ * Detected properties from the machine.
+ */
+ @JsonProperty(value = "detectedProperties", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map detectedProperties;
+
+ /*
+ * Information about the network the machine is on.
+ */
+ @JsonProperty(value = "networkProfile", access = JsonProperty.Access.WRITE_ONLY)
+ private NetworkProfileInner networkProfile;
+
+ /** Creates an instance of MachinePropertiesInner class. */
+ public MachinePropertiesInner() {
+ }
+
+ /**
+ * Get the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @return the locationData value.
+ */
+ public LocationData locationData() {
+ return this.locationData;
+ }
+
+ /**
+ * Set the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @param locationData the locationData value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withLocationData(LocationData locationData) {
+ this.locationData = locationData;
+ return this;
+ }
+
+ /**
+ * Get the agentConfiguration property: Configurable properties that the user can set locally via the azcmagent
+ * config command, or remotely via ARM.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentConfiguration agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Get the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @return the serviceStatuses value.
+ */
+ public ServiceStatuses serviceStatuses() {
+ return this.serviceStatuses;
+ }
+
+ /**
+ * Set the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @param serviceStatuses the serviceStatuses value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withServiceStatuses(ServiceStatuses serviceStatuses) {
+ this.serviceStatuses = serviceStatuses;
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.cloudMetadata;
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withCloudMetadata(CloudMetadata cloudMetadata) {
+ this.cloudMetadata = cloudMetadata;
+ return this;
+ }
+
+ /**
+ * Get the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @return the agentUpgrade value.
+ */
+ public AgentUpgrade agentUpgrade() {
+ return this.agentUpgrade;
+ }
+
+ /**
+ * Set the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @param agentUpgrade the agentUpgrade value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withAgentUpgrade(AgentUpgrade agentUpgrade) {
+ this.agentUpgrade = agentUpgrade;
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.osProfile;
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withOsProfile(OSProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the status property: The status of the hybrid machine agent.
+ *
+ * @return the status value.
+ */
+ public StatusTypes status() {
+ return this.status;
+ }
+
+ /**
+ * Get the lastStatusChange property: The time of the last status change.
+ *
+ * @return the lastStatusChange value.
+ */
+ public OffsetDateTime lastStatusChange() {
+ return this.lastStatusChange;
+ }
+
+ /**
+ * Get the errorDetails property: Details about the error state.
+ *
+ * @return the errorDetails value.
+ */
+ public List errorDetails() {
+ return this.errorDetails;
+ }
+
+ /**
+ * Get the agentVersion property: The hybrid machine agent full version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.agentVersion;
+ }
+
+ /**
+ * Get the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.vmId;
+ }
+
+ /**
+ * Set the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @param vmId the vmId value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withVmId(String vmId) {
+ this.vmId = vmId;
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Specifies the hybrid machine display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.displayName;
+ }
+
+ /**
+ * Get the machineFqdn property: Specifies the hybrid machine FQDN.
+ *
+ * @return the machineFqdn value.
+ */
+ public String machineFqdn() {
+ return this.machineFqdn;
+ }
+
+ /**
+ * Get the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @return the clientPublicKey value.
+ */
+ public String clientPublicKey() {
+ return this.clientPublicKey;
+ }
+
+ /**
+ * Set the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @param clientPublicKey the clientPublicKey value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withClientPublicKey(String clientPublicKey) {
+ this.clientPublicKey = clientPublicKey;
+ return this;
+ }
+
+ /**
+ * Get the osName property: The Operating System running on the hybrid machine.
+ *
+ * @return the osName value.
+ */
+ public String osName() {
+ return this.osName;
+ }
+
+ /**
+ * Get the osVersion property: The version of Operating System running on the hybrid machine.
+ *
+ * @return the osVersion value.
+ */
+ public String osVersion() {
+ return this.osVersion;
+ }
+
+ /**
+ * Get the osType property: The type of Operating System (windows/linux).
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.osType;
+ }
+
+ /**
+ * Set the osType property: The type of Operating System (windows/linux).
+ *
+ * @param osType the osType value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withOsType(String osType) {
+ this.osType = osType;
+ return this;
+ }
+
+ /**
+ * Get the vmUuid property: Specifies the Arc Machine's unique SMBIOS ID.
+ *
+ * @return the vmUuid value.
+ */
+ public String vmUuid() {
+ return this.vmUuid;
+ }
+
+ /**
+ * Get the extensions property: Machine Extensions information (deprecated field).
+ *
+ * @return the extensions value.
+ */
+ public List extensions() {
+ return this.extensions;
+ }
+
+ /**
+ * Set the extensions property: Machine Extensions information (deprecated field).
+ *
+ * @param extensions the extensions value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withExtensions(List extensions) {
+ this.extensions = extensions;
+ return this;
+ }
+
+ /**
+ * Get the osSku property: Specifies the Operating System product SKU.
+ *
+ * @return the osSku value.
+ */
+ public String osSku() {
+ return this.osSku;
+ }
+
+ /**
+ * Get the domainName property: Specifies the Windows domain name.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.domainName;
+ }
+
+ /**
+ * Get the adFqdn property: Specifies the AD fully qualified display name.
+ *
+ * @return the adFqdn value.
+ */
+ public String adFqdn() {
+ return this.adFqdn;
+ }
+
+ /**
+ * Get the dnsFqdn property: Specifies the DNS fully qualified display name.
+ *
+ * @return the dnsFqdn value.
+ */
+ public String dnsFqdn() {
+ return this.dnsFqdn;
+ }
+
+ /**
+ * Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @return the privateLinkScopeResourceId value.
+ */
+ public String privateLinkScopeResourceId() {
+ return this.privateLinkScopeResourceId;
+ }
+
+ /**
+ * Set the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @param privateLinkScopeResourceId the privateLinkScopeResourceId value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withPrivateLinkScopeResourceId(String privateLinkScopeResourceId) {
+ this.privateLinkScopeResourceId = privateLinkScopeResourceId;
+ return this;
+ }
+
+ /**
+ * Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @return the parentClusterResourceId value.
+ */
+ public String parentClusterResourceId() {
+ return this.parentClusterResourceId;
+ }
+
+ /**
+ * Set the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @param parentClusterResourceId the parentClusterResourceId value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withParentClusterResourceId(String parentClusterResourceId) {
+ this.parentClusterResourceId = parentClusterResourceId;
+ return this;
+ }
+
+ /**
+ * Get the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @return the mssqlDiscovered value.
+ */
+ public String mssqlDiscovered() {
+ return this.mssqlDiscovered;
+ }
+
+ /**
+ * Set the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @param mssqlDiscovered the mssqlDiscovered value to set.
+ * @return the MachinePropertiesInner object itself.
+ */
+ public MachinePropertiesInner withMssqlDiscovered(String mssqlDiscovered) {
+ this.mssqlDiscovered = mssqlDiscovered;
+ return this;
+ }
+
+ /**
+ * Get the detectedProperties property: Detected properties from the machine.
+ *
+ * @return the detectedProperties value.
+ */
+ public Map detectedProperties() {
+ return this.detectedProperties;
+ }
+
+ /**
+ * Get the networkProfile property: Information about the network the machine is on.
+ *
+ * @return the networkProfile value.
+ */
+ public NetworkProfileInner networkProfile() {
+ return this.networkProfile;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (locationData() != null) {
+ locationData().validate();
+ }
+ if (agentConfiguration() != null) {
+ agentConfiguration().validate();
+ }
+ if (serviceStatuses() != null) {
+ serviceStatuses().validate();
+ }
+ if (cloudMetadata() != null) {
+ cloudMetadata().validate();
+ }
+ if (agentUpgrade() != null) {
+ agentUpgrade().validate();
+ }
+ if (osProfile() != null) {
+ osProfile().validate();
+ }
+ if (extensions() != null) {
+ extensions().forEach(e -> e.validate());
+ }
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java
new file mode 100644
index 000000000000..8fc4da89b455
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java
@@ -0,0 +1,378 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandScriptSource;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandInputParameter;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandManagedIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Describes a Run Command. */
+@Fluent
+public final class MachineRunCommandInner extends Resource {
+ /*
+ * Describes Run Command Properties
+ */
+ @JsonProperty(value = "properties")
+ private MachineRunCommandProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of MachineRunCommandInner class. */
+ public MachineRunCommandInner() {
+ }
+
+ /**
+ * Get the innerProperties property: Describes Run Command Properties.
+ *
+ * @return the innerProperties value.
+ */
+ private MachineRunCommandProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MachineRunCommandInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MachineRunCommandInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the source property: The source of the run command script.
+ *
+ * @return the source value.
+ */
+ public MachineRunCommandScriptSource source() {
+ return this.innerProperties() == null ? null : this.innerProperties().source();
+ }
+
+ /**
+ * Set the source property: The source of the run command script.
+ *
+ * @param source the source value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withSource(MachineRunCommandScriptSource source) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withSource(source);
+ return this;
+ }
+
+ /**
+ * Get the parameters property: The parameters used by the script.
+ *
+ * @return the parameters value.
+ */
+ public List parameters() {
+ return this.innerProperties() == null ? null : this.innerProperties().parameters();
+ }
+
+ /**
+ * Set the parameters property: The parameters used by the script.
+ *
+ * @param parameters the parameters value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withParameters(List parameters) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withParameters(parameters);
+ return this;
+ }
+
+ /**
+ * Get the protectedParameters property: The parameters used by the script.
+ *
+ * @return the protectedParameters value.
+ */
+ public List protectedParameters() {
+ return this.innerProperties() == null ? null : this.innerProperties().protectedParameters();
+ }
+
+ /**
+ * Set the protectedParameters property: The parameters used by the script.
+ *
+ * @param protectedParameters the protectedParameters value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withProtectedParameters(List protectedParameters) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withProtectedParameters(protectedParameters);
+ return this;
+ }
+
+ /**
+ * Get the asyncExecution property: Optional. If set to true, provisioning will complete as soon as script starts
+ * and will not wait for script to complete.
+ *
+ * @return the asyncExecution value.
+ */
+ public Boolean asyncExecution() {
+ return this.innerProperties() == null ? null : this.innerProperties().asyncExecution();
+ }
+
+ /**
+ * Set the asyncExecution property: Optional. If set to true, provisioning will complete as soon as script starts
+ * and will not wait for script to complete.
+ *
+ * @param asyncExecution the asyncExecution value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withAsyncExecution(Boolean asyncExecution) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withAsyncExecution(asyncExecution);
+ return this;
+ }
+
+ /**
+ * Get the runAsUser property: Specifies the user account on the machine when executing the run command.
+ *
+ * @return the runAsUser value.
+ */
+ public String runAsUser() {
+ return this.innerProperties() == null ? null : this.innerProperties().runAsUser();
+ }
+
+ /**
+ * Set the runAsUser property: Specifies the user account on the machine when executing the run command.
+ *
+ * @param runAsUser the runAsUser value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withRunAsUser(String runAsUser) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withRunAsUser(runAsUser);
+ return this;
+ }
+
+ /**
+ * Get the runAsPassword property: Specifies the user account password on the machine when executing the run
+ * command.
+ *
+ * @return the runAsPassword value.
+ */
+ public String runAsPassword() {
+ return this.innerProperties() == null ? null : this.innerProperties().runAsPassword();
+ }
+
+ /**
+ * Set the runAsPassword property: Specifies the user account password on the machine when executing the run
+ * command.
+ *
+ * @param runAsPassword the runAsPassword value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withRunAsPassword(String runAsPassword) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withRunAsPassword(runAsPassword);
+ return this;
+ }
+
+ /**
+ * Get the timeoutInSeconds property: The timeout in seconds to execute the run command.
+ *
+ * @return the timeoutInSeconds value.
+ */
+ public Integer timeoutInSeconds() {
+ return this.innerProperties() == null ? null : this.innerProperties().timeoutInSeconds();
+ }
+
+ /**
+ * Set the timeoutInSeconds property: The timeout in seconds to execute the run command.
+ *
+ * @param timeoutInSeconds the timeoutInSeconds value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withTimeoutInSeconds(Integer timeoutInSeconds) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withTimeoutInSeconds(timeoutInSeconds);
+ return this;
+ }
+
+ /**
+ * Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded. Use
+ * a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer outputBlobManagedIdentity parameter.
+ *
+ * @return the outputBlobUri value.
+ */
+ public String outputBlobUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().outputBlobUri();
+ }
+
+ /**
+ * Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded. Use
+ * a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer outputBlobManagedIdentity parameter.
+ *
+ * @param outputBlobUri the outputBlobUri value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withOutputBlobUri(String outputBlobUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withOutputBlobUri(outputBlobUri);
+ return this;
+ }
+
+ /**
+ * Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded. Use a
+ * SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer errorBlobManagedIdentity parameter.
+ *
+ * @return the errorBlobUri value.
+ */
+ public String errorBlobUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorBlobUri();
+ }
+
+ /**
+ * Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded. Use a
+ * SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer errorBlobManagedIdentity parameter.
+ *
+ * @param errorBlobUri the errorBlobUri value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withErrorBlobUri(String errorBlobUri) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withErrorBlobUri(errorBlobUri);
+ return this;
+ }
+
+ /**
+ * Get the outputBlobManagedIdentity property: User-assigned managed identity that has access to outputBlobUri
+ * storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given
+ * access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned
+ * identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @return the outputBlobManagedIdentity value.
+ */
+ public RunCommandManagedIdentity outputBlobManagedIdentity() {
+ return this.innerProperties() == null ? null : this.innerProperties().outputBlobManagedIdentity();
+ }
+
+ /**
+ * Set the outputBlobManagedIdentity property: User-assigned managed identity that has access to outputBlobUri
+ * storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given
+ * access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned
+ * identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @param outputBlobManagedIdentity the outputBlobManagedIdentity value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withOutputBlobManagedIdentity(RunCommandManagedIdentity outputBlobManagedIdentity) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withOutputBlobManagedIdentity(outputBlobManagedIdentity);
+ return this;
+ }
+
+ /**
+ * Get the errorBlobManagedIdentity property: User-assigned managed identity that has access to errorBlobUri storage
+ * blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access
+ * to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make
+ * sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @return the errorBlobManagedIdentity value.
+ */
+ public RunCommandManagedIdentity errorBlobManagedIdentity() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorBlobManagedIdentity();
+ }
+
+ /**
+ * Set the errorBlobManagedIdentity property: User-assigned managed identity that has access to errorBlobUri storage
+ * blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access
+ * to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make
+ * sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @param errorBlobManagedIdentity the errorBlobManagedIdentity value to set.
+ * @return the MachineRunCommandInner object itself.
+ */
+ public MachineRunCommandInner withErrorBlobManagedIdentity(RunCommandManagedIdentity errorBlobManagedIdentity) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineRunCommandProperties();
+ }
+ this.innerProperties().withErrorBlobManagedIdentity(errorBlobManagedIdentity);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the instanceView property: The machine run command instance view.
+ *
+ * @return the instanceView value.
+ */
+ public MachineRunCommandInstanceView instanceView() {
+ return this.innerProperties() == null ? null : this.innerProperties().instanceView();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java
new file mode 100644
index 000000000000..da76369969f4
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java
@@ -0,0 +1,406 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandScriptSource;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandInputParameter;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandManagedIdentity;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Describes the properties of a run command. */
+@Fluent
+public final class MachineRunCommandProperties {
+ /*
+ * The source of the run command script.
+ */
+ @JsonProperty(value = "source")
+ private MachineRunCommandScriptSource source;
+
+ /*
+ * The parameters used by the script.
+ */
+ @JsonProperty(value = "parameters")
+ private List parameters;
+
+ /*
+ * The parameters used by the script.
+ */
+ @JsonProperty(value = "protectedParameters")
+ private List protectedParameters;
+
+ /*
+ * Optional. If set to true, provisioning will complete as soon as script starts and will not wait for script to
+ * complete.
+ */
+ @JsonProperty(value = "asyncExecution")
+ private Boolean asyncExecution;
+
+ /*
+ * Specifies the user account on the machine when executing the run command.
+ */
+ @JsonProperty(value = "runAsUser")
+ private String runAsUser;
+
+ /*
+ * Specifies the user account password on the machine when executing the run command.
+ */
+ @JsonProperty(value = "runAsPassword")
+ private String runAsPassword;
+
+ /*
+ * The timeout in seconds to execute the run command.
+ */
+ @JsonProperty(value = "timeoutInSeconds")
+ private Integer timeoutInSeconds;
+
+ /*
+ * Specifies the Azure storage blob where script output stream will be uploaded. Use a SAS URI with read, append,
+ * create, write access OR use managed identity to provide the VM access to the blob. Refer
+ * outputBlobManagedIdentity parameter.
+ */
+ @JsonProperty(value = "outputBlobUri")
+ private String outputBlobUri;
+
+ /*
+ * Specifies the Azure storage blob where script error stream will be uploaded. Use a SAS URI with read, append,
+ * create, write access OR use managed identity to provide the VM access to the blob. Refer
+ * errorBlobManagedIdentity parameter.
+ */
+ @JsonProperty(value = "errorBlobUri")
+ private String errorBlobUri;
+
+ /*
+ * User-assigned managed identity that has access to outputBlobUri storage blob. Use an empty object in case of
+ * system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage
+ * Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's
+ * identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and
+ * https://aka.ms/RunCommandManaged
+ */
+ @JsonProperty(value = "outputBlobManagedIdentity")
+ private RunCommandManagedIdentity outputBlobManagedIdentity;
+
+ /*
+ * User-assigned managed identity that has access to errorBlobUri storage blob. Use an empty object in case of
+ * system-assigned identity. Make sure managed identity has been given access to blob's container with 'Storage
+ * Blob Data Contributor' role assignment. In case of user-assigned identity, make sure you add it under VM's
+ * identity. For more info on managed identity and Run Command, refer https://aka.ms/ManagedIdentity and
+ * https://aka.ms/RunCommandManaged
+ */
+ @JsonProperty(value = "errorBlobManagedIdentity")
+ private RunCommandManagedIdentity errorBlobManagedIdentity;
+
+ /*
+ * The provisioning state, which only appears in the response.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private String provisioningState;
+
+ /*
+ * The machine run command instance view.
+ */
+ @JsonProperty(value = "instanceView", access = JsonProperty.Access.WRITE_ONLY)
+ private MachineRunCommandInstanceView instanceView;
+
+ /** Creates an instance of MachineRunCommandProperties class. */
+ public MachineRunCommandProperties() {
+ }
+
+ /**
+ * Get the source property: The source of the run command script.
+ *
+ * @return the source value.
+ */
+ public MachineRunCommandScriptSource source() {
+ return this.source;
+ }
+
+ /**
+ * Set the source property: The source of the run command script.
+ *
+ * @param source the source value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withSource(MachineRunCommandScriptSource source) {
+ this.source = source;
+ return this;
+ }
+
+ /**
+ * Get the parameters property: The parameters used by the script.
+ *
+ * @return the parameters value.
+ */
+ public List parameters() {
+ return this.parameters;
+ }
+
+ /**
+ * Set the parameters property: The parameters used by the script.
+ *
+ * @param parameters the parameters value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withParameters(List parameters) {
+ this.parameters = parameters;
+ return this;
+ }
+
+ /**
+ * Get the protectedParameters property: The parameters used by the script.
+ *
+ * @return the protectedParameters value.
+ */
+ public List protectedParameters() {
+ return this.protectedParameters;
+ }
+
+ /**
+ * Set the protectedParameters property: The parameters used by the script.
+ *
+ * @param protectedParameters the protectedParameters value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withProtectedParameters(List protectedParameters) {
+ this.protectedParameters = protectedParameters;
+ return this;
+ }
+
+ /**
+ * Get the asyncExecution property: Optional. If set to true, provisioning will complete as soon as script starts
+ * and will not wait for script to complete.
+ *
+ * @return the asyncExecution value.
+ */
+ public Boolean asyncExecution() {
+ return this.asyncExecution;
+ }
+
+ /**
+ * Set the asyncExecution property: Optional. If set to true, provisioning will complete as soon as script starts
+ * and will not wait for script to complete.
+ *
+ * @param asyncExecution the asyncExecution value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withAsyncExecution(Boolean asyncExecution) {
+ this.asyncExecution = asyncExecution;
+ return this;
+ }
+
+ /**
+ * Get the runAsUser property: Specifies the user account on the machine when executing the run command.
+ *
+ * @return the runAsUser value.
+ */
+ public String runAsUser() {
+ return this.runAsUser;
+ }
+
+ /**
+ * Set the runAsUser property: Specifies the user account on the machine when executing the run command.
+ *
+ * @param runAsUser the runAsUser value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withRunAsUser(String runAsUser) {
+ this.runAsUser = runAsUser;
+ return this;
+ }
+
+ /**
+ * Get the runAsPassword property: Specifies the user account password on the machine when executing the run
+ * command.
+ *
+ * @return the runAsPassword value.
+ */
+ public String runAsPassword() {
+ return this.runAsPassword;
+ }
+
+ /**
+ * Set the runAsPassword property: Specifies the user account password on the machine when executing the run
+ * command.
+ *
+ * @param runAsPassword the runAsPassword value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withRunAsPassword(String runAsPassword) {
+ this.runAsPassword = runAsPassword;
+ return this;
+ }
+
+ /**
+ * Get the timeoutInSeconds property: The timeout in seconds to execute the run command.
+ *
+ * @return the timeoutInSeconds value.
+ */
+ public Integer timeoutInSeconds() {
+ return this.timeoutInSeconds;
+ }
+
+ /**
+ * Set the timeoutInSeconds property: The timeout in seconds to execute the run command.
+ *
+ * @param timeoutInSeconds the timeoutInSeconds value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withTimeoutInSeconds(Integer timeoutInSeconds) {
+ this.timeoutInSeconds = timeoutInSeconds;
+ return this;
+ }
+
+ /**
+ * Get the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded. Use
+ * a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer outputBlobManagedIdentity parameter.
+ *
+ * @return the outputBlobUri value.
+ */
+ public String outputBlobUri() {
+ return this.outputBlobUri;
+ }
+
+ /**
+ * Set the outputBlobUri property: Specifies the Azure storage blob where script output stream will be uploaded. Use
+ * a SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer outputBlobManagedIdentity parameter.
+ *
+ * @param outputBlobUri the outputBlobUri value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withOutputBlobUri(String outputBlobUri) {
+ this.outputBlobUri = outputBlobUri;
+ return this;
+ }
+
+ /**
+ * Get the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded. Use a
+ * SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer errorBlobManagedIdentity parameter.
+ *
+ * @return the errorBlobUri value.
+ */
+ public String errorBlobUri() {
+ return this.errorBlobUri;
+ }
+
+ /**
+ * Set the errorBlobUri property: Specifies the Azure storage blob where script error stream will be uploaded. Use a
+ * SAS URI with read, append, create, write access OR use managed identity to provide the VM access to the blob.
+ * Refer errorBlobManagedIdentity parameter.
+ *
+ * @param errorBlobUri the errorBlobUri value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withErrorBlobUri(String errorBlobUri) {
+ this.errorBlobUri = errorBlobUri;
+ return this;
+ }
+
+ /**
+ * Get the outputBlobManagedIdentity property: User-assigned managed identity that has access to outputBlobUri
+ * storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given
+ * access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned
+ * identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @return the outputBlobManagedIdentity value.
+ */
+ public RunCommandManagedIdentity outputBlobManagedIdentity() {
+ return this.outputBlobManagedIdentity;
+ }
+
+ /**
+ * Set the outputBlobManagedIdentity property: User-assigned managed identity that has access to outputBlobUri
+ * storage blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given
+ * access to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned
+ * identity, make sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @param outputBlobManagedIdentity the outputBlobManagedIdentity value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withOutputBlobManagedIdentity(
+ RunCommandManagedIdentity outputBlobManagedIdentity) {
+ this.outputBlobManagedIdentity = outputBlobManagedIdentity;
+ return this;
+ }
+
+ /**
+ * Get the errorBlobManagedIdentity property: User-assigned managed identity that has access to errorBlobUri storage
+ * blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access
+ * to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make
+ * sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @return the errorBlobManagedIdentity value.
+ */
+ public RunCommandManagedIdentity errorBlobManagedIdentity() {
+ return this.errorBlobManagedIdentity;
+ }
+
+ /**
+ * Set the errorBlobManagedIdentity property: User-assigned managed identity that has access to errorBlobUri storage
+ * blob. Use an empty object in case of system-assigned identity. Make sure managed identity has been given access
+ * to blob's container with 'Storage Blob Data Contributor' role assignment. In case of user-assigned identity, make
+ * sure you add it under VM's identity. For more info on managed identity and Run Command, refer
+ * https://aka.ms/ManagedIdentity and https://aka.ms/RunCommandManaged.
+ *
+ * @param errorBlobManagedIdentity the errorBlobManagedIdentity value to set.
+ * @return the MachineRunCommandProperties object itself.
+ */
+ public MachineRunCommandProperties withErrorBlobManagedIdentity(
+ RunCommandManagedIdentity errorBlobManagedIdentity) {
+ this.errorBlobManagedIdentity = errorBlobManagedIdentity;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Get the instanceView property: The machine run command instance view.
+ *
+ * @return the instanceView value.
+ */
+ public MachineRunCommandInstanceView instanceView() {
+ return this.instanceView;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (source() != null) {
+ source().validate();
+ }
+ if (parameters() != null) {
+ parameters().forEach(e -> e.validate());
+ }
+ if (protectedParameters() != null) {
+ protectedParameters().forEach(e -> e.validate());
+ }
+ if (outputBlobManagedIdentity() != null) {
+ outputBlobManagedIdentity().validate();
+ }
+ if (errorBlobManagedIdentity() != null) {
+ errorBlobManagedIdentity().validate();
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
similarity index 55%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
index a1e9e601abf0..4ddd5a76ca2b 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
@@ -2,9 +2,13 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.AgentUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes the ARM updatable properties of a hybrid machine. */
@@ -16,6 +20,24 @@ public final class MachineUpdateProperties {
@JsonProperty(value = "locationData")
private LocationData locationData;
+ /*
+ * Specifies the operating system settings for the hybrid machine.
+ */
+ @JsonProperty(value = "osProfile")
+ private OSProfile osProfile;
+
+ /*
+ * The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ */
+ @JsonProperty(value = "cloudMetadata")
+ private CloudMetadata cloudMetadata;
+
+ /*
+ * The info of the machine w.r.t Agent Upgrade
+ */
+ @JsonProperty(value = "agentUpgrade")
+ private AgentUpgrade agentUpgrade;
+
/*
* The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
*/
@@ -52,6 +74,66 @@ public MachineUpdateProperties withLocationData(LocationData locationData) {
return this;
}
+ /**
+ * Get the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.osProfile;
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachineUpdateProperties object itself.
+ */
+ public MachineUpdateProperties withOsProfile(OSProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.cloudMetadata;
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachineUpdateProperties object itself.
+ */
+ public MachineUpdateProperties withCloudMetadata(CloudMetadata cloudMetadata) {
+ this.cloudMetadata = cloudMetadata;
+ return this;
+ }
+
+ /**
+ * Get the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @return the agentUpgrade value.
+ */
+ public AgentUpgrade agentUpgrade() {
+ return this.agentUpgrade;
+ }
+
+ /**
+ * Set the agentUpgrade property: The info of the machine w.r.t Agent Upgrade.
+ *
+ * @param agentUpgrade the agentUpgrade value to set.
+ * @return the MachineUpdateProperties object itself.
+ */
+ public MachineUpdateProperties withAgentUpgrade(AgentUpgrade agentUpgrade) {
+ this.agentUpgrade = agentUpgrade;
+ return this;
+ }
+
/**
* Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
* assigned to, if any.
@@ -105,5 +187,14 @@ public void validate() {
if (locationData() != null) {
locationData().validate();
}
+ if (osProfile() != null) {
+ osProfile().validate();
+ }
+ if (cloudMetadata() != null) {
+ cloudMetadata().validate();
+ }
+ if (agentUpgrade() != null) {
+ agentUpgrade().validate();
+ }
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java
new file mode 100644
index 000000000000..41cdc8378ef0
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.NetworkInterface;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Describes the network information on this machine. */
+@Fluent
+public final class NetworkProfileInner {
+ /*
+ * The list of network interfaces.
+ */
+ @JsonProperty(value = "networkInterfaces")
+ private List networkInterfaces;
+
+ /** Creates an instance of NetworkProfileInner class. */
+ public NetworkProfileInner() {
+ }
+
+ /**
+ * Get the networkInterfaces property: The list of network interfaces.
+ *
+ * @return the networkInterfaces value.
+ */
+ public List networkInterfaces() {
+ return this.networkInterfaces;
+ }
+
+ /**
+ * Set the networkInterfaces property: The list of network interfaces.
+ *
+ * @param networkInterfaces the networkInterfaces value to set.
+ * @return the NetworkProfileInner object itself.
+ */
+ public NetworkProfileInner withNetworkInterfaces(List networkInterfaces) {
+ this.networkInterfaces = networkInterfaces;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (networkInterfaces() != null) {
+ networkInterfaces().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/OperationValueInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/OperationValueInner.java
index 2f663ffbd5f3..3db00f32a5f0 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/OperationValueInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/OperationValueInner.java
@@ -29,6 +29,12 @@ public final class OperationValueInner {
@JsonProperty(value = "display")
private OperationValueDisplay display;
+ /*
+ * This property indicates if the operation is an action or a data action
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
/** Creates an instance of OperationValueInner class. */
public OperationValueInner() {
}
@@ -71,6 +77,15 @@ public OperationValueInner withDisplay(OperationValueDisplay display) {
return this;
}
+ /**
+ * Get the isDataAction property: This property indicates if the operation is an action or a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java
new file mode 100644
index 000000000000..d92448aa83ca
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.AssessmentModeTypes;
+import com.azure.resourcemanager.hybridcompute.models.PatchModeTypes;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Specifies the patch settings. */
+@Fluent
+public final class PatchSettings {
+ /*
+ * Specifies the assessment mode.
+ */
+ @JsonProperty(value = "assessmentMode")
+ private AssessmentModeTypes assessmentMode;
+
+ /*
+ * Specifies the patch mode.
+ */
+ @JsonProperty(value = "patchMode")
+ private PatchModeTypes patchMode;
+
+ /** Creates an instance of PatchSettings class. */
+ public PatchSettings() {
+ }
+
+ /**
+ * Get the assessmentMode property: Specifies the assessment mode.
+ *
+ * @return the assessmentMode value.
+ */
+ public AssessmentModeTypes assessmentMode() {
+ return this.assessmentMode;
+ }
+
+ /**
+ * Set the assessmentMode property: Specifies the assessment mode.
+ *
+ * @param assessmentMode the assessmentMode value to set.
+ * @return the PatchSettings object itself.
+ */
+ public PatchSettings withAssessmentMode(AssessmentModeTypes assessmentMode) {
+ this.assessmentMode = assessmentMode;
+ return this;
+ }
+
+ /**
+ * Get the patchMode property: Specifies the patch mode.
+ *
+ * @return the patchMode value.
+ */
+ public PatchModeTypes patchMode() {
+ return this.patchMode;
+ }
+
+ /**
+ * Set the patchMode property: Specifies the patch mode.
+ *
+ * @param patchMode the patchMode value to set.
+ * @return the PatchSettings object itself.
+ */
+ public PatchSettings withPatchMode(PatchModeTypes patchMode) {
+ this.patchMode = patchMode;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java
index 457a90a2c289..26906cb0a4f5 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java
@@ -20,7 +20,7 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private PrivateEndpointConnectionProperties properties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -50,7 +50,7 @@ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionPr
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java
index 6994d21ca666..de347adac351 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java
@@ -20,7 +20,7 @@ public final class PrivateLinkResourceInner extends ProxyResource {
private PrivateLinkResourceProperties properties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -50,7 +50,7 @@ public PrivateLinkResourceInner withProperties(PrivateLinkResourceProperties pro
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionImpl.java
new file mode 100644
index 000000000000..3ba70efedbc4
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersion;
+
+public final class AgentVersionImpl implements AgentVersion {
+ private AgentVersionInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ AgentVersionImpl(
+ AgentVersionInner innerObject, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String agentVersion() {
+ return this.innerModel().agentVersion();
+ }
+
+ public String downloadLink() {
+ return this.innerModel().downloadLink();
+ }
+
+ public String osType() {
+ return this.innerModel().osType();
+ }
+
+ public AgentVersionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsClientImpl.java
new file mode 100644
index 000000000000..b4d115310303
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsClientImpl.java
@@ -0,0 +1,289 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hybridcompute.fluent.AgentVersionsClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionsListInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in AgentVersionsClient. */
+public final class AgentVersionsClientImpl implements AgentVersionsClient {
+ /** The proxy service used to perform REST calls. */
+ private final AgentVersionsService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of AgentVersionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ AgentVersionsClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(AgentVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientAgentVersions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface AgentVersionsService {
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("osType") String osType,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("/providers/Microsoft.HybridCompute/osType/{osType}/agentVersions/{version}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("osType") String osType,
+ @PathParam("version") String version,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets all Agent Versions along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @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 all Agent Versions along with the download link currently present along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync(String osType) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (osType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter osType is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service.list(this.client.getEndpoint(), this.client.getApiVersion(), osType, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all Agent Versions along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @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 all Agent Versions along with the download link currently present along with {@link Response} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listWithResponseAsync(String osType, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (osType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter osType 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(), osType, accept, context);
+ }
+
+ /**
+ * Gets all Agent Versions along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @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 all Agent Versions along with the download link currently present on successful completion of {@link
+ * Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono listAsync(String osType) {
+ return listWithResponseAsync(osType).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets all Agent Versions along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @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 all Agent Versions along with the download link currently present along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response listWithResponse(String osType, Context context) {
+ return listWithResponseAsync(osType, context).block();
+ }
+
+ /**
+ * Gets all Agent Versions along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @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 all Agent Versions along with the download link currently present.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentVersionsListInner list(String osType) {
+ return listWithResponse(osType, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets an Agent Version along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @param version Defines the agent version. To get latest, use latest or else a specific agent version.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Version along with the download link currently present along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String osType, String version) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (osType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter osType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(this.client.getEndpoint(), this.client.getApiVersion(), osType, version, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an Agent Version along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @param version Defines the agent version. To get latest, use latest or else a specific agent version.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Version along with the download link currently present along with {@link Response} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String osType, String version, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (osType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter osType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.get(this.client.getEndpoint(), this.client.getApiVersion(), osType, version, accept, context);
+ }
+
+ /**
+ * Gets an Agent Version along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @param version Defines the agent version. To get latest, use latest or else a specific agent version.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Version along with the download link currently present on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String osType, String version) {
+ return getWithResponseAsync(osType, version).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an Agent Version along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @param version Defines the agent version. To get latest, use latest or else a specific agent version.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Version along with the download link currently present along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String osType, String version, Context context) {
+ return getWithResponseAsync(osType, version, context).block();
+ }
+
+ /**
+ * Gets an Agent Version along with the download link currently present.
+ *
+ * @param osType Defines the os type.
+ * @param version Defines the agent version. To get latest, use latest or else a specific agent version.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Agent Version along with the download link currently present.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public AgentVersionInner get(String osType, String version) {
+ return getWithResponse(osType, version, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsImpl.java
new file mode 100644
index 000000000000..170e3ac0a3bc
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsImpl.java
@@ -0,0 +1,82 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.AgentVersionsClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionsListInner;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersion;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersions;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersionsList;
+
+public final class AgentVersionsImpl implements AgentVersions {
+ private static final ClientLogger LOGGER = new ClientLogger(AgentVersionsImpl.class);
+
+ private final AgentVersionsClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public AgentVersionsImpl(
+ AgentVersionsClient innerClient, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response listWithResponse(String osType, Context context) {
+ Response inner = this.serviceClient().listWithResponse(osType, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AgentVersionsListImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AgentVersionsList list(String osType) {
+ AgentVersionsListInner inner = this.serviceClient().list(osType);
+ if (inner != null) {
+ return new AgentVersionsListImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(String osType, String version, Context context) {
+ Response inner = this.serviceClient().getWithResponse(osType, version, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new AgentVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public AgentVersion get(String osType, String version) {
+ AgentVersionInner inner = this.serviceClient().get(osType, version);
+ if (inner != null) {
+ return new AgentVersionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private AgentVersionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsListImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsListImpl.java
new file mode 100644
index 000000000000..1b39845dd757
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/AgentVersionsListImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionsListInner;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersion;
+import com.azure.resourcemanager.hybridcompute.models.AgentVersionsList;
+import java.util.Collections;
+import java.util.List;
+import java.util.stream.Collectors;
+
+public final class AgentVersionsListImpl implements AgentVersionsList {
+ private AgentVersionsListInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ AgentVersionsListImpl(
+ AgentVersionsListInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List value() {
+ List inner = this.innerModel().value();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new AgentVersionImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String nextLink() {
+ return this.innerModel().nextLink();
+ }
+
+ public AgentVersionsListInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java
new file mode 100644
index 000000000000..72dd3859cc55
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java
@@ -0,0 +1,445 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValueListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
+public final class ExtensionMetadatasClientImpl implements ExtensionMetadatasClient {
+ /** The proxy service used to perform REST calls. */
+ private final ExtensionMetadatasService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ExtensionMetadatasClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ExtensionMetadatasClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ExtensionMetadatasService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientExtensionMetadatas to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface ExtensionMetadatasService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @PathParam("publisher") String publisher,
+ @PathParam("extensionType") String extensionType,
+ @PathParam("version") String version,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @PathParam("publisher") String publisher,
+ @PathParam("extensionType") String extensionType,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String location, String publisher, String extensionType, String version) {
+ 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 (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ version,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String location, String publisher, String extensionType, String version, 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 (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ version,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String location, String publisher, String extensionType, String version) {
+ return getWithResponseAsync(location, publisher, extensionType, version)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String location, String publisher, String extensionType, String version, Context context) {
+ return getWithResponseAsync(location, publisher, extensionType, version, context).block();
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ExtensionValueInner get(String location, String publisher, String extensionType, String version) {
+ return getWithResponse(location, publisher, extensionType, version, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String location, String publisher, String extensionType) {
+ 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 (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType 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(),
+ location,
+ publisher,
+ extensionType,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String location, String publisher, String extensionType, 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 (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType 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(),
+ location,
+ publisher,
+ extensionType,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location, String publisher, String extensionType) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String location, String publisher, String extensionType, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType, context));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location, String publisher, String extensionType) {
+ return new PagedIterable<>(listAsync(location, publisher, extensionType));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String location, String publisher, String extensionType, Context context) {
+ return new PagedIterable<>(listAsync(location, publisher, extensionType, context));
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java
new file mode 100644
index 000000000000..bbcaeb86922d
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValue;
+
+public final class ExtensionMetadatasImpl implements ExtensionMetadatas {
+ private static final ClientLogger LOGGER = new ClientLogger(ExtensionMetadatasImpl.class);
+
+ private final ExtensionMetadatasClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public ExtensionMetadatasImpl(
+ ExtensionMetadatasClient innerClient,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(
+ String location, String publisher, String extensionType, String version, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(location, publisher, extensionType, version, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ExtensionValueImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ExtensionValue get(String location, String publisher, String extensionType, String version) {
+ ExtensionValueInner inner = this.serviceClient().get(location, publisher, extensionType, version);
+ if (inner != null) {
+ return new ExtensionValueImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String location, String publisher, String extensionType) {
+ PagedIterable inner = this.serviceClient().list(location, publisher, extensionType);
+ return Utils.mapPage(inner, inner1 -> new ExtensionValueImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String location, String publisher, String extensionType, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(location, publisher, extensionType, context);
+ return Utils.mapPage(inner, inner1 -> new ExtensionValueImpl(inner1, this.manager()));
+ }
+
+ private ExtensionMetadatasClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java
new file mode 100644
index 000000000000..a39bbab312c2
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValue;
+
+public final class ExtensionValueImpl implements ExtensionValue {
+ private ExtensionValueInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ ExtensionValueImpl(
+ ExtensionValueInner innerObject, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String version() {
+ return this.innerModel().version();
+ }
+
+ public String extensionType() {
+ return this.innerModel().extensionType();
+ }
+
+ public String publisher() {
+ return this.innerModel().publisher();
+ }
+
+ public ExtensionValueInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
index fac37bfdac2b..1f4dfd1745b9 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
@@ -22,13 +22,19 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.hybridcompute.fluent.AgentVersionsClient;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
+import com.azure.resourcemanager.hybridcompute.fluent.HybridIdentityMetadatasClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachineExtensionsClient;
+import com.azure.resourcemanager.hybridcompute.fluent.MachineRunCommandsClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachinesClient;
+import com.azure.resourcemanager.hybridcompute.fluent.NetworkProfilesClient;
import com.azure.resourcemanager.hybridcompute.fluent.OperationsClient;
import com.azure.resourcemanager.hybridcompute.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.hybridcompute.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.hybridcompute.fluent.PrivateLinkScopesClient;
+import com.azure.resourcemanager.hybridcompute.fluent.ResourceProvidersClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
@@ -137,6 +143,30 @@ public MachineExtensionsClient getMachineExtensions() {
return this.machineExtensions;
}
+ /** The ResourceProvidersClient object to access its operations. */
+ private final ResourceProvidersClient resourceProviders;
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
+ }
+
+ /** The ExtensionMetadatasClient object to access its operations. */
+ private final ExtensionMetadatasClient extensionMetadatas;
+
+ /**
+ * Gets the ExtensionMetadatasClient object to access its operations.
+ *
+ * @return the ExtensionMetadatasClient object.
+ */
+ public ExtensionMetadatasClient getExtensionMetadatas() {
+ return this.extensionMetadatas;
+ }
+
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
@@ -149,6 +179,54 @@ public OperationsClient getOperations() {
return this.operations;
}
+ /** The NetworkProfilesClient object to access its operations. */
+ private final NetworkProfilesClient networkProfiles;
+
+ /**
+ * Gets the NetworkProfilesClient object to access its operations.
+ *
+ * @return the NetworkProfilesClient object.
+ */
+ public NetworkProfilesClient getNetworkProfiles() {
+ return this.networkProfiles;
+ }
+
+ /** The HybridIdentityMetadatasClient object to access its operations. */
+ private final HybridIdentityMetadatasClient hybridIdentityMetadatas;
+
+ /**
+ * Gets the HybridIdentityMetadatasClient object to access its operations.
+ *
+ * @return the HybridIdentityMetadatasClient object.
+ */
+ public HybridIdentityMetadatasClient getHybridIdentityMetadatas() {
+ return this.hybridIdentityMetadatas;
+ }
+
+ /** The AgentVersionsClient object to access its operations. */
+ private final AgentVersionsClient agentVersions;
+
+ /**
+ * Gets the AgentVersionsClient object to access its operations.
+ *
+ * @return the AgentVersionsClient object.
+ */
+ public AgentVersionsClient getAgentVersions() {
+ return this.agentVersions;
+ }
+
+ /** The MachineRunCommandsClient object to access its operations. */
+ private final MachineRunCommandsClient machineRunCommands;
+
+ /**
+ * Gets the MachineRunCommandsClient object to access its operations.
+ *
+ * @return the MachineRunCommandsClient object.
+ */
+ public MachineRunCommandsClient getMachineRunCommands() {
+ return this.machineRunCommands;
+ }
+
/** The PrivateLinkScopesClient object to access its operations. */
private final PrivateLinkScopesClient privateLinkScopes;
@@ -207,10 +285,16 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-03-25-preview";
+ this.apiVersion = "2023-04-25-preview";
this.machines = new MachinesClientImpl(this);
this.machineExtensions = new MachineExtensionsClientImpl(this);
+ this.resourceProviders = new ResourceProvidersClientImpl(this);
+ this.extensionMetadatas = new ExtensionMetadatasClientImpl(this);
this.operations = new OperationsClientImpl(this);
+ this.networkProfiles = new NetworkProfilesClientImpl(this);
+ this.hybridIdentityMetadatas = new HybridIdentityMetadatasClientImpl(this);
+ this.agentVersions = new AgentVersionsClientImpl(this);
+ this.machineRunCommands = new MachineRunCommandsClientImpl(this);
this.privateLinkScopes = new PrivateLinkScopesClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadataImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadataImpl.java
new file mode 100644
index 000000000000..06257f8b1725
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadataImpl.java
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner;
+import com.azure.resourcemanager.hybridcompute.models.HybridIdentityMetadata;
+import com.azure.resourcemanager.hybridcompute.models.Identity;
+
+public final class HybridIdentityMetadataImpl implements HybridIdentityMetadata {
+ private HybridIdentityMetadataInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ HybridIdentityMetadataImpl(
+ HybridIdentityMetadataInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String vmId() {
+ return this.innerModel().vmId();
+ }
+
+ public String publicKey() {
+ return this.innerModel().publicKey();
+ }
+
+ public Identity identity() {
+ return this.innerModel().identity();
+ }
+
+ public HybridIdentityMetadataInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasClientImpl.java
new file mode 100644
index 000000000000..912f01bdd74a
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasClientImpl.java
@@ -0,0 +1,531 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hybridcompute.fluent.HybridIdentityMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner;
+import com.azure.resourcemanager.hybridcompute.models.HybridIdentityMetadataList;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in HybridIdentityMetadatasClient. */
+public final class HybridIdentityMetadatasClientImpl implements HybridIdentityMetadatasClient {
+ /** The proxy service used to perform REST calls. */
+ private final HybridIdentityMetadatasService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of HybridIdentityMetadatasClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ HybridIdentityMetadatasClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy
+ .create(HybridIdentityMetadatasService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientHybridIdentityMetadatas to be used by
+ * the proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface HybridIdentityMetadatasService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata/{metadataName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @PathParam("metadataName") String metadataName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/hybridIdentityMetadata")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByMachines(
+ @HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @QueryParam("api-version") String apiVersion,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByMachinesNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param metadataName Name of the HybridIdentityMetadata.
+ * @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 defines the HybridIdentityMetadata along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String machineName, String metadataName) {
+ 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 (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (metadataName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter metadataName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ metadataName,
+ this.client.getApiVersion(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param metadataName Name of the HybridIdentityMetadata.
+ * @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 defines the HybridIdentityMetadata along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String machineName, String metadataName, 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 (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (metadataName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter metadataName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ metadataName,
+ this.client.getApiVersion(),
+ accept,
+ context);
+ }
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param metadataName Name of the HybridIdentityMetadata.
+ * @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 defines the HybridIdentityMetadata on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String resourceGroupName, String machineName, String metadataName) {
+ return getWithResponseAsync(resourceGroupName, machineName, metadataName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param metadataName Name of the HybridIdentityMetadata.
+ * @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 defines the HybridIdentityMetadata along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String machineName, String metadataName, Context context) {
+ return getWithResponseAsync(resourceGroupName, machineName, metadataName, context).block();
+ }
+
+ /**
+ * Gets HybridIdentityMetadata.
+ *
+ * Implements HybridIdentityMetadata GET method.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param metadataName Name of the HybridIdentityMetadata.
+ * @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 defines the HybridIdentityMetadata.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public HybridIdentityMetadataInner get(String resourceGroupName, String machineName, String metadataName) {
+ return getWithResponse(resourceGroupName, machineName, metadataName, Context.NONE).getValue();
+ }
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ *
Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMachinesSinglePageAsync(
+ String resourceGroupName, String machineName) {
+ 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 (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .listByMachines(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ this.client.getApiVersion(),
+ 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 GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMachinesSinglePageAsync(
+ String resourceGroupName, String machineName, 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 (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByMachines(
+ this.client.getEndpoint(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ this.client.getApiVersion(),
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByMachinesAsync(String resourceGroupName, String machineName) {
+ return new PagedFlux<>(
+ () -> listByMachinesSinglePageAsync(resourceGroupName, machineName),
+ nextLink -> listByMachinesNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByMachinesAsync(
+ String resourceGroupName, String machineName, Context context) {
+ return new PagedFlux<>(
+ () -> listByMachinesSinglePageAsync(resourceGroupName, machineName, context),
+ nextLink -> listByMachinesNextSinglePageAsync(nextLink, context));
+ }
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByMachines(String resourceGroupName, String machineName) {
+ return new PagedIterable<>(listByMachinesAsync(resourceGroupName, machineName));
+ }
+
+ /**
+ * Implements GET HybridIdentityMetadata in a machine.
+ *
+ * Returns the list of HybridIdentityMetadata of the given machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @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 list of HybridIdentityMetadata as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByMachines(
+ String resourceGroupName, String machineName, Context context) {
+ return new PagedIterable<>(listByMachinesAsync(resourceGroupName, machineName, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @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 list of HybridIdentityMetadata along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMachinesNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByMachinesNext(nextLink, this.client.getEndpoint(), 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()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items
+ * The nextLink parameter.
+ * @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 list of HybridIdentityMetadata along with {@link PagedResponse} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByMachinesNextSinglePageAsync(
+ String nextLink, Context context) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .listByMachinesNext(nextLink, this.client.getEndpoint(), accept, context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(),
+ res.getStatusCode(),
+ res.getHeaders(),
+ res.getValue().value(),
+ res.getValue().nextLink(),
+ null));
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasImpl.java
new file mode 100644
index 000000000000..8a63fea6a8fa
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadatasImpl.java
@@ -0,0 +1,75 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.HybridIdentityMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner;
+import com.azure.resourcemanager.hybridcompute.models.HybridIdentityMetadata;
+import com.azure.resourcemanager.hybridcompute.models.HybridIdentityMetadatas;
+
+public final class HybridIdentityMetadatasImpl implements HybridIdentityMetadatas {
+ private static final ClientLogger LOGGER = new ClientLogger(HybridIdentityMetadatasImpl.class);
+
+ private final HybridIdentityMetadatasClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public HybridIdentityMetadatasImpl(
+ HybridIdentityMetadatasClient innerClient,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(
+ String resourceGroupName, String machineName, String metadataName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, machineName, metadataName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new HybridIdentityMetadataImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public HybridIdentityMetadata get(String resourceGroupName, String machineName, String metadataName) {
+ HybridIdentityMetadataInner inner = this.serviceClient().get(resourceGroupName, machineName, metadataName);
+ if (inner != null) {
+ return new HybridIdentityMetadataImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable listByMachines(String resourceGroupName, String machineName) {
+ PagedIterable inner =
+ this.serviceClient().listByMachines(resourceGroupName, machineName);
+ return Utils.mapPage(inner, inner1 -> new HybridIdentityMetadataImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByMachines(
+ String resourceGroupName, String machineName, Context context) {
+ PagedIterable inner =
+ this.serviceClient().listByMachines(resourceGroupName, machineName, context);
+ return Utils.mapPage(inner, inner1 -> new HybridIdentityMetadataImpl(inner1, this.manager()));
+ }
+
+ private HybridIdentityMetadatasClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineAssessPatchesResultImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineAssessPatchesResultImpl.java
new file mode 100644
index 000000000000..53e7608b7913
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineAssessPatchesResultImpl.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineAssessPatchesResultInner;
+import com.azure.resourcemanager.hybridcompute.models.AvailablePatchCountByClassification;
+import com.azure.resourcemanager.hybridcompute.models.MachineAssessPatchesResult;
+import com.azure.resourcemanager.hybridcompute.models.OsType;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStartedBy;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStatus;
+import com.azure.resourcemanager.hybridcompute.models.PatchServiceUsed;
+import java.time.OffsetDateTime;
+
+public final class MachineAssessPatchesResultImpl implements MachineAssessPatchesResult {
+ private MachineAssessPatchesResultInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ MachineAssessPatchesResultImpl(
+ MachineAssessPatchesResultInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public PatchOperationStatus status() {
+ return this.innerModel().status();
+ }
+
+ public String assessmentActivityId() {
+ return this.innerModel().assessmentActivityId();
+ }
+
+ public Boolean rebootPending() {
+ return this.innerModel().rebootPending();
+ }
+
+ public AvailablePatchCountByClassification availablePatchCountByClassification() {
+ return this.innerModel().availablePatchCountByClassification();
+ }
+
+ public OffsetDateTime startDateTime() {
+ return this.innerModel().startDateTime();
+ }
+
+ public OffsetDateTime lastModifiedDateTime() {
+ return this.innerModel().lastModifiedDateTime();
+ }
+
+ public PatchOperationStartedBy startedBy() {
+ return this.innerModel().startedBy();
+ }
+
+ public PatchServiceUsed patchServiceUsed() {
+ return this.innerModel().patchServiceUsed();
+ }
+
+ public OsType osType() {
+ return this.innerModel().osType();
+ }
+
+ public ManagementError errorDetails() {
+ return this.innerModel().errorDetails();
+ }
+
+ public MachineAssessPatchesResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionImpl.java
index d73a366c2728..41a707a76278 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionImpl.java
@@ -9,9 +9,8 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineExtensionInner;
import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
-import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpdate;
-import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpdateProperties;
import java.util.Collections;
import java.util.Map;
@@ -46,14 +45,60 @@ public Map tags() {
}
}
- public MachineExtensionProperties properties() {
- return this.innerModel().properties();
- }
-
public SystemData systemData() {
return this.innerModel().systemData();
}
+ public String forceUpdateTag() {
+ return this.innerModel().forceUpdateTag();
+ }
+
+ public String publisher() {
+ return this.innerModel().publisher();
+ }
+
+ public String typePropertiesType() {
+ return this.innerModel().typePropertiesType();
+ }
+
+ public String typeHandlerVersion() {
+ return this.innerModel().typeHandlerVersion();
+ }
+
+ public Boolean enableAutomaticUpgrade() {
+ return this.innerModel().enableAutomaticUpgrade();
+ }
+
+ public Boolean autoUpgradeMinorVersion() {
+ return this.innerModel().autoUpgradeMinorVersion();
+ }
+
+ public Map settings() {
+ Map inner = this.innerModel().settings();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public Map protectedSettings() {
+ Map inner = this.innerModel().protectedSettings();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public MachineExtensionInstanceView instanceView() {
+ return this.innerModel().instanceView();
+ }
+
public Region region() {
return Region.fromName(this.regionName());
}
@@ -185,13 +230,88 @@ public MachineExtensionImpl withTags(Map tags) {
}
}
- public MachineExtensionImpl withProperties(MachineExtensionProperties properties) {
- this.innerModel().withProperties(properties);
+ public MachineExtensionImpl withForceUpdateTag(String forceUpdateTag) {
+ if (isInCreateMode()) {
+ this.innerModel().withForceUpdateTag(forceUpdateTag);
+ return this;
+ } else {
+ this.updateExtensionParameters.withForceUpdateTag(forceUpdateTag);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withPublisher(String publisher) {
+ if (isInCreateMode()) {
+ this.innerModel().withPublisher(publisher);
+ return this;
+ } else {
+ this.updateExtensionParameters.withPublisher(publisher);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withTypePropertiesType(String typePropertiesType) {
+ this.innerModel().withTypePropertiesType(typePropertiesType);
+ return this;
+ }
+
+ public MachineExtensionImpl withTypeHandlerVersion(String typeHandlerVersion) {
+ if (isInCreateMode()) {
+ this.innerModel().withTypeHandlerVersion(typeHandlerVersion);
+ return this;
+ } else {
+ this.updateExtensionParameters.withTypeHandlerVersion(typeHandlerVersion);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ if (isInCreateMode()) {
+ this.innerModel().withEnableAutomaticUpgrade(enableAutomaticUpgrade);
+ return this;
+ } else {
+ this.updateExtensionParameters.withEnableAutomaticUpgrade(enableAutomaticUpgrade);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
+ if (isInCreateMode()) {
+ this.innerModel().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
+ return this;
+ } else {
+ this.updateExtensionParameters.withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withSettings(Map settings) {
+ if (isInCreateMode()) {
+ this.innerModel().withSettings(settings);
+ return this;
+ } else {
+ this.updateExtensionParameters.withSettings(settings);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withProtectedSettings(Map protectedSettings) {
+ if (isInCreateMode()) {
+ this.innerModel().withProtectedSettings(protectedSettings);
+ return this;
+ } else {
+ this.updateExtensionParameters.withProtectedSettings(protectedSettings);
+ return this;
+ }
+ }
+
+ public MachineExtensionImpl withInstanceView(MachineExtensionInstanceView instanceView) {
+ this.innerModel().withInstanceView(instanceView);
return this;
}
- public MachineExtensionImpl withProperties(MachineExtensionUpdateProperties properties) {
- this.updateExtensionParameters.withProperties(properties);
+ public MachineExtensionImpl withType(String type) {
+ this.updateExtensionParameters.withType(type);
return this;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionsClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionsClientImpl.java
index 0c8a209060cd..6571532cfcad 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionsClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineExtensionsClientImpl.java
@@ -68,8 +68,7 @@ public final class MachineExtensionsClientImpl implements MachineExtensionsClien
public interface MachineExtensionsService {
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/extensions/{extensionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -85,8 +84,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/extensions/{extensionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> update(
@@ -102,8 +100,7 @@ Mono>> update(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/extensions/{extensionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -118,8 +115,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/extensions/{extensionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions/{extensionName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -134,8 +130,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/extensions")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/extensions")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> list(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineImpl.java
index f1e216d83e41..1362489eefc2 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineImpl.java
@@ -5,12 +5,28 @@
package com.azure.resourcemanager.hybridcompute.implementation;
import com.azure.core.management.SystemData;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineExtensionInner;
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.AgentUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
import com.azure.resourcemanager.hybridcompute.models.Identity;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
import com.azure.resourcemanager.hybridcompute.models.Machine;
-import com.azure.resourcemanager.hybridcompute.models.MachineProperties;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.NetworkProfile;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.PrivateCloudKind;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
+import java.time.OffsetDateTime;
import java.util.Collections;
+import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
public final class MachineImpl implements Machine {
private MachineInner innerObject;
@@ -47,18 +63,168 @@ public Map tags() {
}
}
- public MachineProperties properties() {
- return this.innerModel().properties();
+ public List resources() {
+ List inner = this.innerModel().resources();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new MachineExtensionImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
}
public Identity identity() {
return this.innerModel().identity();
}
+ public PrivateCloudKind kind() {
+ return this.innerModel().kind();
+ }
+
public SystemData systemData() {
return this.innerModel().systemData();
}
+ public LocationData locationData() {
+ return this.innerModel().locationData();
+ }
+
+ public AgentConfiguration agentConfiguration() {
+ return this.innerModel().agentConfiguration();
+ }
+
+ public ServiceStatuses serviceStatuses() {
+ return this.innerModel().serviceStatuses();
+ }
+
+ public CloudMetadata cloudMetadata() {
+ return this.innerModel().cloudMetadata();
+ }
+
+ public AgentUpgrade agentUpgrade() {
+ return this.innerModel().agentUpgrade();
+ }
+
+ public OSProfile osProfile() {
+ return this.innerModel().osProfile();
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public StatusTypes status() {
+ return this.innerModel().status();
+ }
+
+ public OffsetDateTime lastStatusChange() {
+ return this.innerModel().lastStatusChange();
+ }
+
+ public List errorDetails() {
+ List inner = this.innerModel().errorDetails();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String agentVersion() {
+ return this.innerModel().agentVersion();
+ }
+
+ public String vmId() {
+ return this.innerModel().vmId();
+ }
+
+ public String displayName() {
+ return this.innerModel().displayName();
+ }
+
+ public String machineFqdn() {
+ return this.innerModel().machineFqdn();
+ }
+
+ public String clientPublicKey() {
+ return this.innerModel().clientPublicKey();
+ }
+
+ public String osName() {
+ return this.innerModel().osName();
+ }
+
+ public String osVersion() {
+ return this.innerModel().osVersion();
+ }
+
+ public String osType() {
+ return this.innerModel().osType();
+ }
+
+ public String vmUuid() {
+ return this.innerModel().vmUuid();
+ }
+
+ public List extensions() {
+ List inner = this.innerModel().extensions();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String osSku() {
+ return this.innerModel().osSku();
+ }
+
+ public String domainName() {
+ return this.innerModel().domainName();
+ }
+
+ public String adFqdn() {
+ return this.innerModel().adFqdn();
+ }
+
+ public String dnsFqdn() {
+ return this.innerModel().dnsFqdn();
+ }
+
+ public String privateLinkScopeResourceId() {
+ return this.innerModel().privateLinkScopeResourceId();
+ }
+
+ public String parentClusterResourceId() {
+ return this.innerModel().parentClusterResourceId();
+ }
+
+ public String mssqlDiscovered() {
+ return this.innerModel().mssqlDiscovered();
+ }
+
+ public Map detectedProperties() {
+ Map inner = this.innerModel().detectedProperties();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public NetworkProfile networkProfile() {
+ NetworkProfileInner inner = this.innerModel().networkProfile();
+ if (inner != null) {
+ return new NetworkProfileImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public MachineInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineInstallPatchesResultImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineInstallPatchesResultImpl.java
new file mode 100644
index 000000000000..a7673348af13
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineInstallPatchesResultImpl.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInstallPatchesResultInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesResult;
+import com.azure.resourcemanager.hybridcompute.models.OsType;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStartedBy;
+import com.azure.resourcemanager.hybridcompute.models.PatchOperationStatus;
+import com.azure.resourcemanager.hybridcompute.models.PatchServiceUsed;
+import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchRebootStatus;
+import java.time.OffsetDateTime;
+
+public final class MachineInstallPatchesResultImpl implements MachineInstallPatchesResult {
+ private MachineInstallPatchesResultInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ MachineInstallPatchesResultImpl(
+ MachineInstallPatchesResultInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public PatchOperationStatus status() {
+ return this.innerModel().status();
+ }
+
+ public String installationActivityId() {
+ return this.innerModel().installationActivityId();
+ }
+
+ public VMGuestPatchRebootStatus rebootStatus() {
+ return this.innerModel().rebootStatus();
+ }
+
+ public Boolean maintenanceWindowExceeded() {
+ return this.innerModel().maintenanceWindowExceeded();
+ }
+
+ public Integer excludedPatchCount() {
+ return this.innerModel().excludedPatchCount();
+ }
+
+ public Integer notSelectedPatchCount() {
+ return this.innerModel().notSelectedPatchCount();
+ }
+
+ public Integer pendingPatchCount() {
+ return this.innerModel().pendingPatchCount();
+ }
+
+ public Integer installedPatchCount() {
+ return this.innerModel().installedPatchCount();
+ }
+
+ public Integer failedPatchCount() {
+ return this.innerModel().failedPatchCount();
+ }
+
+ public OffsetDateTime startDateTime() {
+ return this.innerModel().startDateTime();
+ }
+
+ public OffsetDateTime lastModifiedDateTime() {
+ return this.innerModel().lastModifiedDateTime();
+ }
+
+ public PatchOperationStartedBy startedBy() {
+ return this.innerModel().startedBy();
+ }
+
+ public PatchServiceUsed patchServiceUsed() {
+ return this.innerModel().patchServiceUsed();
+ }
+
+ public OsType osType() {
+ return this.innerModel().osType();
+ }
+
+ public ManagementError errorDetails() {
+ return this.innerModel().errorDetails();
+ }
+
+ public MachineInstallPatchesResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinePropertiesImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinePropertiesImpl.java
new file mode 100644
index 000000000000..5a6782dfb14d
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinePropertiesImpl.java
@@ -0,0 +1,180 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachinePropertiesInner;
+import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.AgentUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.MachineProperties;
+import com.azure.resourcemanager.hybridcompute.models.NetworkProfile;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
+import java.time.OffsetDateTime;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class MachinePropertiesImpl implements MachineProperties {
+ private MachinePropertiesInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ MachinePropertiesImpl(
+ MachinePropertiesInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public LocationData locationData() {
+ return this.innerModel().locationData();
+ }
+
+ public AgentConfiguration agentConfiguration() {
+ return this.innerModel().agentConfiguration();
+ }
+
+ public ServiceStatuses serviceStatuses() {
+ return this.innerModel().serviceStatuses();
+ }
+
+ public CloudMetadata cloudMetadata() {
+ return this.innerModel().cloudMetadata();
+ }
+
+ public AgentUpgrade agentUpgrade() {
+ return this.innerModel().agentUpgrade();
+ }
+
+ public OSProfile osProfile() {
+ return this.innerModel().osProfile();
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public StatusTypes status() {
+ return this.innerModel().status();
+ }
+
+ public OffsetDateTime lastStatusChange() {
+ return this.innerModel().lastStatusChange();
+ }
+
+ public List errorDetails() {
+ List inner = this.innerModel().errorDetails();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String agentVersion() {
+ return this.innerModel().agentVersion();
+ }
+
+ public String vmId() {
+ return this.innerModel().vmId();
+ }
+
+ public String displayName() {
+ return this.innerModel().displayName();
+ }
+
+ public String machineFqdn() {
+ return this.innerModel().machineFqdn();
+ }
+
+ public String clientPublicKey() {
+ return this.innerModel().clientPublicKey();
+ }
+
+ public String osName() {
+ return this.innerModel().osName();
+ }
+
+ public String osVersion() {
+ return this.innerModel().osVersion();
+ }
+
+ public String osType() {
+ return this.innerModel().osType();
+ }
+
+ public String vmUuid() {
+ return this.innerModel().vmUuid();
+ }
+
+ public List extensions() {
+ List inner = this.innerModel().extensions();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public String osSku() {
+ return this.innerModel().osSku();
+ }
+
+ public String domainName() {
+ return this.innerModel().domainName();
+ }
+
+ public String adFqdn() {
+ return this.innerModel().adFqdn();
+ }
+
+ public String dnsFqdn() {
+ return this.innerModel().dnsFqdn();
+ }
+
+ public String privateLinkScopeResourceId() {
+ return this.innerModel().privateLinkScopeResourceId();
+ }
+
+ public String parentClusterResourceId() {
+ return this.innerModel().parentClusterResourceId();
+ }
+
+ public String mssqlDiscovered() {
+ return this.innerModel().mssqlDiscovered();
+ }
+
+ public Map detectedProperties() {
+ Map inner = this.innerModel().detectedProperties();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public NetworkProfile networkProfile() {
+ NetworkProfileInner inner = this.innerModel().networkProfile();
+ if (inner != null) {
+ return new NetworkProfileImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public MachinePropertiesInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandImpl.java
new file mode 100644
index 000000000000..5c9d8b8a9158
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandImpl.java
@@ -0,0 +1,307 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineRunCommandInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommand;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandInstanceView;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandScriptSource;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandUpdate;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandInputParameter;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandManagedIdentity;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class MachineRunCommandImpl
+ implements MachineRunCommand, MachineRunCommand.Definition, MachineRunCommand.Update {
+ private MachineRunCommandInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public MachineRunCommandScriptSource source() {
+ return this.innerModel().source();
+ }
+
+ public List parameters() {
+ List inner = this.innerModel().parameters();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public List protectedParameters() {
+ List inner = this.innerModel().protectedParameters();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Boolean asyncExecution() {
+ return this.innerModel().asyncExecution();
+ }
+
+ public String runAsUser() {
+ return this.innerModel().runAsUser();
+ }
+
+ public String runAsPassword() {
+ return this.innerModel().runAsPassword();
+ }
+
+ public Integer timeoutInSeconds() {
+ return this.innerModel().timeoutInSeconds();
+ }
+
+ public String outputBlobUri() {
+ return this.innerModel().outputBlobUri();
+ }
+
+ public String errorBlobUri() {
+ return this.innerModel().errorBlobUri();
+ }
+
+ public RunCommandManagedIdentity outputBlobManagedIdentity() {
+ return this.innerModel().outputBlobManagedIdentity();
+ }
+
+ public RunCommandManagedIdentity errorBlobManagedIdentity() {
+ return this.innerModel().errorBlobManagedIdentity();
+ }
+
+ public String provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public MachineRunCommandInstanceView instanceView() {
+ return this.innerModel().instanceView();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public MachineRunCommandInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String machineName;
+
+ private String runCommandName;
+
+ private MachineRunCommandUpdate updateRunCommandProperties;
+
+ public MachineRunCommandImpl withExistingMachine(String resourceGroupName, String machineName) {
+ this.resourceGroupName = resourceGroupName;
+ this.machineName = machineName;
+ return this;
+ }
+
+ public MachineRunCommand create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .createOrUpdate(resourceGroupName, machineName, runCommandName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public MachineRunCommand create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .createOrUpdate(resourceGroupName, machineName, runCommandName, this.innerModel(), context);
+ return this;
+ }
+
+ MachineRunCommandImpl(String name, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = new MachineRunCommandInner();
+ this.serviceManager = serviceManager;
+ this.runCommandName = name;
+ }
+
+ public MachineRunCommandImpl update() {
+ this.updateRunCommandProperties = new MachineRunCommandUpdate();
+ return this;
+ }
+
+ public MachineRunCommand apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .update(resourceGroupName, machineName, runCommandName, updateRunCommandProperties, Context.NONE);
+ return this;
+ }
+
+ public MachineRunCommand apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .update(resourceGroupName, machineName, runCommandName, updateRunCommandProperties, context);
+ return this;
+ }
+
+ MachineRunCommandImpl(
+ MachineRunCommandInner innerObject,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.machineName = Utils.getValueFromIdByName(innerObject.id(), "machines");
+ this.runCommandName = Utils.getValueFromIdByName(innerObject.id(), "runCommands");
+ }
+
+ public MachineRunCommand refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .getWithResponse(resourceGroupName, machineName, runCommandName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public MachineRunCommand refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getMachineRunCommands()
+ .getWithResponse(resourceGroupName, machineName, runCommandName, context)
+ .getValue();
+ return this;
+ }
+
+ public MachineRunCommandImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public MachineRunCommandImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public MachineRunCommandImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateRunCommandProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public MachineRunCommandImpl withSource(MachineRunCommandScriptSource source) {
+ this.innerModel().withSource(source);
+ return this;
+ }
+
+ public MachineRunCommandImpl withParameters(List parameters) {
+ this.innerModel().withParameters(parameters);
+ return this;
+ }
+
+ public MachineRunCommandImpl withProtectedParameters(List protectedParameters) {
+ this.innerModel().withProtectedParameters(protectedParameters);
+ return this;
+ }
+
+ public MachineRunCommandImpl withAsyncExecution(Boolean asyncExecution) {
+ this.innerModel().withAsyncExecution(asyncExecution);
+ return this;
+ }
+
+ public MachineRunCommandImpl withRunAsUser(String runAsUser) {
+ this.innerModel().withRunAsUser(runAsUser);
+ return this;
+ }
+
+ public MachineRunCommandImpl withRunAsPassword(String runAsPassword) {
+ this.innerModel().withRunAsPassword(runAsPassword);
+ return this;
+ }
+
+ public MachineRunCommandImpl withTimeoutInSeconds(Integer timeoutInSeconds) {
+ this.innerModel().withTimeoutInSeconds(timeoutInSeconds);
+ return this;
+ }
+
+ public MachineRunCommandImpl withOutputBlobUri(String outputBlobUri) {
+ this.innerModel().withOutputBlobUri(outputBlobUri);
+ return this;
+ }
+
+ public MachineRunCommandImpl withErrorBlobUri(String errorBlobUri) {
+ this.innerModel().withErrorBlobUri(errorBlobUri);
+ return this;
+ }
+
+ public MachineRunCommandImpl withOutputBlobManagedIdentity(RunCommandManagedIdentity outputBlobManagedIdentity) {
+ this.innerModel().withOutputBlobManagedIdentity(outputBlobManagedIdentity);
+ return this;
+ }
+
+ public MachineRunCommandImpl withErrorBlobManagedIdentity(RunCommandManagedIdentity errorBlobManagedIdentity) {
+ this.innerModel().withErrorBlobManagedIdentity(errorBlobManagedIdentity);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandsClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandsClientImpl.java
new file mode 100644
index 000000000000..fdc044d755e7
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachineRunCommandsClientImpl.java
@@ -0,0 +1,1508 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.hybridcompute.fluent.MachineRunCommandsClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.MachineRunCommandInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandUpdate;
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandsListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in MachineRunCommandsClient. */
+public final class MachineRunCommandsClientImpl implements MachineRunCommandsClient {
+ /** The proxy service used to perform REST calls. */
+ private final MachineRunCommandsService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of MachineRunCommandsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ MachineRunCommandsClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(MachineRunCommandsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientMachineRunCommands to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface MachineRunCommandsService {
+ @Headers({"Content-Type: application/json"})
+ @Put(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}")
+ @ExpectedResponses({200, 201})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @PathParam("runCommandName") String runCommandName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") MachineRunCommandInner runCommandProperties,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Patch(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @PathParam("runCommandName") String runCommandName,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @BodyParam("application/json") MachineRunCommandUpdate runCommandProperties,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Delete(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/runCommands/{runCommandName}")
+ @ExpectedResponses({200, 202, 204})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @PathParam("runCommandName") String runCommandName,
+ @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.HybridCompute/machines/{machineName}/runCommands/{runCommandName}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @PathParam("runCommandName") String runCommandName,
+ @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.HybridCompute/machines/{machineName}/runCommands")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @QueryParam("$expand") String expand,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get("{nextLink}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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 (runCommandProperties == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter runCommandProperties is required and cannot be null."));
+ } else {
+ runCommandProperties.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ runCommandProperties,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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 (runCommandProperties == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter runCommandProperties is required and cannot be null."));
+ } else {
+ runCommandProperties.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .createOrUpdate(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ runCommandProperties,
+ accept,
+ context);
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MachineRunCommandInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties) {
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(resourceGroupName, machineName, runCommandName, runCommandProperties);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ MachineRunCommandInner.class,
+ MachineRunCommandInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MachineRunCommandInner> beginCreateOrUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ createOrUpdateWithResponseAsync(
+ resourceGroupName, machineName, runCommandName, runCommandProperties, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ MachineRunCommandInner.class,
+ MachineRunCommandInner.class,
+ context);
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MachineRunCommandInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties)
+ .getSyncPoller();
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MachineRunCommandInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context) {
+ return this
+ .beginCreateOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties) {
+ return beginCreateOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context) {
+ return beginCreateOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MachineRunCommandInner createOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties) {
+ return createOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties).block();
+ }
+
+ /**
+ * The operation to create or update a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MachineRunCommandInner createOrUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandInner runCommandProperties,
+ Context context) {
+ return createOrUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context)
+ .block();
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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 (runCommandProperties == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter runCommandProperties is required and cannot be null."));
+ } else {
+ runCommandProperties.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .update(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ runCommandProperties,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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 (runCommandProperties == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter runCommandProperties is required and cannot be null."));
+ } else {
+ runCommandProperties.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .update(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ runCommandProperties,
+ accept,
+ context);
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MachineRunCommandInner> beginUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties) {
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, machineName, runCommandName, runCommandProperties);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ MachineRunCommandInner.class,
+ MachineRunCommandInner.class,
+ this.client.getContext());
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, MachineRunCommandInner> beginUpdateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ updateWithResponseAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context);
+ return this
+ .client
+ .getLroResult(
+ mono,
+ this.client.getHttpPipeline(),
+ MachineRunCommandInner.class,
+ MachineRunCommandInner.class,
+ context);
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MachineRunCommandInner> beginUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties) {
+ return this
+ .beginUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties)
+ .getSyncPoller();
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, MachineRunCommandInner> beginUpdate(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context) {
+ return this
+ .beginUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties) {
+ return beginUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context) {
+ return beginUpdateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MachineRunCommandInner update(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties) {
+ return updateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties).block();
+ }
+
+ /**
+ * The operation to update the run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param runCommandProperties Parameters supplied to the Create Run Command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MachineRunCommandInner update(
+ String resourceGroupName,
+ String machineName,
+ String runCommandName,
+ MachineRunCommandUpdate runCommandProperties,
+ Context context) {
+ return updateAsync(resourceGroupName, machineName, runCommandName, runCommandProperties, context).block();
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 machineName, String runCommandName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 machineName, String runCommandName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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
+ .delete(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 machineName, String runCommandName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, machineName, runCommandName);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(
+ String resourceGroupName, String machineName, String runCommandName, Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ deleteWithResponseAsync(resourceGroupName, machineName, runCommandName, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String machineName, String runCommandName) {
+ return this.beginDeleteAsync(resourceGroupName, machineName, runCommandName).getSyncPoller();
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(
+ String resourceGroupName, String machineName, String runCommandName, Context context) {
+ return this.beginDeleteAsync(resourceGroupName, machineName, runCommandName, context).getSyncPoller();
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String machineName, String runCommandName) {
+ return beginDeleteAsync(resourceGroupName, machineName, runCommandName)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(
+ String resourceGroupName, String machineName, String runCommandName, Context context) {
+ return beginDeleteAsync(resourceGroupName, machineName, runCommandName, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String machineName, String runCommandName) {
+ deleteAsync(resourceGroupName, machineName, runCommandName).block();
+ }
+
+ /**
+ * The operation to delete a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String machineName, String runCommandName, Context context) {
+ deleteAsync(resourceGroupName, machineName, runCommandName, context).block();
+ }
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String machineName, String runCommandName) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String resourceGroupName, String machineName, String runCommandName, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null."));
+ }
+ if (runCommandName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter runCommandName 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
+ .get(
+ this.client.getEndpoint(),
+ resourceGroupName,
+ machineName,
+ runCommandName,
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ accept,
+ context);
+ }
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String machineName, String runCommandName) {
+ return getWithResponseAsync(resourceGroupName, machineName, runCommandName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String resourceGroupName, String machineName, String runCommandName, Context context) {
+ return getWithResponseAsync(resourceGroupName, machineName, runCommandName, context).block();
+ }
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @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 describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public MachineRunCommandInner get(String resourceGroupName, String machineName, String runCommandName) {
+ return getWithResponse(resourceGroupName, machineName, runCommandName, Context.NONE).getValue();
+ }
+
+ /**
+ * The operation to get all the run commands of a non-Azure machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param expand The expand expression to apply on the 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 describes the Run Commands List Result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String machineName, String expand) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (machineName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter machineName 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(),
+ resourceGroupName,
+ machineName,
+ expand,
+ 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()));
+ }
+
+ /**
+ * The operation to get all the run commands of a non-Azure machine.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param expand The expand expression to apply on the operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes the Run Commands List Result along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono