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/MachinesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
index d0ecfaa56860..052a74eb4a8f 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
@@ -15,7 +15,7 @@
/** 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 +29,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.
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..fcb730451606
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridIdentityMetadataInner.java
@@ -0,0 +1,107 @@
+// 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.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();
+
+ /** 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 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/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/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/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..be116f8d7c07 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
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -19,12 +18,6 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
@JsonProperty(value = "properties")
private PrivateEndpointConnectionProperties properties;
- /*
- * The system meta data relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of PrivateEndpointConnectionInner class. */
public PrivateEndpointConnectionInner() {
}
@@ -49,15 +42,6 @@ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionPr
return this;
}
- /**
- * Get the systemData property: The system meta data relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Validates the instance.
*
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..08eaf8dfc509 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
@@ -6,7 +6,6 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResourceProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -19,12 +18,6 @@ public final class PrivateLinkResourceInner extends ProxyResource {
@JsonProperty(value = "properties")
private PrivateLinkResourceProperties properties;
- /*
- * The system meta data relating to this resource.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
/** Creates an instance of PrivateLinkResourceInner class. */
public PrivateLinkResourceInner() {
}
@@ -49,15 +42,6 @@ public PrivateLinkResourceInner withProperties(PrivateLinkResourceProperties pro
return this;
}
- /**
- * Get the systemData property: The system meta data relating to this resource.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
/**
* Validates the instance.
*
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..6ca3c3e322c8 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,18 @@
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.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 +142,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 +178,42 @@ 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 PrivateLinkScopesClient object to access its operations. */
private final PrivateLinkScopesClient privateLinkScopes;
@@ -207,10 +272,15 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-03-25-preview";
+ this.apiVersion = "2023-03-15-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.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..0dedf3a36140
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridIdentityMetadataImpl.java
@@ -0,0 +1,54 @@
+// 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.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 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/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/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/MachinesClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinesClientImpl.java
index e6567b29de31..d324dd970cb5 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinesClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/MachinesClientImpl.java
@@ -59,8 +59,7 @@ public final class MachinesClientImpl implements MachinesClient {
public interface MachinesService {
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}")
@ExpectedResponses({200, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> delete(
@@ -74,8 +73,7 @@ Mono> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@@ -90,8 +88,7 @@ Mono> getByResourceGroup(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -135,7 +132,7 @@ Mono> listBySubscriptionNext(
}
/**
- * 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.
@@ -182,7 +179,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S
}
/**
- * 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.
@@ -228,7 +225,7 @@ private Mono> deleteWithResponseAsync(
}
/**
- * 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.
@@ -243,7 +240,7 @@ private Mono deleteAsync(String resourceGroupName, String machineName) {
}
/**
- * 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.
@@ -259,7 +256,7 @@ public Response deleteWithResponse(String resourceGroupName, String machin
}
/**
- * 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.
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfileImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfileImpl.java
new file mode 100644
index 000000000000..8ae7c8220cd1
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfileImpl.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.NetworkProfileInner;
+import com.azure.resourcemanager.hybridcompute.models.NetworkInterface;
+import com.azure.resourcemanager.hybridcompute.models.NetworkProfile;
+import java.util.Collections;
+import java.util.List;
+
+public final class NetworkProfileImpl implements NetworkProfile {
+ private NetworkProfileInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ NetworkProfileImpl(
+ NetworkProfileInner innerObject, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List networkInterfaces() {
+ List inner = this.innerModel().networkInterfaces();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public NetworkProfileInner 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/NetworkProfilesClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfilesClientImpl.java
new file mode 100644
index 000000000000..9c688a13acd6
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfilesClientImpl.java
@@ -0,0 +1,210 @@
+// 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.NetworkProfilesClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in NetworkProfilesClient. */
+public final class NetworkProfilesClientImpl implements NetworkProfilesClient {
+ /** The proxy service used to perform REST calls. */
+ private final NetworkProfilesService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of NetworkProfilesClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ NetworkProfilesClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(NetworkProfilesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientNetworkProfiles to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface NetworkProfilesService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/networkProfile")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @HeaderParam("Accept") String accept,
+ 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 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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(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
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ 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
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ accept,
+ 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String machineName) {
+ return getWithResponseAsync(resourceGroupName, machineName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * 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 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)
+ public Response getWithResponse(
+ String resourceGroupName, String machineName, Context context) {
+ return getWithResponseAsync(resourceGroupName, machineName, context).block();
+ }
+
+ /**
+ * 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 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)
+ public NetworkProfileInner get(String resourceGroupName, String machineName) {
+ return getWithResponse(resourceGroupName, machineName, Context.NONE).getValue();
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfilesImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfilesImpl.java
new file mode 100644
index 000000000000..3ed703f3f392
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/NetworkProfilesImpl.java
@@ -0,0 +1,60 @@
+// 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.NetworkProfilesClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.NetworkProfileInner;
+import com.azure.resourcemanager.hybridcompute.models.NetworkProfile;
+import com.azure.resourcemanager.hybridcompute.models.NetworkProfiles;
+
+public final class NetworkProfilesImpl implements NetworkProfiles {
+ private static final ClientLogger LOGGER = new ClientLogger(NetworkProfilesImpl.class);
+
+ private final NetworkProfilesClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public NetworkProfilesImpl(
+ NetworkProfilesClient innerClient,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String machineName, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(resourceGroupName, machineName, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new NetworkProfileImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public NetworkProfile get(String resourceGroupName, String machineName) {
+ NetworkProfileInner inner = this.serviceClient().get(resourceGroupName, machineName);
+ if (inner != null) {
+ return new NetworkProfileImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ private NetworkProfilesClient 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/OperationValueImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/OperationValueImpl.java
index df3cc1e8dd4f..323ba788ca21 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/OperationValueImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/OperationValueImpl.java
@@ -31,6 +31,10 @@ public OperationValueDisplay display() {
return this.innerModel().display();
}
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
public OperationValueInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionImpl.java
index dfe0fcdbafa0..1d33269be764 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.hybridcompute.implementation;
-import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.hybridcompute.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnection;
@@ -32,10 +31,6 @@ public PrivateEndpointConnectionProperties properties() {
return this.innerModel().properties();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public String resourceGroupName() {
return resourceGroupName;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionsClientImpl.java
index 9052c56008ca..6b7ca74b7fef 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -68,8 +68,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
public interface PrivateEndpointConnectionsService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
@@ -84,8 +83,7 @@ Mono> get(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({200, 202})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> createOrUpdate(
@@ -101,8 +99,7 @@ Mono>> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections/{privateEndpointConnectionName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -117,8 +114,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateEndpointConnections")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateEndpointConnections")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByPrivateLinkScope(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourceImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourceImpl.java
index a60d1f87bc24..fc5bb883e18a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourceImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourceImpl.java
@@ -4,7 +4,6 @@
package com.azure.resourcemanager.hybridcompute.implementation;
-import com.azure.core.management.SystemData;
import com.azure.resourcemanager.hybridcompute.fluent.models.PrivateLinkResourceInner;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResource;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResourceProperties;
@@ -37,10 +36,6 @@ public PrivateLinkResourceProperties properties() {
return this.innerModel().properties();
}
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
public PrivateLinkResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourcesClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourcesClientImpl.java
index a67e079ae649..c9be40dbf2c7 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkResourcesClientImpl.java
@@ -59,8 +59,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
public interface PrivateLinkResourcesService {
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateLinkResources")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByPrivateLinkScope(
@@ -74,8 +73,7 @@ Mono> listByPrivateLinkScope(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}/privateLinkResources/{groupName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> get(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkScopesClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkScopesClientImpl.java
index a7523de1eaea..1543133d5dac 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkScopesClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/PrivateLinkScopesClientImpl.java
@@ -80,8 +80,7 @@ Mono> list(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroup(
@@ -94,8 +93,7 @@ Mono> listByResourceGroup(
@Headers({"Content-Type: application/json"})
@Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}")
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono>> delete(
@@ -109,8 +107,7 @@ Mono>> delete(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getByResourceGroup(
@@ -124,8 +121,7 @@ Mono> getByResourceGroup(
@Headers({"Content-Type: application/json"})
@Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> createOrUpdate(
@@ -140,8 +136,7 @@ Mono> createOrUpdate(
@Headers({"Content-Type: application/json"})
@Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/privateLinkScopes/{scopeName}")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/privateLinkScopes/{scopeName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> updateTags(
@@ -156,8 +151,7 @@ Mono> updateTags(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/privateLinkScopes"
- + "/{privateLinkScopeId}")
+ "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/privateLinkScopes/{privateLinkScopeId}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getValidationDetails(
@@ -171,8 +165,7 @@ Mono> getValidationDetails(
@Headers({"Content-Type: application/json"})
@Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute"
- + "/machines/{machineName}/privateLinkScopes/current")
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/privateLinkScopes/current")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> getValidationDetailsForMachine(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersClientImpl.java
new file mode 100644
index 000000000000..28a0db812083
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersClientImpl.java
@@ -0,0 +1,360 @@
+// 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.ExpectedResponses;
+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.Post;
+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.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.ResourceProvidersClient;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+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 ResourceProvidersClient. */
+public final class ResourceProvidersClientImpl implements ResourceProvidersClient {
+ /** The proxy service used to perform REST calls. */
+ private final ResourceProvidersService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ResourceProvidersClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ResourceProvidersClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ResourceProvidersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientResourceProviders to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ public interface ResourceProvidersService {
+ @Headers({"Content-Type: application/json"})
+ @Post(
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/upgradeExtensions")
+ @ExpectedResponses({200, 202})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> upgradeExtensions(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("machineName") String machineName,
+ @BodyParam("application/json") MachineExtensionUpgrade extensionUpgradeParameters,
+ @HeaderParam("Accept") String accept,
+ 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 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>> upgradeExtensionsWithResponseAsync(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ 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 (extensionUpgradeParameters == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter extensionUpgradeParameters is required and cannot be null."));
+ } else {
+ extensionUpgradeParameters.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .upgradeExtensions(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ extensionUpgradeParameters,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * 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 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>> upgradeExtensionsWithResponseAsync(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ 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 (extensionUpgradeParameters == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter extensionUpgradeParameters is required and cannot be null."));
+ } else {
+ extensionUpgradeParameters.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .upgradeExtensions(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ resourceGroupName,
+ machineName,
+ extensionUpgradeParameters,
+ accept,
+ 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 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> beginUpgradeExtensionsAsync(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ Mono>> mono =
+ upgradeExtensionsWithResponseAsync(resourceGroupName, machineName, extensionUpgradeParameters);
+ return this
+ .client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ }
+
+ /**
+ * 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 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> beginUpgradeExtensionsAsync(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context) {
+ context = this.client.mergeContext(context);
+ Mono>> mono =
+ upgradeExtensionsWithResponseAsync(resourceGroupName, machineName, extensionUpgradeParameters, context);
+ return this
+ .client
+ .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, 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 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> beginUpgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ return this
+ .beginUpgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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> beginUpgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context) {
+ return this
+ .beginUpgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters, context)
+ .getSyncPoller();
+ }
+
+ /**
+ * 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 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 upgradeExtensionsAsync(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ return beginUpgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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 upgradeExtensionsAsync(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context) {
+ return beginUpgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters, context)
+ .last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * 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 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 upgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ upgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters).block();
+ }
+
+ /**
+ * 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 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 upgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context) {
+ upgradeExtensionsAsync(resourceGroupName, machineName, extensionUpgradeParameters, context).block();
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersImpl.java
new file mode 100644
index 000000000000..cea28dc9778f
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ResourceProvidersImpl.java
@@ -0,0 +1,47 @@
+// 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.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.ResourceProvidersClient;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+import com.azure.resourcemanager.hybridcompute.models.ResourceProviders;
+
+public final class ResourceProvidersImpl implements ResourceProviders {
+ private static final ClientLogger LOGGER = new ClientLogger(ResourceProvidersImpl.class);
+
+ private final ResourceProvidersClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public ResourceProvidersImpl(
+ ResourceProvidersClient innerClient,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public void upgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters) {
+ this.serviceClient().upgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters);
+ }
+
+ public void upgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context) {
+ this.serviceClient().upgradeExtensions(resourceGroupName, machineName, extensionUpgradeParameters, context);
+ }
+
+ private ResourceProvidersClient 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/models/AgentConfiguration.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentConfiguration.java
new file mode 100644
index 000000000000..ac3b543a3ed2
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentConfiguration.java
@@ -0,0 +1,154 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM. */
+@Immutable
+public final class AgentConfiguration {
+ /*
+ * Specifies the URL of the proxy to be used.
+ */
+ @JsonProperty(value = "proxyUrl", access = JsonProperty.Access.WRITE_ONLY)
+ private String proxyUrl;
+
+ /*
+ * Specifies the list of ports that the agent will be able to listen on.
+ */
+ @JsonProperty(value = "incomingConnectionsPorts", access = JsonProperty.Access.WRITE_ONLY)
+ private List incomingConnectionsPorts;
+
+ /*
+ * Array of extensions that are allowed to be installed or updated.
+ */
+ @JsonProperty(value = "extensionsAllowList", access = JsonProperty.Access.WRITE_ONLY)
+ private List extensionsAllowList;
+
+ /*
+ * Array of extensions that are blocked (cannot be installed or updated)
+ */
+ @JsonProperty(value = "extensionsBlockList", access = JsonProperty.Access.WRITE_ONLY)
+ private List extensionsBlockList;
+
+ /*
+ * List of service names which should not use the specified proxy server.
+ */
+ @JsonProperty(value = "proxyBypass", access = JsonProperty.Access.WRITE_ONLY)
+ private List proxyBypass;
+
+ /*
+ * Specifies whether the extension service is enabled or disabled.
+ */
+ @JsonProperty(value = "extensionsEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private String extensionsEnabled;
+
+ /*
+ * Specified whether the guest configuration service is enabled or disabled.
+ */
+ @JsonProperty(value = "guestConfigurationEnabled", access = JsonProperty.Access.WRITE_ONLY)
+ private String guestConfigurationEnabled;
+
+ /*
+ * Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension
+ * allowlists and guest configuration, maintained by Microsoft.
+ */
+ @JsonProperty(value = "configMode", access = JsonProperty.Access.WRITE_ONLY)
+ private AgentConfigurationMode configMode;
+
+ /** Creates an instance of AgentConfiguration class. */
+ public AgentConfiguration() {
+ }
+
+ /**
+ * Get the proxyUrl property: Specifies the URL of the proxy to be used.
+ *
+ * @return the proxyUrl value.
+ */
+ public String proxyUrl() {
+ return this.proxyUrl;
+ }
+
+ /**
+ * Get the incomingConnectionsPorts property: Specifies the list of ports that the agent will be able to listen on.
+ *
+ * @return the incomingConnectionsPorts value.
+ */
+ public List incomingConnectionsPorts() {
+ return this.incomingConnectionsPorts;
+ }
+
+ /**
+ * Get the extensionsAllowList property: Array of extensions that are allowed to be installed or updated.
+ *
+ * @return the extensionsAllowList value.
+ */
+ public List extensionsAllowList() {
+ return this.extensionsAllowList;
+ }
+
+ /**
+ * Get the extensionsBlockList property: Array of extensions that are blocked (cannot be installed or updated).
+ *
+ * @return the extensionsBlockList value.
+ */
+ public List extensionsBlockList() {
+ return this.extensionsBlockList;
+ }
+
+ /**
+ * Get the proxyBypass property: List of service names which should not use the specified proxy server.
+ *
+ * @return the proxyBypass value.
+ */
+ public List proxyBypass() {
+ return this.proxyBypass;
+ }
+
+ /**
+ * Get the extensionsEnabled property: Specifies whether the extension service is enabled or disabled.
+ *
+ * @return the extensionsEnabled value.
+ */
+ public String extensionsEnabled() {
+ return this.extensionsEnabled;
+ }
+
+ /**
+ * Get the guestConfigurationEnabled property: Specified whether the guest configuration service is enabled or
+ * disabled.
+ *
+ * @return the guestConfigurationEnabled value.
+ */
+ public String guestConfigurationEnabled() {
+ return this.guestConfigurationEnabled;
+ }
+
+ /**
+ * Get the configMode property: Name of configuration mode to use. Modes are pre-defined configurations of security
+ * controls, extension allowlists and guest configuration, maintained by Microsoft.
+ *
+ * @return the configMode value.
+ */
+ public AgentConfigurationMode configMode() {
+ return this.configMode;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (extensionsAllowList() != null) {
+ extensionsAllowList().forEach(e -> e.validate());
+ }
+ if (extensionsBlockList() != null) {
+ extensionsBlockList().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentConfigurationMode.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentConfigurationMode.java
new file mode 100644
index 000000000000..5d9bfbdbe5ce
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentConfigurationMode.java
@@ -0,0 +1,50 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/**
+ * Name of configuration mode to use. Modes are pre-defined configurations of security controls, extension allowlists
+ * and guest configuration, maintained by Microsoft.
+ */
+public final class AgentConfigurationMode extends ExpandableStringEnum {
+ /** Static value full for AgentConfigurationMode. */
+ public static final AgentConfigurationMode FULL = fromString("full");
+
+ /** Static value monitor for AgentConfigurationMode. */
+ public static final AgentConfigurationMode MONITOR = fromString("monitor");
+
+ /**
+ * Creates a new instance of AgentConfigurationMode value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AgentConfigurationMode() {
+ }
+
+ /**
+ * Creates or finds a AgentConfigurationMode from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AgentConfigurationMode.
+ */
+ @JsonCreator
+ public static AgentConfigurationMode fromString(String name) {
+ return fromString(name, AgentConfigurationMode.class);
+ }
+
+ /**
+ * Gets known AgentConfigurationMode values.
+ *
+ * @return known AgentConfigurationMode values.
+ */
+ public static Collection values() {
+ return values(AgentConfigurationMode.class);
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentUpgrade.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentUpgrade.java
new file mode 100644
index 000000000000..e97b7b883450
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentUpgrade.java
@@ -0,0 +1,162 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The info w.r.t Agent Upgrade. */
+@Fluent
+public final class AgentUpgrade {
+ /*
+ * Specifies the version info w.r.t AgentUpgrade for the machine.
+ */
+ @JsonProperty(value = "desiredVersion")
+ private String desiredVersion;
+
+ /*
+ * The correlation ID passed in from RSM per upgrade.
+ */
+ @JsonProperty(value = "correlationId")
+ private String correlationId;
+
+ /*
+ * Specifies if RSM should try to upgrade this machine
+ */
+ @JsonProperty(value = "enableAutomaticUpgrade")
+ private Boolean enableAutomaticUpgrade;
+
+ /*
+ * Specifies the version of the last attempt
+ */
+ @JsonProperty(value = "lastAttemptDesiredVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastAttemptDesiredVersion;
+
+ /*
+ * Timestamp of last upgrade attempt
+ */
+ @JsonProperty(value = "lastAttemptTimestamp", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastAttemptTimestamp;
+
+ /*
+ * Specifies the status of Agent Upgrade.
+ */
+ @JsonProperty(value = "lastAttemptStatus", access = JsonProperty.Access.WRITE_ONLY)
+ private LastAttemptStatusEnum lastAttemptStatus;
+
+ /*
+ * Failure message of last upgrade attempt if any.
+ */
+ @JsonProperty(value = "lastAttemptMessage", access = JsonProperty.Access.WRITE_ONLY)
+ private String lastAttemptMessage;
+
+ /** Creates an instance of AgentUpgrade class. */
+ public AgentUpgrade() {
+ }
+
+ /**
+ * Get the desiredVersion property: Specifies the version info w.r.t AgentUpgrade for the machine.
+ *
+ * @return the desiredVersion value.
+ */
+ public String desiredVersion() {
+ return this.desiredVersion;
+ }
+
+ /**
+ * Set the desiredVersion property: Specifies the version info w.r.t AgentUpgrade for the machine.
+ *
+ * @param desiredVersion the desiredVersion value to set.
+ * @return the AgentUpgrade object itself.
+ */
+ public AgentUpgrade withDesiredVersion(String desiredVersion) {
+ this.desiredVersion = desiredVersion;
+ return this;
+ }
+
+ /**
+ * Get the correlationId property: The correlation ID passed in from RSM per upgrade.
+ *
+ * @return the correlationId value.
+ */
+ public String correlationId() {
+ return this.correlationId;
+ }
+
+ /**
+ * Set the correlationId property: The correlation ID passed in from RSM per upgrade.
+ *
+ * @param correlationId the correlationId value to set.
+ * @return the AgentUpgrade object itself.
+ */
+ public AgentUpgrade withCorrelationId(String correlationId) {
+ this.correlationId = correlationId;
+ return this;
+ }
+
+ /**
+ * Get the enableAutomaticUpgrade property: Specifies if RSM should try to upgrade this machine.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Specifies if RSM should try to upgrade this machine.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the AgentUpgrade object itself.
+ */
+ public AgentUpgrade withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
+ /**
+ * Get the lastAttemptDesiredVersion property: Specifies the version of the last attempt.
+ *
+ * @return the lastAttemptDesiredVersion value.
+ */
+ public String lastAttemptDesiredVersion() {
+ return this.lastAttemptDesiredVersion;
+ }
+
+ /**
+ * Get the lastAttemptTimestamp property: Timestamp of last upgrade attempt.
+ *
+ * @return the lastAttemptTimestamp value.
+ */
+ public String lastAttemptTimestamp() {
+ return this.lastAttemptTimestamp;
+ }
+
+ /**
+ * Get the lastAttemptStatus property: Specifies the status of Agent Upgrade.
+ *
+ * @return the lastAttemptStatus value.
+ */
+ public LastAttemptStatusEnum lastAttemptStatus() {
+ return this.lastAttemptStatus;
+ }
+
+ /**
+ * Get the lastAttemptMessage property: Failure message of last upgrade attempt if any.
+ *
+ * @return the lastAttemptMessage value.
+ */
+ public String lastAttemptMessage() {
+ return this.lastAttemptMessage;
+ }
+
+ /**
+ * 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/models/AgentVersion.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersion.java
new file mode 100644
index 000000000000..9ffee7c7211f
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersion.java
@@ -0,0 +1,38 @@
+// 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.models;
+
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner;
+
+/** An immutable client-side representation of AgentVersion. */
+public interface AgentVersion {
+ /**
+ * Gets the agentVersion property: Represents the agent version.
+ *
+ * @return the agentVersion value.
+ */
+ String agentVersion();
+
+ /**
+ * Gets the downloadLink property: Represents the download link of specific agent version.
+ *
+ * @return the downloadLink value.
+ */
+ String downloadLink();
+
+ /**
+ * Gets the osType property: Defines the os type.
+ *
+ * @return the osType value.
+ */
+ String osType();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionInner object.
+ *
+ * @return the inner object.
+ */
+ AgentVersionInner innerModel();
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersions.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersions.java
new file mode 100644
index 000000000000..f5130c9a4caa
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersions.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.models;
+
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of AgentVersions. */
+public interface AgentVersions {
+ /**
+ * 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 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 all Agent Versions along with the download link currently present along with {@link Response}.
+ */
+ Response listWithResponse(String osType, 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 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 all Agent Versions along with the download link currently present.
+ */
+ AgentVersionsList list(String osType);
+
+ /**
+ * 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 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 an Agent Version along with the download link currently present along with {@link Response}.
+ */
+ Response getWithResponse(String osType, String version, Context 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 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 an Agent Version along with the download link currently present.
+ */
+ AgentVersion get(String osType, String version);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersionsList.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersionsList.java
new file mode 100644
index 000000000000..1fff796c284e
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AgentVersionsList.java
@@ -0,0 +1,32 @@
+// 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.models;
+
+import com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionsListInner;
+import java.util.List;
+
+/** An immutable client-side representation of AgentVersionsList. */
+public interface AgentVersionsList {
+ /**
+ * Gets the value property: The list of available Agent Versions.
+ *
+ * @return the value value.
+ */
+ List value();
+
+ /**
+ * Gets the nextLink property: The URI to fetch the next 10 available Agent Versions.
+ *
+ * @return the nextLink value.
+ */
+ String nextLink();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.hybridcompute.fluent.models.AgentVersionsListInner object.
+ *
+ * @return the inner object.
+ */
+ AgentVersionsListInner innerModel();
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AssessmentModeTypes.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AssessmentModeTypes.java
new file mode 100644
index 000000000000..8ecd309c1751
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/AssessmentModeTypes.java
@@ -0,0 +1,47 @@
+// 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.models;
+
+import com.azure.core.util.ExpandableStringEnum;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import java.util.Collection;
+
+/** Specifies the assessment mode. */
+public final class AssessmentModeTypes extends ExpandableStringEnum {
+ /** Static value ImageDefault for AssessmentModeTypes. */
+ public static final AssessmentModeTypes IMAGE_DEFAULT = fromString("ImageDefault");
+
+ /** Static value AutomaticByPlatform for AssessmentModeTypes. */
+ public static final AssessmentModeTypes AUTOMATIC_BY_PLATFORM = fromString("AutomaticByPlatform");
+
+ /**
+ * Creates a new instance of AssessmentModeTypes value.
+ *
+ * @deprecated Use the {@link #fromString(String)} factory method.
+ */
+ @Deprecated
+ public AssessmentModeTypes() {
+ }
+
+ /**
+ * Creates or finds a AssessmentModeTypes from its string representation.
+ *
+ * @param name a name to look for.
+ * @return the corresponding AssessmentModeTypes.
+ */
+ @JsonCreator
+ public static AssessmentModeTypes fromString(String name) {
+ return fromString(name, AssessmentModeTypes.class);
+ }
+
+ /**
+ * Gets known AssessmentModeTypes values.
+ *
+ * @return known AssessmentModeTypes values.
+ */
+ public static Collection values() {
+ return values(AssessmentModeTypes.class);
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/CloudMetadata.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/CloudMetadata.java
new file mode 100644
index 000000000000..ac65d2743e4f
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/CloudMetadata.java
@@ -0,0 +1,39 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The metadata of the cloud environment (Azure/GCP/AWS/OCI...). */
+@Immutable
+public final class CloudMetadata {
+ /*
+ * Specifies the cloud provider (Azure/AWS/GCP...).
+ */
+ @JsonProperty(value = "provider", access = JsonProperty.Access.WRITE_ONLY)
+ private String provider;
+
+ /** Creates an instance of CloudMetadata class. */
+ public CloudMetadata() {
+ }
+
+ /**
+ * Get the provider property: Specifies the cloud provider (Azure/AWS/GCP...).
+ *
+ * @return the provider value.
+ */
+ public String provider() {
+ return this.provider;
+ }
+
+ /**
+ * 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/models/ConfigurationExtension.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ConfigurationExtension.java
new file mode 100644
index 000000000000..096d36407fd9
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ConfigurationExtension.java
@@ -0,0 +1,54 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes properties that can identify extensions. */
+@Immutable
+public final class ConfigurationExtension {
+ /*
+ * Publisher of the extension.
+ */
+ @JsonProperty(value = "publisher", access = JsonProperty.Access.WRITE_ONLY)
+ private String publisher;
+
+ /*
+ * Type of the extension.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /** Creates an instance of ConfigurationExtension class. */
+ public ConfigurationExtension() {
+ }
+
+ /**
+ * Get the publisher property: Publisher of the extension.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Get the type property: Type of the extension.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * 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/models/ExtensionMetadatas.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionMetadatas.java
new file mode 100644
index 000000000000..9c2700b10528
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionMetadatas.java
@@ -0,0 +1,72 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of ExtensionMetadatas. */
+public interface ExtensionMetadatas {
+ /**
+ * 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 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 an Extension Metadata based on location, publisher, extensionType and version along with {@link
+ * Response}.
+ */
+ Response getWithResponse(
+ String location, String publisher, String extensionType, String version, 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 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 an Extension Metadata based on location, publisher, extensionType and version.
+ */
+ ExtensionValue get(String location, String publisher, String extensionType, String version);
+
+ /**
+ * 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 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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ PagedIterable list(String location, String publisher, String 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 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 all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ PagedIterable list(String location, String publisher, String extensionType, Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionTargetProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionTargetProperties.java
new file mode 100644
index 000000000000..a7c0c522490e
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionTargetProperties.java
@@ -0,0 +1,50 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes the Machine Extension Target Version Properties. */
+@Fluent
+public final class ExtensionTargetProperties {
+ /*
+ * Properties for the specified Extension to Upgrade.
+ */
+ @JsonProperty(value = "targetVersion")
+ private String targetVersion;
+
+ /** Creates an instance of ExtensionTargetProperties class. */
+ public ExtensionTargetProperties() {
+ }
+
+ /**
+ * Get the targetVersion property: Properties for the specified Extension to Upgrade.
+ *
+ * @return the targetVersion value.
+ */
+ public String targetVersion() {
+ return this.targetVersion;
+ }
+
+ /**
+ * Set the targetVersion property: Properties for the specified Extension to Upgrade.
+ *
+ * @param targetVersion the targetVersion value to set.
+ * @return the ExtensionTargetProperties object itself.
+ */
+ public ExtensionTargetProperties withTargetVersion(String targetVersion) {
+ this.targetVersion = targetVersion;
+ 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/models/ExtensionValue.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionValue.java
new file mode 100644
index 000000000000..1538a450b3c1
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionValue.java
@@ -0,0 +1,67 @@
+// 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.models;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+
+/** An immutable client-side representation of ExtensionValue. */
+public interface ExtensionValue {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ SystemData systemData();
+
+ /**
+ * Gets the version property: The version of the Extension being received.
+ *
+ * @return the version value.
+ */
+ String version();
+
+ /**
+ * Gets the extensionType property: The type of the Extension being received.
+ *
+ * @return the extensionType value.
+ */
+ String extensionType();
+
+ /**
+ * Gets the publisher property: The publisher of the Extension being received.
+ *
+ * @return the publisher value.
+ */
+ String publisher();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner object.
+ *
+ * @return the inner object.
+ */
+ ExtensionValueInner innerModel();
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionValueListResult.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionValueListResult.java
new file mode 100644
index 000000000000..c773218ee9aa
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/ExtensionValueListResult.java
@@ -0,0 +1,44 @@
+// 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.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The List Extension Metadata response. */
+@Immutable
+public final class ExtensionValueListResult {
+ /*
+ * The list of extension metadata
+ */
+ @JsonProperty(value = "value", access = JsonProperty.Access.WRITE_ONLY)
+ private List value;
+
+ /** Creates an instance of ExtensionValueListResult class. */
+ public ExtensionValueListResult() {
+ }
+
+ /**
+ * Get the value property: The list of extension metadata.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * 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/models/HybridComputePrivateLinkScope.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScope.java
index 6c2e87e2e314..adfad17518b2 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScope.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScope.java
@@ -96,11 +96,13 @@ interface Definition
DefinitionStages.WithResourceGroup,
DefinitionStages.WithCreate {
}
+
/** The HybridComputePrivateLinkScope definition stages. */
interface DefinitionStages {
/** The first stage of the HybridComputePrivateLinkScope definition. */
interface Blank extends WithLocation {
}
+
/** The stage of the HybridComputePrivateLinkScope definition allowing to specify location. */
interface WithLocation {
/**
@@ -119,6 +121,7 @@ interface WithLocation {
*/
WithResourceGroup withRegion(String location);
}
+
/** The stage of the HybridComputePrivateLinkScope definition allowing to specify parent resource. */
interface WithResourceGroup {
/**
@@ -129,6 +132,7 @@ interface WithResourceGroup {
*/
WithCreate withExistingResourceGroup(String resourceGroupName);
}
+
/**
* The stage of the HybridComputePrivateLinkScope definition which contains all the minimum required properties
* for the resource to be created, but also allows for any other optional properties to be specified.
@@ -149,6 +153,7 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithPro
*/
HybridComputePrivateLinkScope create(Context context);
}
+
/** The stage of the HybridComputePrivateLinkScope definition allowing to specify tags. */
interface WithTags {
/**
@@ -159,6 +164,7 @@ interface WithTags {
*/
WithCreate withTags(Map tags);
}
+
/** The stage of the HybridComputePrivateLinkScope definition allowing to specify properties. */
interface WithProperties {
/**
@@ -170,6 +176,7 @@ interface WithProperties {
WithCreate withProperties(HybridComputePrivateLinkScopeProperties properties);
}
}
+
/**
* Begins update for the HybridComputePrivateLinkScope resource.
*
@@ -194,6 +201,7 @@ interface Update extends UpdateStages.WithTags {
*/
HybridComputePrivateLinkScope apply(Context context);
}
+
/** The HybridComputePrivateLinkScope update stages. */
interface UpdateStages {
/** The stage of the HybridComputePrivateLinkScope update allowing to specify tags. */
@@ -207,6 +215,7 @@ interface WithTags {
Update withTags(Map tags);
}
}
+
/**
* Refreshes the resource to sync with Azure.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScopeProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScopeProperties.java
index 505090624185..c21577f80bc2 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScopeProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridComputePrivateLinkScopeProperties.java
@@ -6,6 +6,7 @@
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
/** Properties that define a Azure Arc PrivateLinkScope resource. */
@Fluent
@@ -31,6 +32,12 @@ public final class HybridComputePrivateLinkScopeProperties {
@JsonProperty(value = "privateLinkScopeId", access = JsonProperty.Access.WRITE_ONLY)
private String privateLinkScopeId;
+ /*
+ * The collection of associated Private Endpoint Connections.
+ */
+ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY)
+ private List privateEndpointConnections;
+
/** Creates an instance of HybridComputePrivateLinkScopeProperties class. */
public HybridComputePrivateLinkScopeProperties() {
}
@@ -78,11 +85,23 @@ public String privateLinkScopeId() {
return this.privateLinkScopeId;
}
+ /**
+ * Get the privateEndpointConnections property: The collection of associated Private Endpoint Connections.
+ *
+ * @return the privateEndpointConnections value.
+ */
+ public List privateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (privateEndpointConnections() != null) {
+ privateEndpointConnections().forEach(e -> e.validate());
+ }
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadata.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadata.java
new file mode 100644
index 000000000000..1a0567c1e75d
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadata.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.models;
+
+import com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner;
+
+/** An immutable client-side representation of HybridIdentityMetadata. */
+public interface HybridIdentityMetadata {
+ /**
+ * Gets the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ String id();
+
+ /**
+ * Gets the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ String name();
+
+ /**
+ * Gets the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ String type();
+
+ /**
+ * Gets the vmId property: The unique identifier for the resource.
+ *
+ * @return the vmId value.
+ */
+ String vmId();
+
+ /**
+ * Gets the publicKey property: The Public Key.
+ *
+ * @return the publicKey value.
+ */
+ String publicKey();
+
+ /**
+ * Gets the identity property: Identity for the resource.
+ *
+ * @return the identity value.
+ */
+ Identity identity();
+
+ /**
+ * Gets the inner com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner object.
+ *
+ * @return the inner object.
+ */
+ HybridIdentityMetadataInner innerModel();
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadataList.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadataList.java
new file mode 100644
index 000000000000..def911a18a08
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadataList.java
@@ -0,0 +1,89 @@
+// 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.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.models.HybridIdentityMetadataInner;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** List of HybridIdentityMetadata. */
+@Fluent
+public final class HybridIdentityMetadataList {
+ /*
+ * Url to follow for getting next page of HybridIdentityMetadata.
+ */
+ @JsonProperty(value = "nextLink")
+ private String nextLink;
+
+ /*
+ * Array of HybridIdentityMetadata
+ */
+ @JsonProperty(value = "value", required = true)
+ private List value;
+
+ /** Creates an instance of HybridIdentityMetadataList class. */
+ public HybridIdentityMetadataList() {
+ }
+
+ /**
+ * Get the nextLink property: Url to follow for getting next page of HybridIdentityMetadata.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: Url to follow for getting next page of HybridIdentityMetadata.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the HybridIdentityMetadataList object itself.
+ */
+ public HybridIdentityMetadataList withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Get the value property: Array of HybridIdentityMetadata.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of HybridIdentityMetadata.
+ *
+ * @param value the value value to set.
+ * @return the HybridIdentityMetadataList object itself.
+ */
+ public HybridIdentityMetadataList withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property value in model HybridIdentityMetadataList"));
+ } else {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(HybridIdentityMetadataList.class);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadatas.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadatas.java
new file mode 100644
index 000000000000..f73fc930c52d
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/HybridIdentityMetadatas.java
@@ -0,0 +1,73 @@
+// 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.models;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+
+/** Resource collection API of HybridIdentityMetadatas. */
+public interface HybridIdentityMetadatas {
+ /**
+ * 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 com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return defines the HybridIdentityMetadata along with {@link Response}.
+ */
+ Response 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.
+ */
+ HybridIdentityMetadata 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}.
+ */
+ PagedIterable