diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
index af7e03153024f..98b85692c1d08 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
@@ -1,7 +1,8 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.0.0-beta.1 (2022-09-14)
+- Azure Resource Manager HybridCompute client library for Java. This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-15)
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
index 734229fd84771..af857b12ec07d 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager HybridCompute client library for Java.
-This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanagerazure-resourcemanager-hybridcompute
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
new file mode 100644
index 0000000000000..97f8e263ea0b7
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
@@ -0,0 +1,801 @@
+# Code snippets and samples
+
+
+## ExtensionMetadata
+
+- [Get](#extensionmetadata_get)
+- [List](#extensionmetadata_list)
+
+## MachineExtensions
+
+- [CreateOrUpdate](#machineextensions_createorupdate)
+- [Delete](#machineextensions_delete)
+- [Get](#machineextensions_get)
+- [List](#machineextensions_list)
+- [Update](#machineextensions_update)
+
+## Machines
+
+- [Delete](#machines_delete)
+- [GetByResourceGroup](#machines_getbyresourcegroup)
+- [List](#machines_list)
+- [ListByResourceGroup](#machines_listbyresourcegroup)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [ListByPrivateLinkScope](#privateendpointconnections_listbyprivatelinkscope)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [ListByPrivateLinkScope](#privatelinkresources_listbyprivatelinkscope)
+
+## PrivateLinkScopes
+
+- [CreateOrUpdate](#privatelinkscopes_createorupdate)
+- [Delete](#privatelinkscopes_delete)
+- [GetByResourceGroup](#privatelinkscopes_getbyresourcegroup)
+- [GetValidationDetails](#privatelinkscopes_getvalidationdetails)
+- [GetValidationDetailsForMachine](#privatelinkscopes_getvalidationdetailsformachine)
+- [List](#privatelinkscopes_list)
+- [ListByResourceGroup](#privatelinkscopes_listbyresourcegroup)
+- [UpdateTags](#privatelinkscopes_updatetags)
+
+## ResourceProvider
+
+- [UpgradeExtensions](#resourceprovider_upgradeextensions)
+### ExtensionMetadata_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExtensionMetadata Get. */
+public final class ExtensionMetadataGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/ExtensionMetadata_Get.json
+ */
+ /**
+ * Sample code: GET an extensions metadata.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAnExtensionsMetadata(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .extensionMetadatas()
+ .getWithResponse("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", "1.9.1", Context.NONE);
+ }
+}
+```
+
+### ExtensionMetadata_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExtensionMetadata List. */
+public final class ExtensionMetadataListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/ExtensionMetadata_List.json
+ */
+ /**
+ * Sample code: GET a list of extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAListOfExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionMetadatas().list("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MachineExtensions CreateOrUpdate. */
+public final class MachineExtensionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PUTExtension.json
+ */
+ /**
+ * Sample code: Create or Update a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void createOrUpdateAMachineExtension(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .machineExtensions()
+ .define("CustomScriptExtension")
+ .withRegion("eastus2euap")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withProperties(
+ new MachineExtensionProperties()
+ .withPublisher("Microsoft.Compute")
+ .withType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withSettings(
+ mapOf(
+ "commandToExecute",
+ "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"")))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MachineExtensions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions Delete. */
+public final class MachineExtensionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/DELETEExtension.json
+ */
+ /**
+ * Sample code: Delete a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deleteAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().delete("myResourceGroup", "myMachine", "MMA", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions Get. */
+public final class MachineExtensionsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/GETExtension.json
+ */
+ /**
+ * Sample code: GET Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions List. */
+public final class MachineExtensionsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/LISTExtension.json
+ */
+ /**
+ * Sample code: GET all Machine Extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAllMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().list("myResourceGroup", "myMachine", null, Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpdateProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MachineExtensions Update. */
+public final class MachineExtensionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/UpdateExtension.json
+ */
+ /**
+ * Sample code: Create or Update a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void createOrUpdateAMachineExtension(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ MachineExtension resource =
+ manager
+ .machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new MachineExtensionUpdateProperties()
+ .withPublisher("Microsoft.Compute")
+ .withType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(
+ mapOf(
+ "commandToExecute", "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"")))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Machines_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines Delete. */
+public final class MachinesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_Delete.json
+ */
+ /**
+ * Sample code: Delete a Machine.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deleteAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().deleteWithResponse("myResourceGroup", "myMachine", Context.NONE);
+ }
+}
+```
+
+### Machines_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines GetByResourceGroup. */
+public final class MachinesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_Get.json
+ */
+ /**
+ * Sample code: Get Machine.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().getByResourceGroupWithResponse("myResourceGroup", "myMachine", null, Context.NONE);
+ }
+}
+```
+
+### Machines_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines List. */
+public final class MachinesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Machines by resource group.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listMachinesByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().list(Context.NONE);
+ }
+}
+```
+
+### Machines_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines ListByResourceGroup. */
+public final class MachinesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List Machines by resource group.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listMachinesByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: List Hybrid Compute Provider Operations.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listHybridComputeProviderOperations(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
+import com.azure.resourcemanager.hybridcompute.models.PrivateLinkServiceConnectionStateProperty;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionUpdate.json
+ */
+ /**
+ * Sample code: Approve or reject a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void approveOrRejectAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("private-endpoint-connection-name")
+ .withExistingPrivateLinkScope("myResourceGroup", "myPrivateLinkScope")
+ .withProperties(
+ new PrivateEndpointConnectionProperties()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionStateProperty()
+ .withStatus("Approved")
+ .withDescription("Approved by johndoe@contoso.com")))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionDelete.json
+ */
+ /**
+ * Sample code: Deletes a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deletesAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections ListByPrivateLinkScope. */
+public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionList.json
+ */
+ /**
+ * Sample code: Gets list of private endpoint connections on a private link scope.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources Get. */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkResources()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "hybridcompute", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources ListByPrivateLinkScope. */
+public final class PrivateLinkResourcesListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkResources().listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes CreateOrUpdate. */
+public final class PrivateLinkScopesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesCreate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeCreate.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeCreate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("westus")
+ .withExistingResourceGroup("my-resource-group")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesUpdate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdate.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeUpdate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("westus")
+ .withExistingResourceGroup("my-resource-group")
+ .withTags(mapOf("Tag1", "Value1"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### PrivateLinkScopes_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes Delete. */
+public final class PrivateLinkScopesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesDelete.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesDelete.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopesDelete(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().delete("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetByResourceGroup. */
+public final class PrivateLinkScopesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGet.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetValidationDetails
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetValidationDetails. */
+public final class PrivateLinkScopesGetValidationDetailsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGetValidation.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getValidationDetailsWithResponse("wus2", "f5dc51d3-92ed-4d7e-947a-775ea79b4919", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetValidationDetailsForMachine
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetValidationDetailsForMachine. */
+public final class PrivateLinkScopesGetValidationDetailsForMachineSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGetValidationForMachine.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getValidationDetailsForMachineWithResponse("my-resource-group", "machineName", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes List. */
+public final class PrivateLinkScopesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesList.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesList.json.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopesListJson(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().list(Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes ListByResourceGroup. */
+public final class PrivateLinkScopesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesListByResourceGroup.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeListByResourceGroup.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeListByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().listByResourceGroup("my-resource-group", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_UpdateTags
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.HybridComputePrivateLinkScope;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes UpdateTags. */
+public final class PrivateLinkScopesUpdateTagsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesUpdateTagsOnly.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdateTagsOnly.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeUpdateTagsOnly(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ HybridComputePrivateLinkScope resource =
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Tag1", "Value1", "Tag2", "Value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ResourceProvider_UpgradeExtensions
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionTargetProperties;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ResourceProvider UpgradeExtensions. */
+public final class ResourceProviderUpgradeExtensionsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Extensions_Upgrade.json
+ */
+ /**
+ * Sample code: Upgrade Machine Extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void upgradeMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .resourceProviders()
+ .upgradeExtensions(
+ "myResourceGroup",
+ "myMachine",
+ new MachineExtensionUpgrade()
+ .withExtensionTargets(
+ mapOf(
+ "Microsoft.Azure.Monitoring",
+ new ExtensionTargetProperties().withTargetVersion("2.0"),
+ "Microsoft.Compute.CustomScriptExtension",
+ new ExtensionTargetProperties().withTargetVersion("1.10"))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
index df959e6225b10..63c62a9aa77f8 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-hybridcompute
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-hybridcompute
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for HybridCompute Management
- This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2021-03.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for HybridCompute Management
+ This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2022-08.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.32.0
-
-
- com.azure
- azure-core-management
- 1.8.0
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.32.0
+
+
+ com.azure
+ azure-core-management
+ 1.8.0
+
+
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
index 1c1d7418fc4c5..b0c5e1b02ff06 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
@@ -8,19 +8,23 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
+import com.azure.resourcemanager.hybridcompute.implementation.ExtensionMetadatasImpl;
import com.azure.resourcemanager.hybridcompute.implementation.HybridComputeManagementClientBuilder;
import com.azure.resourcemanager.hybridcompute.implementation.MachineExtensionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.MachinesImpl;
@@ -28,17 +32,21 @@
import com.azure.resourcemanager.hybridcompute.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkScopesImpl;
+import com.azure.resourcemanager.hybridcompute.implementation.ResourceProvidersImpl;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensions;
import com.azure.resourcemanager.hybridcompute.models.Machines;
import com.azure.resourcemanager.hybridcompute.models.Operations;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnections;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResources;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopes;
+import com.azure.resourcemanager.hybridcompute.models.ResourceProviders;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to HybridComputeManager. The Hybrid Compute Management Client. */
public final class HybridComputeManager {
@@ -46,6 +54,10 @@ public final class HybridComputeManager {
private MachineExtensions machineExtensions;
+ private ResourceProviders resourceProviders;
+
+ private ExtensionMetadatas extensionMetadatas;
+
private Operations operations;
private PrivateLinkScopes privateLinkScopes;
@@ -81,6 +93,19 @@ public static HybridComputeManager authenticate(TokenCredential credential, Azur
return configure().authenticate(credential, profile);
}
+ /**
+ * Creates an instance of HybridCompute service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the HybridCompute service API instance.
+ */
+ public static HybridComputeManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new HybridComputeManager(httpPipeline, profile, null);
+ }
+
/**
* Gets a Configurable instance that can be used to create HybridComputeManager with optional configuration.
*
@@ -92,12 +117,14 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -136,6 +163,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -147,6 +185,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -154,9 +205,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -192,20 +245,38 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -217,7 +288,11 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
}
}
- /** @return Resource collection API of Machines. */
+ /**
+ * Gets the resource collection API of Machines.
+ *
+ * @return Resource collection API of Machines.
+ */
public Machines machines() {
if (this.machines == null) {
this.machines = new MachinesImpl(clientObject.getMachines(), this);
@@ -225,7 +300,11 @@ public Machines machines() {
return machines;
}
- /** @return Resource collection API of MachineExtensions. */
+ /**
+ * Gets the resource collection API of MachineExtensions. It manages MachineExtension.
+ *
+ * @return Resource collection API of MachineExtensions.
+ */
public MachineExtensions machineExtensions() {
if (this.machineExtensions == null) {
this.machineExtensions = new MachineExtensionsImpl(clientObject.getMachineExtensions(), this);
@@ -233,7 +312,35 @@ public MachineExtensions machineExtensions() {
return machineExtensions;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of ResourceProviders.
+ *
+ * @return Resource collection API of ResourceProviders.
+ */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * Gets the resource collection API of ExtensionMetadatas.
+ *
+ * @return Resource collection API of ExtensionMetadatas.
+ */
+ public ExtensionMetadatas extensionMetadatas() {
+ if (this.extensionMetadatas == null) {
+ this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
+ }
+ return extensionMetadatas;
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -241,7 +348,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of PrivateLinkScopes. */
+ /**
+ * Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
+ *
+ * @return Resource collection API of PrivateLinkScopes.
+ */
public PrivateLinkScopes privateLinkScopes() {
if (this.privateLinkScopes == null) {
this.privateLinkScopes = new PrivateLinkScopesImpl(clientObject.getPrivateLinkScopes(), this);
@@ -249,7 +360,11 @@ public PrivateLinkScopes privateLinkScopes() {
return privateLinkScopes;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -257,7 +372,11 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.java
new file mode 100644
index 0000000000000..658991033c135
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.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;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+
+/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
+public interface ExtensionMetadatasClient {
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExtensionValueInner get(String locations, String publishers, String extensionTypes, String versions);
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String locations, String publishers, String extensionTypes, String versions, Context context);
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String locations, String publishers, String extensionTypes);
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String locations, String publishers, String extensionTypes, Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
index 9363ab1e34962..660f7849541ab 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
@@ -58,6 +58,20 @@ public interface HybridComputeManagementClient {
*/
MachineExtensionsClient getMachineExtensions();
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+
+ /**
+ * Gets the ExtensionMetadatasClient object to access its operations.
+ *
+ * @return the ExtensionMetadatasClient object.
+ */
+ ExtensionMetadatasClient getExtensionMetadatas();
+
/**
* Gets the OperationsClient object to access its operations.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java
index c82677a25ea7d..6f9196814dd82 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java
@@ -26,9 +26,9 @@ public interface MachineExtensionsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return the {@link SyncPoller} for polling of describes a Machine Extension.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineExtensionInner> beginCreateOrUpdate(
String resourceGroupName, String machineName, String extensionName, MachineExtensionInner extensionParameters);
@@ -43,9 +43,9 @@ SyncPoller, MachineExtensionInner> beginCreate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return the {@link SyncPoller} for polling of describes a Machine Extension.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineExtensionInner> beginCreateOrUpdate(
String resourceGroupName,
String machineName,
@@ -100,9 +100,9 @@ MachineExtensionInner createOrUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return the {@link SyncPoller} for polling of describes a Machine Extension.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineExtensionInner> beginUpdate(
String resourceGroupName, String machineName, String extensionName, MachineExtensionUpdate extensionParameters);
@@ -117,9 +117,9 @@ SyncPoller, MachineExtensionInner> beginUpdate
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return the {@link SyncPoller} for polling of describes a Machine Extension.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, MachineExtensionInner> beginUpdate(
String resourceGroupName,
String machineName,
@@ -173,9 +173,9 @@ MachineExtensionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String machineName, String extensionName);
/**
@@ -188,9 +188,9 @@ MachineExtensionInner update(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String machineName, String extensionName, Context context);
@@ -245,7 +245,7 @@ SyncPoller, Void> beginDelete(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return describes a Machine Extension along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -259,7 +259,7 @@ Response getWithResponse(
* @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 Machine Extensions List Result.
+ * @return describes the Machine Extensions List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName);
@@ -274,7 +274,7 @@ Response getWithResponse(
* @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 Machine Extensions List Result.
+ * @return describes the Machine Extensions List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(
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 a85dc990e858b..eb8966666b90c 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.
@@ -27,7 +27,7 @@ public interface MachinesClient {
void delete(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.
@@ -35,7 +35,7 @@ public interface MachinesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String resourceGroupName, String machineName, Context context);
@@ -63,7 +63,7 @@ public interface MachinesClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a hybrid machine.
+ * @return describes a hybrid machine along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -77,7 +77,7 @@ Response getByResourceGroupWithResponse(
* @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 List hybrid machine operation response.
+ * @return the List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -91,7 +91,7 @@ Response getByResourceGroupWithResponse(
* @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 List hybrid machine operation response.
+ * @return the List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -102,7 +102,7 @@ Response getByResourceGroupWithResponse(
*
* @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 List hybrid machine operation response.
+ * @return the List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -115,7 +115,7 @@ Response getByResourceGroupWithResponse(
* @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 List hybrid machine operation response.
+ * @return the List hybrid machine operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/OperationsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/OperationsClient.java
index 67bf2dff630e8..1e9ec54cd726c 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/OperationsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/OperationsClient.java
@@ -17,7 +17,7 @@ public interface OperationsClient {
*
* @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 a list of hybrid compute operations.
+ * @return a list of hybrid compute operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -29,7 +29,7 @@ public interface OperationsClient {
* @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 a list of hybrid compute operations.
+ * @return a list of hybrid compute operations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateEndpointConnectionsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateEndpointConnectionsClient.java
index eadfc4bb2553e..7b1ea2613f626 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateEndpointConnectionsClient.java
@@ -40,7 +40,7 @@ PrivateEndpointConnectionInner get(
* @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 a private endpoint connection.
+ * @return a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
@@ -56,9 +56,9 @@ Response getWithResponse(
* @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 a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String scopeName,
@@ -76,9 +76,9 @@ SyncPoller, PrivateEndpointConnection
* @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 a private endpoint connection.
+ * @return the {@link SyncPoller} for polling of a private endpoint connection.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, PrivateEndpointConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String scopeName,
@@ -135,9 +135,9 @@ PrivateEndpointConnectionInner createOrUpdate(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String scopeName, String privateEndpointConnectionName);
@@ -151,9 +151,9 @@ SyncPoller, Void> beginDelete(
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(
String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
@@ -192,7 +192,8 @@ SyncPoller, Void> beginDelete(
* @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 private endpoint connections on a private link scope.
+ * @return all private endpoint connections on a private link scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
@@ -206,7 +207,8 @@ SyncPoller, Void> beginDelete(
* @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 private endpoint connections on a private link scope.
+ * @return all private endpoint connections on a private link scope as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkResourcesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkResourcesClient.java
index 12d50d505d4e6..03c1afb034301 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkResourcesClient.java
@@ -21,7 +21,8 @@ public interface PrivateLinkResourcesClient {
* @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 private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
@@ -35,7 +36,8 @@ public interface PrivateLinkResourcesClient {
* @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 private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope as paginated
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(
@@ -65,7 +67,8 @@ PagedIterable listByPrivateLinkScope(
* @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 private link resources that need to be created for a Azure Monitor PrivateLinkScope.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope along with {@link
+ * Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkScopesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkScopesClient.java
index 2ee30ea56706b..435b76d154855 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkScopesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/PrivateLinkScopesClient.java
@@ -22,7 +22,8 @@ public interface PrivateLinkScopesClient {
*
* @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 a list of all Azure Arc PrivateLinkScopes within a subscription.
+ * @return a list of all Azure Arc PrivateLinkScopes within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -34,7 +35,8 @@ public interface PrivateLinkScopesClient {
* @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 a list of all Azure Arc PrivateLinkScopes within a subscription.
+ * @return a list of all Azure Arc PrivateLinkScopes within a subscription as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
@@ -46,7 +48,8 @@ public interface PrivateLinkScopesClient {
* @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 a list of Azure Arc PrivateLinkScopes within a resource group.
+ * @return a list of Azure Arc PrivateLinkScopes within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -59,7 +62,8 @@ public interface PrivateLinkScopesClient {
* @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 a list of Azure Arc PrivateLinkScopes within a resource group.
+ * @return a list of Azure Arc PrivateLinkScopes within a resource group as paginated response with {@link
+ * PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -72,9 +76,9 @@ public interface PrivateLinkScopesClient {
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName);
/**
@@ -86,9 +90,9 @@ public interface PrivateLinkScopesClient {
* @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 completion.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName, Context context);
/**
@@ -138,7 +142,7 @@ public interface PrivateLinkScopesClient {
* @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 Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByResourceGroupWithResponse(
@@ -173,7 +177,7 @@ HybridComputePrivateLinkScopeInner createOrUpdate(
* @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 Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response createOrUpdateWithResponse(
@@ -204,7 +208,7 @@ HybridComputePrivateLinkScopeInner updateTags(
* @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 Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateTagsWithResponse(
@@ -232,7 +236,7 @@ Response updateTagsWithResponse(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getValidationDetailsWithResponse(
@@ -260,7 +264,7 @@ Response getValidationDetailsWithRespons
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getValidationDetailsForMachineWithResponse(
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 0000000000000..22c4e9a1c6958
--- /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/ExtensionValueInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
new file mode 100644
index 0000000000000..d8bc525516f43
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
@@ -0,0 +1,51 @@
+// 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.resourcemanager.hybridcompute.models.ExtensionValueProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes a Extension Metadata. */
+@Fluent
+public final class ExtensionValueInner extends ProxyResource {
+ /*
+ * The single extension based on search criteria
+ */
+ @JsonProperty(value = "properties")
+ private ExtensionValueProperties properties;
+
+ /**
+ * Get the properties property: The single extension based on search criteria.
+ *
+ * @return the properties value.
+ */
+ public ExtensionValueProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The single extension based on search criteria.
+ *
+ * @param properties the properties value to set.
+ * @return the ExtensionValueInner object itself.
+ */
+ public ExtensionValueInner withProperties(ExtensionValueProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java
index db2422834719e..4de774572072f 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java
@@ -6,18 +6,14 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.HybridComputePrivateLinkScopeProperties;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopesResource;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** An Azure Arc PrivateLinkScope definition. */
@Fluent
public final class HybridComputePrivateLinkScopeInner extends PrivateLinkScopesResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(HybridComputePrivateLinkScopeInner.class);
-
/*
* Properties that define a Azure Arc PrivateLinkScope resource.
*/
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 c39f1b42b5a49..0446b3256c7b4 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,17 +7,13 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/** Describes a Machine Extension. */
@Fluent
public final class MachineExtensionInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineExtensionInner.class);
-
/*
* Describes Machine Extension Properties.
*/
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 a016f351c8f63..2e68490aa0951 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,24 +7,27 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.Identity;
import com.azure.resourcemanager.hybridcompute.models.MachineProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
import java.util.Map;
/** Describes a hybrid machine. */
@Fluent
public final class MachineInner extends Resource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineInner.class);
-
/*
* Hybrid Compute Machine properties
*/
@JsonProperty(value = "properties")
private MachineProperties properties;
+ /*
+ * The list of extensions affiliated to the machine
+ */
+ @JsonProperty(value = "resources", access = JsonProperty.Access.WRITE_ONLY)
+ private List resources;
+
/*
* Identity for the resource.
*/
@@ -57,6 +60,15 @@ public MachineInner withProperties(MachineProperties properties) {
return this;
}
+ /**
+ * Get the resources property: The list of extensions affiliated to the machine.
+ *
+ * @return the resources value.
+ */
+ public List resources() {
+ return this.resources;
+ }
+
/**
* Get the identity property: Identity for the resource.
*
@@ -109,6 +121,9 @@ public void validate() {
if (properties() != null) {
properties().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/OperationValueInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/OperationValueInner.java
index cd90cfe0f799d..26cfda34872b4 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
@@ -5,16 +5,12 @@
package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.OperationValueDisplay;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes the properties of a Compute Operation value. */
@Fluent
public final class OperationValueInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(OperationValueInner.class);
-
/*
* The origin of the compute operation.
*/
@@ -33,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;
+
/**
* Get the origin property: The origin of the compute operation.
*
@@ -71,6 +73,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 0000000000000..dde8d342b70a6
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.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.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;
+
+ /**
+ * 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 993acf042f404..4268b91e37f50 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
@@ -7,16 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A private endpoint connection. */
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateEndpointConnectionInner.class);
-
/*
* Resource properties.
*/
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 b6bd5325e6e10..b98a715d3f585 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
@@ -7,16 +7,12 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResourceProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** A private link resource. */
@Fluent
public final class PrivateLinkResourceInner extends ProxyResource {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkResourceInner.class);
-
/*
* Resource properties.
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
index 7f8e4adf6f7b7..740e8904ae302 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.ConnectionDetail;
import com.azure.resourcemanager.hybridcompute.models.PublicNetworkAccessType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The PrivateLinkScopeValidationDetails model. */
@Fluent
public final class PrivateLinkScopeValidationDetailsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkScopeValidationDetailsInner.class);
-
/*
* Azure resource Id
*/
@@ -24,8 +20,8 @@ public final class PrivateLinkScopeValidationDetailsInner {
private String id;
/*
- * Indicates whether machines associated with the private link scope can
- * also use public Azure Arc service endpoints.
+ * Indicates whether machines associated with the private link scope can also use public Azure Arc service
+ * endpoints.
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccessType publicNetworkAccess;
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 0000000000000..5b280e2a245d4
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java
@@ -0,0 +1,417 @@
+// 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")
+ private interface ExtensionMetadatasService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/providers/Microsoft.HybridCompute/locations/{locations}/publishers/{publishers}/extensionTypes"
+ + "/{extensionTypes}/versions/{versions}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("locations") String locations,
+ @PathParam("publishers") String publishers,
+ @PathParam("extensionTypes") String extensionTypes,
+ @PathParam("versions") String versions,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/providers/Microsoft.HybridCompute/locations/{locations}/publishers/{publishers}/extensionTypes"
+ + "/{extensionTypes}/versions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("locations") String locations,
+ @PathParam("publishers") String publishers,
+ @PathParam("extensionTypes") String extensionTypes,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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 locations, String publishers, String extensionTypes, String versions) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (locations == null) {
+ return Mono.error(new IllegalArgumentException("Parameter locations is required and cannot be null."));
+ }
+ if (publishers == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publishers is required and cannot be null."));
+ }
+ if (extensionTypes == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionTypes is required and cannot be null."));
+ }
+ if (versions == null) {
+ return Mono.error(new IllegalArgumentException("Parameter versions is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ locations,
+ publishers,
+ extensionTypes,
+ versions,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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 locations, String publishers, String extensionTypes, String versions, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (locations == null) {
+ return Mono.error(new IllegalArgumentException("Parameter locations is required and cannot be null."));
+ }
+ if (publishers == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publishers is required and cannot be null."));
+ }
+ if (extensionTypes == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionTypes is required and cannot be null."));
+ }
+ if (versions == null) {
+ return Mono.error(new IllegalArgumentException("Parameter versions 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(),
+ locations,
+ publishers,
+ extensionTypes,
+ versions,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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 locations, String publishers, String extensionTypes, String versions) {
+ return getWithResponseAsync(locations, publishers, extensionTypes, versions)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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 locations, String publishers, String extensionTypes, String versions) {
+ return getAsync(locations, publishers, extensionTypes, versions).block();
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes The extensionType of the Extension being received.
+ * @param versions 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 locations, String publishers, String extensionTypes, String versions, Context context) {
+ return getWithResponseAsync(locations, publishers, extensionTypes, versions, context).block();
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (locations == null) {
+ return Mono.error(new IllegalArgumentException("Parameter locations is required and cannot be null."));
+ }
+ if (publishers == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publishers is required and cannot be null."));
+ }
+ if (extensionTypes == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionTypes is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ locations,
+ publishers,
+ extensionTypes,
+ 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 locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (locations == null) {
+ return Mono.error(new IllegalArgumentException("Parameter locations is required and cannot be null."));
+ }
+ if (publishers == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publishers is required and cannot be null."));
+ }
+ if (extensionTypes == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionTypes 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(),
+ locations,
+ publishers,
+ extensionTypes,
+ 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 locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes) {
+ return new PagedFlux<>(() -> listSinglePageAsync(locations, publishers, extensionTypes));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(locations, publishers, extensionTypes, context));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes) {
+ return new PagedIterable<>(listAsync(locations, publishers, extensionTypes));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param locations The location of the Extension being received.
+ * @param publishers The publisher of the Extension being received.
+ * @param extensionTypes 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 locations, String publishers, String extensionTypes, Context context) {
+ return new PagedIterable<>(listAsync(locations, publishers, extensionTypes, 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 0000000000000..f5c1b1c6845fa
--- /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 ExtensionValue get(String locations, String publishers, String extensionTypes, String versions) {
+ ExtensionValueInner inner = this.serviceClient().get(locations, publishers, extensionTypes, versions);
+ if (inner != null) {
+ return new ExtensionValueImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getWithResponse(
+ String locations, String publishers, String extensionTypes, String versions, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(locations, publishers, extensionTypes, versions, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ExtensionValueImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String locations, String publishers, String extensionTypes) {
+ PagedIterable inner = this.serviceClient().list(locations, publishers, extensionTypes);
+ return Utils.mapPage(inner, inner1 -> new ExtensionValueImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String locations, String publishers, String extensionTypes, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(locations, publishers, extensionTypes, 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 0000000000000..9ce6a14ae7109
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java
@@ -0,0 +1,45 @@
+// 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.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValue;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValueProperties;
+
+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 ExtensionValueProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ 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/HybridComputeManagementClientBuilder.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
index b082d06e50bdd..b38ce59ecf9f9 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -67,34 +66,34 @@ public HybridComputeManagementClientBuilder environment(AzureEnvironment environ
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the HybridComputeManagementClientBuilder.
*/
- public HybridComputeManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public HybridComputeManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the HybridComputeManagementClientBuilder.
*/
- public HybridComputeManagementClientBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public HybridComputeManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -120,27 +119,26 @@ public HybridComputeManagementClientBuilder serializerAdapter(SerializerAdapter
* @return an instance of HybridComputeManagementClientImpl.
*/
public HybridComputeManagementClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
HybridComputeManagementClientImpl client =
new HybridComputeManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
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 0f4f2680c64c4..d72e69841ce5c 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
@@ -15,12 +15,14 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
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.ExtensionMetadatasClient;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachineExtensionsClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachinesClient;
@@ -28,21 +30,19 @@
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;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** Initializes a new instance of the HybridComputeManagementClientImpl type. */
@ServiceClient(builder = HybridComputeManagementClientBuilder.class)
public final class HybridComputeManagementClientImpl implements HybridComputeManagementClient {
- private final ClientLogger logger = new ClientLogger(HybridComputeManagementClientImpl.class);
-
/** The ID of the target subscription. */
private final String subscriptionId;
@@ -139,6 +139,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;
@@ -209,9 +233,11 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-03-25-preview";
+ this.apiVersion = "2022-08-11-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.privateLinkScopes = new PrivateLinkScopesClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
@@ -234,10 +260,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry