diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
index af7e03153024f..f6b850fef60da 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-05-17)
+- 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-05. 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..24a86899659c3 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-05. 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..1dab7db43577f
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
@@ -0,0 +1,741 @@
+# Code snippets and samples
+
+
+## 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)
+### MachineExtensions_CreateOrUpdate
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import java.io.IOException;
+
+/** Samples for MachineExtensions CreateOrUpdate. */
+public final class MachineExtensionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-05-10-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) throws IOException {
+ manager
+ .machineExtensions()
+ .define("CustomScriptExtension")
+ .withRegion("eastus2euap")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withProperties(
+ new MachineExtensionProperties()
+ .withPublisher("Microsoft.Compute")
+ .withType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withSettings(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -gt"
+ + " 10000 }\\\"\"}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .create();
+ }
+}
+```
+
+### 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-05-10-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-05-10-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-05-10-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.management.serializer.SerializerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpdateProperties;
+import java.io.IOException;
+
+/** Samples for MachineExtensions Update. */
+public final class MachineExtensionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-05-10-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) throws IOException {
+ 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(
+ SerializerFactory
+ .createDefaultManagementSerializerAdapter()
+ .deserialize(
+ "{\"commandToExecute\":\"powershell.exe -c \\\"Get-Process | Where-Object { $_.CPU -lt"
+ + " 100 }\\\"\"}",
+ Object.class,
+ SerializerEncoding.JSON)))
+ .apply();
+ }
+}
+```
+
+### 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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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-05-10-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 3d286fd38960e..afdaea03eba1c 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-05.
+ 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.28.0
-
-
- com.azure
- azure-core-management
- 1.6.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.28.0
+
+
+ com.azure
+ azure-core-management
+ 1.6.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..eba5f7a3e01c8 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,15 +8,18 @@
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;
@@ -28,17 +31,20 @@
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.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 +52,8 @@ public final class HybridComputeManager {
private MachineExtensions machineExtensions;
+ private ResourceProviders resourceProviders;
+
private Operations operations;
private PrivateLinkScopes privateLinkScopes;
@@ -81,6 +89,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 +113,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 +159,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 +181,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 +201,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 +241,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 +284,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 +296,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 +308,23 @@ 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 Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -241,7 +332,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 +344,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 +356,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/HybridComputeManagementClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
index 9363ab1e34962..d52dd0c7caa99 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,13 @@ public interface HybridComputeManagementClient {
*/
MachineExtensionsClient getMachineExtensions();
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+
/**
* 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..6f3c7d2a83e5c 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
@@ -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/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..14e2cfc99cb77 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 affliated 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 affliated 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..747fce2f181a0 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
*/
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..7adf9e5534300 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;
}
@@ -126,15 +125,12 @@ public HybridComputeManagementClientImpl buildClient() {
if (environment == null) {
this.environment = AzureEnvironment.AZURE;
}
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
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();
}
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..e019d7b79692a 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,6 +15,7 @@
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;
@@ -28,21 +29,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 +138,18 @@ 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 OperationsClient object to access its operations. */
private final OperationsClient operations;
@@ -209,9 +220,10 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-03-25-preview";
+ this.apiVersion = "2022-05-10-preview";
this.machines = new MachinesClientImpl(this);
this.machineExtensions = new MachineExtensionsClientImpl(this);
+ this.resourceProviders = new ResourceProvidersClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.privateLinkScopes = new PrivateLinkScopesClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
@@ -234,10 +246,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry