diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
index af7e03153024f..f866f6a0ec958 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-10-01)
+- Azure Resource Manager HybridCompute client library for Java. This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## 1.0.0-beta.1 (2021-04-15)
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
index 734229fd84771..af857b12ec07d 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager HybridCompute client library for Java.
-This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2021-03. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for HybridCompute Management SDK. The Hybrid Compute Management Client. Package tag package-preview-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanagerazure-resourcemanager-hybridcompute
- 1.0.0-beta.1
+ 1.0.0-beta.2
```
[//]: # ({x-version-update-end})
@@ -74,6 +74,9 @@ See [API design][design] for general introduction on design and key concepts on
## Examples
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md)
+
+
## Troubleshooting
## Next steps
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
new file mode 100644
index 0000000000000..d1912aacdfd06
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
@@ -0,0 +1,792 @@
+# Code snippets and samples
+
+
+## ExtensionMetadata
+
+- [Get](#extensionmetadata_get)
+- [List](#extensionmetadata_list)
+
+## MachineExtensions
+
+- [CreateOrUpdate](#machineextensions_createorupdate)
+- [Delete](#machineextensions_delete)
+- [Get](#machineextensions_get)
+- [List](#machineextensions_list)
+- [Update](#machineextensions_update)
+
+## Machines
+
+- [Delete](#machines_delete)
+- [GetByResourceGroup](#machines_getbyresourcegroup)
+- [List](#machines_list)
+- [ListByResourceGroup](#machines_listbyresourcegroup)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [CreateOrUpdate](#privateendpointconnections_createorupdate)
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [ListByPrivateLinkScope](#privateendpointconnections_listbyprivatelinkscope)
+
+## PrivateLinkResources
+
+- [Get](#privatelinkresources_get)
+- [ListByPrivateLinkScope](#privatelinkresources_listbyprivatelinkscope)
+
+## PrivateLinkScopes
+
+- [CreateOrUpdate](#privatelinkscopes_createorupdate)
+- [Delete](#privatelinkscopes_delete)
+- [GetByResourceGroup](#privatelinkscopes_getbyresourcegroup)
+- [GetValidationDetails](#privatelinkscopes_getvalidationdetails)
+- [GetValidationDetailsForMachine](#privatelinkscopes_getvalidationdetailsformachine)
+- [List](#privatelinkscopes_list)
+- [ListByResourceGroup](#privatelinkscopes_listbyresourcegroup)
+- [UpdateTags](#privatelinkscopes_updatetags)
+
+## ResourceProvider
+
+- [UpgradeExtensions](#resourceprovider_upgradeextensions)
+### ExtensionMetadata_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExtensionMetadata Get. */
+public final class ExtensionMetadataGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/ExtensionMetadata_Get.json
+ */
+ /**
+ * Sample code: GET an extensions metadata.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAnExtensionsMetadata(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .extensionMetadatas()
+ .getWithResponse("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", "1.9.1", Context.NONE);
+ }
+}
+```
+
+### ExtensionMetadata_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ExtensionMetadata List. */
+public final class ExtensionMetadataListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/ExtensionMetadata_List.json
+ */
+ /**
+ * Sample code: GET a list of extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAListOfExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionMetadatas().list("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MachineExtensions CreateOrUpdate. */
+public final class MachineExtensionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PUTExtension.json
+ */
+ /**
+ * Sample code: Create or Update a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void createOrUpdateAMachineExtension(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .machineExtensions()
+ .define("CustomScriptExtension")
+ .withRegion("eastus2euap")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withPublisher("Microsoft.Compute")
+ .withTypePropertiesType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withSettings(
+ mapOf("commandToExecute", "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\""))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### MachineExtensions_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions Delete. */
+public final class MachineExtensionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/DELETEExtension.json
+ */
+ /**
+ * Sample code: Delete a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deleteAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().delete("myResourceGroup", "myMachine", "MMA", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions Get. */
+public final class MachineExtensionsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/GETExtension.json
+ */
+ /**
+ * Sample code: GET Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MachineExtensions List. */
+public final class MachineExtensionsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/LISTExtension.json
+ */
+ /**
+ * Sample code: GET all Machine Extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAllMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().list("myResourceGroup", "myMachine", null, Context.NONE);
+ }
+}
+```
+
+### MachineExtensions_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for MachineExtensions Update. */
+public final class MachineExtensionsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/UpdateExtension.json
+ */
+ /**
+ * Sample code: Create or Update a Machine Extension.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void createOrUpdateAMachineExtension(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ MachineExtension resource =
+ manager
+ .machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withPublisher("Microsoft.Compute")
+ .withType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withEnableAutomaticUpgrade(true)
+ .withSettings(
+ mapOf("commandToExecute", "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\""))
+ .apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### Machines_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines Delete. */
+public final class MachinesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_Delete.json
+ */
+ /**
+ * Sample code: Delete a Machine.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deleteAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().deleteByResourceGroupWithResponse("myResourceGroup", "myMachine", Context.NONE);
+ }
+}
+```
+
+### Machines_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines GetByResourceGroup. */
+public final class MachinesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_Get.json
+ */
+ /**
+ * Sample code: Get Machine.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().getByResourceGroupWithResponse("myResourceGroup", "myMachine", null, Context.NONE);
+ }
+}
+```
+
+### Machines_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines List. */
+public final class MachinesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_ListBySubscription.json
+ */
+ /**
+ * Sample code: List Machines by resource group.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listMachinesByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().list(Context.NONE);
+ }
+}
+```
+
+### Machines_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Machines ListByResourceGroup. */
+public final class MachinesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Machines_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List Machines by resource group.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listMachinesByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().listByResourceGroup("myResourceGroup", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Operations_List.json
+ */
+ /**
+ * Sample code: List Hybrid Compute Provider Operations.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void listHybridComputeProviderOperations(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
+import com.azure.resourcemanager.hybridcompute.models.PrivateLinkServiceConnectionStateProperty;
+
+/** Samples for PrivateEndpointConnections CreateOrUpdate. */
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionUpdate.json
+ */
+ /**
+ * Sample code: Approve or reject a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void approveOrRejectAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("private-endpoint-connection-name")
+ .withExistingPrivateLinkScope("myResourceGroup", "myPrivateLinkScope")
+ .withProperties(
+ new PrivateEndpointConnectionProperties()
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionStateProperty()
+ .withStatus("Approved")
+ .withDescription("Approved by johndoe@contoso.com")))
+ .create();
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionDelete.json
+ */
+ /**
+ * Sample code: Deletes a private endpoint connection with a given name.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void deletesAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .delete("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections ListByPrivateLinkScope. */
+public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateEndpointConnectionList.json
+ */
+ /**
+ * Sample code: Gets list of private endpoint connections on a private link scope.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateEndpointConnections()
+ .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources Get. */
+public final class PrivateLinkResourcesGetSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopePrivateLinkResourceGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkResources()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "hybridcompute", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkResources_ListByPrivateLinkScope
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources ListByPrivateLinkScope. */
+public final class PrivateLinkResourcesListByPrivateLinkScopeSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopePrivateLinkResourceListGet.json
+ */
+ /**
+ * Sample code: Gets private endpoint connection.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void getsPrivateEndpointConnection(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkResources().listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_CreateOrUpdate
+
+```java
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes CreateOrUpdate. */
+public final class PrivateLinkScopesCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesCreate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeCreate.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeCreate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("westus")
+ .withExistingResourceGroup("my-resource-group")
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesUpdate.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdate.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeUpdate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("westus")
+ .withExistingResourceGroup("my-resource-group")
+ .withTags(mapOf("Tag1", "Value1"))
+ .create();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### PrivateLinkScopes_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes Delete. */
+public final class PrivateLinkScopesDeleteSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesDelete.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesDelete.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopesDelete(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().delete("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetByResourceGroup. */
+public final class PrivateLinkScopesGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGet.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetValidationDetails
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetValidationDetails. */
+public final class PrivateLinkScopesGetValidationDetailsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGetValidation.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getValidationDetailsWithResponse("wus2", "f5dc51d3-92ed-4d7e-947a-775ea79b4919", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_GetValidationDetailsForMachine
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes GetValidationDetailsForMachine. */
+public final class PrivateLinkScopesGetValidationDetailsForMachineSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesGetValidationForMachine.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeGet.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .privateLinkScopes()
+ .getValidationDetailsForMachineWithResponse("my-resource-group", "machineName", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes List. */
+public final class PrivateLinkScopesListSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesList.json
+ */
+ /**
+ * Sample code: PrivateLinkScopesList.json.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopesListJson(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().list(Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkScopes ListByResourceGroup. */
+public final class PrivateLinkScopesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesListByResourceGroup.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeListByResourceGroup.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeListByResourceGroup(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().listByResourceGroup("my-resource-group", Context.NONE);
+ }
+}
+```
+
+### PrivateLinkScopes_UpdateTags
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.HybridComputePrivateLinkScope;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for PrivateLinkScopes UpdateTags. */
+public final class PrivateLinkScopesUpdateTagsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/PrivateLinkScopesUpdateTagsOnly.json
+ */
+ /**
+ * Sample code: PrivateLinkScopeUpdateTagsOnly.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void privateLinkScopeUpdateTagsOnly(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ HybridComputePrivateLinkScope resource =
+ manager
+ .privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope", Context.NONE)
+ .getValue();
+ resource.update().withTags(mapOf("Tag1", "Value1", "Tag2", "Value2")).apply();
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
+### ResourceProvider_UpgradeExtensions
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionTargetProperties;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ResourceProvider UpgradeExtensions. */
+public final class ResourceProviderUpgradeExtensionsSamples {
+ /*
+ * x-ms-original-file: specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2022-08-11-preview/examples/Extensions_Upgrade.json
+ */
+ /**
+ * Sample code: Upgrade Machine Extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void upgradeMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager
+ .resourceProviders()
+ .upgradeExtensions(
+ "myResourceGroup",
+ "myMachine",
+ new MachineExtensionUpgrade()
+ .withExtensionTargets(
+ mapOf(
+ "Microsoft.Azure.Monitoring",
+ new ExtensionTargetProperties().withTargetVersion("2.0"),
+ "Microsoft.Compute.CustomScriptExtension",
+ new ExtensionTargetProperties().withTargetVersion("1.10"))),
+ Context.NONE);
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
index df959e6225b10..63c62a9aa77f8 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
@@ -1,55 +1,55 @@
- 4.0.0
-
- com.azure
- azure-client-sdk-parent
- 1.7.0
- ../../parents/azure-client-sdk-parent
-
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
- com.azure.resourcemanager
- azure-resourcemanager-hybridcompute
- 1.0.0-beta.2
- jar
+ com.azure.resourcemanager
+ azure-resourcemanager-hybridcompute
+ 1.0.0-beta.2
+ jar
- Microsoft Azure SDK for HybridCompute Management
- This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2021-03.
- https://github.com/Azure/azure-sdk-for-java
+ Microsoft Azure SDK for HybridCompute Management
+ This package contains Microsoft Azure SDK for HybridCompute Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Hybrid Compute Management Client. Package tag package-preview-2022-08.
+ https://github.com/Azure/azure-sdk-for-java
-
-
- The MIT License (MIT)
- http://opensource.org/licenses/MIT
- repo
-
-
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
-
- https://github.com/Azure/azure-sdk-for-java
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- scm:git:git@github.com:Azure/azure-sdk-for-java.git
- HEAD
-
-
-
- microsoft
- Microsoft
-
-
-
- UTF-8
- true
-
-
-
- com.azure
- azure-core
- 1.32.0
-
-
- com.azure
- azure-core-management
- 1.8.0
-
-
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.32.0
+
+
+ com.azure
+ azure-core-management
+ 1.8.0
+
+
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
index 1c1d7418fc4c5..b0c5e1b02ff06 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/HybridComputeManager.java
@@ -8,19 +8,23 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
-import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
+import com.azure.resourcemanager.hybridcompute.implementation.ExtensionMetadatasImpl;
import com.azure.resourcemanager.hybridcompute.implementation.HybridComputeManagementClientBuilder;
import com.azure.resourcemanager.hybridcompute.implementation.MachineExtensionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.MachinesImpl;
@@ -28,17 +32,21 @@
import com.azure.resourcemanager.hybridcompute.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.hybridcompute.implementation.PrivateLinkScopesImpl;
+import com.azure.resourcemanager.hybridcompute.implementation.ResourceProvidersImpl;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
import com.azure.resourcemanager.hybridcompute.models.MachineExtensions;
import com.azure.resourcemanager.hybridcompute.models.Machines;
import com.azure.resourcemanager.hybridcompute.models.Operations;
import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnections;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkResources;
import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopes;
+import com.azure.resourcemanager.hybridcompute.models.ResourceProviders;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
+import java.util.stream.Collectors;
/** Entry point to HybridComputeManager. The Hybrid Compute Management Client. */
public final class HybridComputeManager {
@@ -46,6 +54,10 @@ public final class HybridComputeManager {
private MachineExtensions machineExtensions;
+ private ResourceProviders resourceProviders;
+
+ private ExtensionMetadatas extensionMetadatas;
+
private Operations operations;
private PrivateLinkScopes privateLinkScopes;
@@ -81,6 +93,19 @@ public static HybridComputeManager authenticate(TokenCredential credential, Azur
return configure().authenticate(credential, profile);
}
+ /**
+ * Creates an instance of HybridCompute service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the HybridCompute service API instance.
+ */
+ public static HybridComputeManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new HybridComputeManager(httpPipeline, profile, null);
+ }
+
/**
* Gets a Configurable instance that can be used to create HybridComputeManager with optional configuration.
*
@@ -92,12 +117,14 @@ public static Configurable configure() {
/** The Configurable allowing configurations to be set. */
public static final class Configurable {
- private final ClientLogger logger = new ClientLogger(Configurable.class);
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
private Duration defaultPollInterval;
private Configurable() {
@@ -136,6 +163,17 @@ public Configurable withPolicy(HttpPipelinePolicy policy) {
return this;
}
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
/**
* Sets the retry policy to the HTTP pipeline.
*
@@ -147,6 +185,19 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
return this;
}
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
/**
* Sets the default poll interval, used when service does not provide "Retry-After" header.
*
@@ -154,9 +205,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
- throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
}
return this;
}
@@ -192,20 +245,38 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
userAgentBuilder.append(" (auto-generated)");
}
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
if (retryPolicy == null) {
- retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
}
List policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies
- .add(
- new BearerTokenAuthenticationPolicy(
- credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
- policies.addAll(this.policies);
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
@@ -217,7 +288,11 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
}
}
- /** @return Resource collection API of Machines. */
+ /**
+ * Gets the resource collection API of Machines.
+ *
+ * @return Resource collection API of Machines.
+ */
public Machines machines() {
if (this.machines == null) {
this.machines = new MachinesImpl(clientObject.getMachines(), this);
@@ -225,7 +300,11 @@ public Machines machines() {
return machines;
}
- /** @return Resource collection API of MachineExtensions. */
+ /**
+ * Gets the resource collection API of MachineExtensions. It manages MachineExtension.
+ *
+ * @return Resource collection API of MachineExtensions.
+ */
public MachineExtensions machineExtensions() {
if (this.machineExtensions == null) {
this.machineExtensions = new MachineExtensionsImpl(clientObject.getMachineExtensions(), this);
@@ -233,7 +312,35 @@ public MachineExtensions machineExtensions() {
return machineExtensions;
}
- /** @return Resource collection API of Operations. */
+ /**
+ * Gets the resource collection API of ResourceProviders.
+ *
+ * @return Resource collection API of ResourceProviders.
+ */
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
+ }
+ return resourceProviders;
+ }
+
+ /**
+ * Gets the resource collection API of ExtensionMetadatas.
+ *
+ * @return Resource collection API of ExtensionMetadatas.
+ */
+ public ExtensionMetadatas extensionMetadatas() {
+ if (this.extensionMetadatas == null) {
+ this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
+ }
+ return extensionMetadatas;
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
@@ -241,7 +348,11 @@ public Operations operations() {
return operations;
}
- /** @return Resource collection API of PrivateLinkScopes. */
+ /**
+ * Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
+ *
+ * @return Resource collection API of PrivateLinkScopes.
+ */
public PrivateLinkScopes privateLinkScopes() {
if (this.privateLinkScopes == null) {
this.privateLinkScopes = new PrivateLinkScopesImpl(clientObject.getPrivateLinkScopes(), this);
@@ -249,7 +360,11 @@ public PrivateLinkScopes privateLinkScopes() {
return privateLinkScopes;
}
- /** @return Resource collection API of PrivateLinkResources. */
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
public PrivateLinkResources privateLinkResources() {
if (this.privateLinkResources == null) {
this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
@@ -257,7 +372,11 @@ public PrivateLinkResources privateLinkResources() {
return privateLinkResources;
}
- /** @return Resource collection API of PrivateEndpointConnections. */
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
public PrivateEndpointConnections privateEndpointConnections() {
if (this.privateEndpointConnections == null) {
this.privateEndpointConnections =
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.java
new file mode 100644
index 0000000000000..0c4503ecb66e0
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadatasClient.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+
+/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
+public interface ExtensionMetadatasClient {
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String location, String publisher, String extensionType, String version, Context context);
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ExtensionValueInner get(String location, String publisher, String extensionType, String version);
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, String publisher, String extensionType);
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, String publisher, String extensionType, Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
index 9363ab1e34962..660f7849541ab 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
@@ -58,6 +58,20 @@ public interface HybridComputeManagementClient {
*/
MachineExtensionsClient getMachineExtensions();
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ ResourceProvidersClient getResourceProviders();
+
+ /**
+ * Gets the ExtensionMetadatasClient object to access its operations.
+ *
+ * @return the ExtensionMetadatasClient object.
+ */
+ ExtensionMetadatasClient getExtensionMetadatas();
+
/**
* Gets the OperationsClient object to access its operations.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineExtensionsClient.java
index c82677a25ea7d..14455916ca88e 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);
@@ -227,13 +227,15 @@ SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the machine containing the extension.
* @param extensionName The name of the machine extension.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Machine Extension.
+ * @return describes a Machine Extension along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MachineExtensionInner get(String resourceGroupName, String machineName, String extensionName);
+ Response getWithResponse(
+ String resourceGroupName, String machineName, String extensionName, Context context);
/**
* The operation to get the extension.
@@ -241,15 +243,13 @@ SyncPoller, Void> beginDelete(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the machine containing the extension.
* @param extensionName The name of the machine extension.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return describes a Machine Extension.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String machineName, String extensionName, Context context);
+ MachineExtensionInner get(String resourceGroupName, String machineName, String extensionName);
/**
* The operation to get all extensions of a non-Azure machine.
@@ -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..052a74eb4a8fc 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachinesClient.java
@@ -15,59 +15,59 @@
/** An instance of this class provides access to all the operations defined in MachinesClient. */
public interface MachinesClient {
/**
- * The operation to remove a hybrid machine identity in Azure.
+ * The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String machineName);
+ Response deleteWithResponse(String resourceGroupName, String machineName, Context context);
/**
- * The operation to remove a hybrid machine identity in Azure.
+ * The operation to delete a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
- * @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String machineName, Context context);
+ void delete(String resourceGroupName, String machineName);
/**
* Retrieves information about the model view or the instance view of a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
+ * @param expand The expand expression to apply on the operation.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a hybrid machine.
+ * @return describes a hybrid machine along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- MachineInner getByResourceGroup(String resourceGroupName, String machineName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String machineName, InstanceViewTypes expand, Context context);
/**
* Retrieves information about the model view or the instance view of a hybrid machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the hybrid machine.
- * @param expand The expand expression to apply on the operation.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return describes a hybrid machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String machineName, InstanceViewTypes expand, Context context);
+ MachineInner getByResourceGroup(String resourceGroupName, String machineName);
/**
* Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
@@ -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..2bf9cede48463 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
@@ -21,14 +21,15 @@ public interface PrivateEndpointConnectionsClient {
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param privateEndpointConnectionName The name of the private endpoint connection.
+ * @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 a private endpoint connection.
+ * @return a private endpoint connection along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(
- String resourceGroupName, String scopeName, String privateEndpointConnectionName);
+ Response getWithResponse(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
/**
* Gets a private endpoint connection.
@@ -36,15 +37,14 @@ PrivateEndpointConnectionInner get(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param privateEndpointConnectionName The name of the private endpoint connection.
- * @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 a private endpoint connection.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context);
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String scopeName, String privateEndpointConnectionName);
/**
* Approve or reject a private endpoint connection with a given name.
@@ -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..e590c144e5db6 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(
@@ -47,13 +49,16 @@ PagedIterable listByPrivateLinkScope(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param groupName The name of the private link resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the 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)
- PrivateLinkResourceInner get(String resourceGroupName, String scopeName, String groupName);
+ Response getWithResponse(
+ String resourceGroupName, String scopeName, String groupName, Context context);
/**
* Gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
@@ -61,13 +66,11 @@ PagedIterable listByPrivateLinkScope(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param groupName The name of the private link resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(
- String resourceGroupName, String scopeName, String groupName, Context context);
+ PrivateLinkResourceInner get(String resourceGroupName, String scopeName, String groupName);
}
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..f334ae205a651 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);
/**
@@ -121,28 +125,28 @@ public interface PrivateLinkScopesClient {
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HybridComputePrivateLinkScopeInner getByResourceGroup(String resourceGroupName, String scopeName);
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String scopeName, Context context);
/**
* Returns a Azure Arc PrivateLinkScope.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure Arc PrivateLinkScope definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String scopeName, Context context);
+ HybridComputePrivateLinkScopeInner getByResourceGroup(String resourceGroupName, String scopeName);
/**
* Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
@@ -152,14 +156,15 @@ Response getByResourceGroupWithResponse(
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param parameters Properties that need to be specified to create or update a Azure Arc for Servers and Clusters
* PrivateLinkScope.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HybridComputePrivateLinkScopeInner createOrUpdate(
- String resourceGroupName, String scopeName, HybridComputePrivateLinkScopeInner parameters);
+ Response createOrUpdateWithResponse(
+ String resourceGroupName, String scopeName, HybridComputePrivateLinkScopeInner parameters, Context context);
/**
* Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
@@ -169,15 +174,14 @@ HybridComputePrivateLinkScopeInner createOrUpdate(
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param parameters Properties that need to be specified to create or update a Azure Arc for Servers and Clusters
* PrivateLinkScope.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure Arc PrivateLinkScope definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(
- String resourceGroupName, String scopeName, HybridComputePrivateLinkScopeInner parameters, Context context);
+ HybridComputePrivateLinkScopeInner createOrUpdate(
+ String resourceGroupName, String scopeName, HybridComputePrivateLinkScopeInner parameters);
/**
* Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
@@ -185,14 +189,15 @@ Response createOrUpdateWithResponse(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return an Azure Arc PrivateLinkScope definition.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- HybridComputePrivateLinkScopeInner updateTags(
- String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags);
+ Response updateTagsWithResponse(
+ String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags, Context context);
/**
* Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
@@ -200,69 +205,68 @@ HybridComputePrivateLinkScopeInner updateTags(
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param scopeName The name of the Azure Arc PrivateLinkScope resource.
* @param privateLinkScopeTags Updated tag information to set into the PrivateLinkScope instance.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure Arc PrivateLinkScope definition.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateTagsWithResponse(
- String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags, Context context);
+ HybridComputePrivateLinkScopeInner updateTags(
+ String resourceGroupName, String scopeName, TagsResource privateLinkScopeTags);
/**
* Returns a Azure Arc PrivateLinkScope's validation details.
*
* @param location The location of the target resource.
* @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
+ * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkScopeValidationDetailsInner getValidationDetails(String location, String privateLinkScopeId);
+ Response getValidationDetailsWithResponse(
+ String location, String privateLinkScopeId, Context context);
/**
* Returns a Azure Arc PrivateLinkScope's validation details.
*
* @param location The location of the target resource.
* @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
- * @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getValidationDetailsWithResponse(
- String location, String privateLinkScopeId, Context context);
+ PrivateLinkScopeValidationDetailsInner getValidationDetails(String location, String privateLinkScopeId);
/**
* Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the target machine to get the private link scope validation details for.
+ * @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 response.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkScopeValidationDetailsInner getValidationDetailsForMachine(String resourceGroupName, String machineName);
+ Response getValidationDetailsForMachineWithResponse(
+ String resourceGroupName, String machineName, Context context);
/**
* Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param machineName The name of the target machine to get the private link scope validation details for.
- * @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 response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getValidationDetailsForMachineWithResponse(
- String resourceGroupName, String machineName, Context context);
+ PrivateLinkScopeValidationDetailsInner getValidationDetailsForMachine(String resourceGroupName, String machineName);
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java
new file mode 100644
index 0000000000000..22c4e9a1c6958
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ResourceProvidersClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpgrade;
+
+/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+public interface ResourceProvidersClient {
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginUpgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void upgradeExtensions(
+ String resourceGroupName, String machineName, MachineExtensionUpgrade extensionUpgradeParameters);
+
+ /**
+ * The operation to Upgrade Machine Extensions.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param extensionUpgradeParameters Parameters supplied to the Upgrade Extensions operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void upgradeExtensions(
+ String resourceGroupName,
+ String machineName,
+ MachineExtensionUpgrade extensionUpgradeParameters,
+ Context context);
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
new file mode 100644
index 0000000000000..2dbed12fa9426
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueInner.java
@@ -0,0 +1,86 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes a Extension Metadata. */
+@Immutable
+public final class ExtensionValueInner extends ProxyResource {
+ /*
+ * The single extension based on search criteria
+ */
+ @JsonProperty(value = "properties")
+ private ExtensionValueProperties innerProperties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /** Creates an instance of ExtensionValueInner class. */
+ public ExtensionValueInner() {
+ }
+
+ /**
+ * Get the innerProperties property: The single extension based on search criteria.
+ *
+ * @return the innerProperties value.
+ */
+ private ExtensionValueProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the version property: The version of the Extension being received.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.innerProperties() == null ? null : this.innerProperties().version();
+ }
+
+ /**
+ * Get the extensionType property: The type of the Extension being received.
+ *
+ * @return the extensionType value.
+ */
+ public String extensionType() {
+ return this.innerProperties() == null ? null : this.innerProperties().extensionType();
+ }
+
+ /**
+ * Get the publisher property: The publisher of the Extension being received.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.innerProperties() == null ? null : this.innerProperties().publisher();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java
new file mode 100644
index 0000000000000..e4d1cd9242230
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionValueProperties.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Describes Extension Metadata properties. */
+@Immutable
+public final class ExtensionValueProperties {
+ /*
+ * The version of the Extension being received.
+ */
+ @JsonProperty(value = "version", access = JsonProperty.Access.WRITE_ONLY)
+ private String version;
+
+ /*
+ * The type of the Extension being received.
+ */
+ @JsonProperty(value = "extensionType", access = JsonProperty.Access.WRITE_ONLY)
+ private String extensionType;
+
+ /*
+ * The publisher of the Extension being received.
+ */
+ @JsonProperty(value = "publisher", access = JsonProperty.Access.WRITE_ONLY)
+ private String publisher;
+
+ /** Creates an instance of ExtensionValueProperties class. */
+ public ExtensionValueProperties() {
+ }
+
+ /**
+ * Get the version property: The version of the Extension being received.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Get the extensionType property: The type of the Extension being received.
+ *
+ * @return the extensionType value.
+ */
+ public String extensionType() {
+ return this.extensionType;
+ }
+
+ /**
+ * Get the publisher property: The publisher of the Extension being received.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.publisher;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/HybridComputePrivateLinkScopeInner.java
index db2422834719e..6655bb8604dd7 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.
*/
@@ -30,6 +26,10 @@ public final class HybridComputePrivateLinkScopeInner extends PrivateLinkScopesR
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of HybridComputePrivateLinkScopeInner class. */
+ public HybridComputePrivateLinkScopeInner() {
+ }
+
/**
* Get the properties property: 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..0dac2a8317fe7 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,51 +7,40 @@
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.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
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.
*/
@JsonProperty(value = "properties")
- private MachineExtensionProperties properties;
+ private MachineExtensionProperties innerProperties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /**
- * Get the properties property: Describes Machine Extension Properties.
- *
- * @return the properties value.
- */
- public MachineExtensionProperties properties() {
- return this.properties;
+ /** Creates an instance of MachineExtensionInner class. */
+ public MachineExtensionInner() {
}
/**
- * Set the properties property: Describes Machine Extension Properties.
+ * Get the innerProperties property: Describes Machine Extension Properties.
*
- * @param properties the properties value to set.
- * @return the MachineExtensionInner object itself.
+ * @return the innerProperties value.
*/
- public MachineExtensionInner withProperties(MachineExtensionProperties properties) {
- this.properties = properties;
- return this;
+ private MachineExtensionProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -73,14 +62,240 @@ public MachineExtensionInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @return the forceUpdateTag value.
+ */
+ public String forceUpdateTag() {
+ return this.innerProperties() == null ? null : this.innerProperties().forceUpdateTag();
+ }
+
+ /**
+ * Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension
+ * configuration has not changed.
+ *
+ * @param forceUpdateTag the forceUpdateTag value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withForceUpdateTag(String forceUpdateTag) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withForceUpdateTag(forceUpdateTag);
+ return this;
+ }
+
+ /**
+ * Get the publisher property: The name of the extension handler publisher.
+ *
+ * @return the publisher value.
+ */
+ public String publisher() {
+ return this.innerProperties() == null ? null : this.innerProperties().publisher();
+ }
+
+ /**
+ * Set the publisher property: The name of the extension handler publisher.
+ *
+ * @param publisher the publisher value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withPublisher(String publisher) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withPublisher(publisher);
+ return this;
+ }
+
+ /**
+ * Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
+ *
+ * @return the type value.
+ */
+ public String typePropertiesType() {
+ return this.innerProperties() == null ? null : this.innerProperties().type();
+ }
+
+ /**
+ * Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".
+ *
+ * @param type the type value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withTypePropertiesType(String type) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withType(type);
+ return this;
+ }
+
+ /**
+ * Get the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @return the typeHandlerVersion value.
+ */
+ public String typeHandlerVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().typeHandlerVersion();
+ }
+
+ /**
+ * Set the typeHandlerVersion property: Specifies the version of the script handler.
+ *
+ * @param typeHandlerVersion the typeHandlerVersion value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withTypeHandlerVersion(typeHandlerVersion);
+ return this;
+ }
+
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableAutomaticUpgrade();
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withEnableAutomaticUpgrade(enableAutomaticUpgrade);
+ return this;
+ }
+
+ /**
+ * Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @return the autoUpgradeMinorVersion value.
+ */
+ public Boolean autoUpgradeMinorVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().autoUpgradeMinorVersion();
+ }
+
+ /**
+ * Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
+ * is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
+ * redeployed, even with this property set to true.
+ *
+ * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withAutoUpgradeMinorVersion(autoUpgradeMinorVersion);
+ return this;
+ }
+
+ /**
+ * Get the settings property: Json formatted public settings for the extension.
+ *
+ * @return the settings value.
+ */
+ public Map settings() {
+ return this.innerProperties() == null ? null : this.innerProperties().settings();
+ }
+
+ /**
+ * Set the settings property: Json formatted public settings for the extension.
+ *
+ * @param settings the settings value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withSettings(Map settings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withSettings(settings);
+ return this;
+ }
+
+ /**
+ * Get the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @return the protectedSettings value.
+ */
+ public Map protectedSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().protectedSettings();
+ }
+
+ /**
+ * Set the protectedSettings property: The extension can contain either protectedSettings or
+ * protectedSettingsFromKeyVault or no protected settings at all.
+ *
+ * @param protectedSettings the protectedSettings value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withProtectedSettings(Map protectedSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withProtectedSettings(protectedSettings);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the instanceView property: The machine extension instance view.
+ *
+ * @return the instanceView value.
+ */
+ public MachineExtensionInstanceView instanceView() {
+ return this.innerProperties() == null ? null : this.innerProperties().instanceView();
+ }
+
+ /**
+ * Set the instanceView property: The machine extension instance view.
+ *
+ * @param instanceView the instanceView value to set.
+ * @return the MachineExtensionInner object itself.
+ */
+ public MachineExtensionInner withInstanceView(MachineExtensionInstanceView instanceView) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineExtensionProperties();
+ }
+ this.innerProperties().withInstanceView(instanceView);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (properties() != null) {
- properties().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
}
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
similarity index 75%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
index 6618eec0024c0..3d1f8b5d626af 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionProperties.java
@@ -2,21 +2,19 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionInstanceView;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** Describes the properties of a Machine Extension. */
@Fluent
public final class MachineExtensionProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineExtensionProperties.class);
-
/*
- * How the extension handler should be forced to update even if the
- * extension configuration has not changed.
+ * How the extension handler should be forced to update even if the extension configuration has not changed.
*/
@JsonProperty(value = "forceUpdateTag")
private String forceUpdateTag;
@@ -28,8 +26,7 @@ public final class MachineExtensionProperties {
private String publisher;
/*
- * Specifies the type of the extension; an example is
- * "CustomScriptExtension".
+ * Specifies the type of the extension; an example is "CustomScriptExtension".
*/
@JsonProperty(value = "type")
private String type;
@@ -41,10 +38,16 @@ public final class MachineExtensionProperties {
private String typeHandlerVersion;
/*
- * Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension
- * will not upgrade minor versions unless redeployed, even with this
- * property set to true.
+ * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version
+ * available.
+ */
+ @JsonProperty(value = "enableAutomaticUpgrade")
+ private Boolean enableAutomaticUpgrade;
+
+ /*
+ * Indicates whether the extension should use a newer minor version if one is available at deployment time. Once
+ * deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set
+ * to true.
*/
@JsonProperty(value = "autoUpgradeMinorVersion")
private Boolean autoUpgradeMinorVersion;
@@ -53,14 +56,16 @@ public final class MachineExtensionProperties {
* Json formatted public settings for the extension.
*/
@JsonProperty(value = "settings")
- private Object settings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map settings;
/*
- * The extension can contain either protectedSettings or
- * protectedSettingsFromKeyVault or no protected settings at all.
+ * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at
+ * all.
*/
@JsonProperty(value = "protectedSettings")
- private Object protectedSettings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map protectedSettings;
/*
* The provisioning state, which only appears in the response.
@@ -74,6 +79,10 @@ public final class MachineExtensionProperties {
@JsonProperty(value = "instanceView")
private MachineExtensionInstanceView instanceView;
+ /** Creates an instance of MachineExtensionProperties class. */
+ public MachineExtensionProperties() {
+ }
+
/**
* Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
* configuration has not changed.
@@ -156,6 +165,28 @@ public MachineExtensionProperties withTypeHandlerVersion(String typeHandlerVersi
return this;
}
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionProperties object itself.
+ */
+ public MachineExtensionProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
/**
* Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
* is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
@@ -185,7 +216,7 @@ public MachineExtensionProperties withAutoUpgradeMinorVersion(Boolean autoUpgrad
*
* @return the settings value.
*/
- public Object settings() {
+ public Map settings() {
return this.settings;
}
@@ -195,7 +226,7 @@ public Object settings() {
* @param settings the settings value to set.
* @return the MachineExtensionProperties object itself.
*/
- public MachineExtensionProperties withSettings(Object settings) {
+ public MachineExtensionProperties withSettings(Map settings) {
this.settings = settings;
return this;
}
@@ -206,7 +237,7 @@ public MachineExtensionProperties withSettings(Object settings) {
*
* @return the protectedSettings value.
*/
- public Object protectedSettings() {
+ public Map protectedSettings() {
return this.protectedSettings;
}
@@ -217,7 +248,7 @@ public Object protectedSettings() {
* @param protectedSettings the protectedSettings value to set.
* @return the MachineExtensionProperties object itself.
*/
- public MachineExtensionProperties withProtectedSettings(Object protectedSettings) {
+ public MachineExtensionProperties withProtectedSettings(Map protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
similarity index 72%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
index 0278a0b152298..18a4c376960b6 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineExtensionUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
@@ -2,21 +2,18 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
/** Describes the properties of a Machine Extension. */
@Fluent
public final class MachineExtensionUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineExtensionUpdateProperties.class);
-
/*
- * How the extension handler should be forced to update even if the
- * extension configuration has not changed.
+ * How the extension handler should be forced to update even if the extension configuration has not changed.
*/
@JsonProperty(value = "forceUpdateTag")
private String forceUpdateTag;
@@ -28,8 +25,7 @@ public final class MachineExtensionUpdateProperties {
private String publisher;
/*
- * Specifies the type of the extension; an example is
- * "CustomScriptExtension".
+ * Specifies the type of the extension; an example is "CustomScriptExtension".
*/
@JsonProperty(value = "type")
private String type;
@@ -41,10 +37,16 @@ public final class MachineExtensionUpdateProperties {
private String typeHandlerVersion;
/*
- * Indicates whether the extension should use a newer minor version if one
- * is available at deployment time. Once deployed, however, the extension
- * will not upgrade minor versions unless redeployed, even with this
- * property set to true.
+ * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version
+ * available.
+ */
+ @JsonProperty(value = "enableAutomaticUpgrade")
+ private Boolean enableAutomaticUpgrade;
+
+ /*
+ * Indicates whether the extension should use a newer minor version if one is available at deployment time. Once
+ * deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set
+ * to true.
*/
@JsonProperty(value = "autoUpgradeMinorVersion")
private Boolean autoUpgradeMinorVersion;
@@ -53,14 +55,20 @@ public final class MachineExtensionUpdateProperties {
* Json formatted public settings for the extension.
*/
@JsonProperty(value = "settings")
- private Object settings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map settings;
/*
- * The extension can contain either protectedSettings or
- * protectedSettingsFromKeyVault or no protected settings at all.
+ * The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at
+ * all.
*/
@JsonProperty(value = "protectedSettings")
- private Object protectedSettings;
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
+ private Map protectedSettings;
+
+ /** Creates an instance of MachineExtensionUpdateProperties class. */
+ public MachineExtensionUpdateProperties() {
+ }
/**
* Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension
@@ -144,6 +152,28 @@ public MachineExtensionUpdateProperties withTypeHandlerVersion(String typeHandle
return this;
}
+ /**
+ * Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @return the enableAutomaticUpgrade value.
+ */
+ public Boolean enableAutomaticUpgrade() {
+ return this.enableAutomaticUpgrade;
+ }
+
+ /**
+ * Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the
+ * platform if there is a newer version available.
+ *
+ * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set.
+ * @return the MachineExtensionUpdateProperties object itself.
+ */
+ public MachineExtensionUpdateProperties withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) {
+ this.enableAutomaticUpgrade = enableAutomaticUpgrade;
+ return this;
+ }
+
/**
* Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one
* is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless
@@ -173,7 +203,7 @@ public MachineExtensionUpdateProperties withAutoUpgradeMinorVersion(Boolean auto
*
* @return the settings value.
*/
- public Object settings() {
+ public Map settings() {
return this.settings;
}
@@ -183,7 +213,7 @@ public Object settings() {
* @param settings the settings value to set.
* @return the MachineExtensionUpdateProperties object itself.
*/
- public MachineExtensionUpdateProperties withSettings(Object settings) {
+ public MachineExtensionUpdateProperties withSettings(Map settings) {
this.settings = settings;
return this;
}
@@ -194,7 +224,7 @@ public MachineExtensionUpdateProperties withSettings(Object settings) {
*
* @return the protectedSettings value.
*/
- public Object protectedSettings() {
+ public Map protectedSettings() {
return this.protectedSettings;
}
@@ -205,7 +235,7 @@ public Object protectedSettings() {
* @param protectedSettings the protectedSettings value to set.
* @return the MachineExtensionUpdateProperties object itself.
*/
- public MachineExtensionUpdateProperties withProtectedSettings(Object protectedSettings) {
+ public MachineExtensionUpdateProperties withProtectedSettings(Map protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInner.java
index a016f351c8f63..5bcead5fd4725 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,23 +7,33 @@
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.core.management.exception.ManagementError;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
import com.azure.resourcemanager.hybridcompute.models.Identity;
-import com.azure.resourcemanager.hybridcompute.models.MachineProperties;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
+import java.time.OffsetDateTime;
+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;
+ private MachineProperties innerProperties;
+
+ /*
+ * The list of extensions affiliated to the machine
+ */
+ @JsonProperty(value = "resources", access = JsonProperty.Access.WRITE_ONLY)
+ private List resources;
/*
* Identity for the resource.
@@ -32,29 +42,31 @@ public final class MachineInner extends Resource {
private Identity identity;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of MachineInner class. */
+ public MachineInner() {
+ }
+
/**
- * Get the properties property: Hybrid Compute Machine properties.
+ * Get the innerProperties property: Hybrid Compute Machine properties.
*
- * @return the properties value.
+ * @return the innerProperties value.
*/
- public MachineProperties properties() {
- return this.properties;
+ private MachineProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the properties property: Hybrid Compute Machine properties.
+ * Get the resources property: The list of extensions affiliated to the machine.
*
- * @param properties the properties value to set.
- * @return the MachineInner object itself.
+ * @return the resources value.
*/
- public MachineInner withProperties(MachineProperties properties) {
- this.properties = properties;
- return this;
+ public List resources() {
+ return this.resources;
}
/**
@@ -78,7 +90,7 @@ public MachineInner withIdentity(Identity identity) {
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
@@ -100,14 +112,398 @@ public MachineInner withTags(Map tags) {
return this;
}
+ /**
+ * Get the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @return the locationData value.
+ */
+ public LocationData locationData() {
+ return this.innerProperties() == null ? null : this.innerProperties().locationData();
+ }
+
+ /**
+ * Set the locationData property: Metadata pertaining to the geographic location of the resource.
+ *
+ * @param locationData the locationData value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withLocationData(LocationData locationData) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withLocationData(locationData);
+ return this;
+ }
+
+ /**
+ * Get the agentConfiguration property: Configurable properties that the user can set locally via the azcmagent
+ * config command, or remotely via ARM.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentConfiguration agentConfiguration() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentConfiguration();
+ }
+
+ /**
+ * Get the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @return the serviceStatuses value.
+ */
+ public ServiceStatuses serviceStatuses() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceStatuses();
+ }
+
+ /**
+ * Set the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @param serviceStatuses the serviceStatuses value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withServiceStatuses(ServiceStatuses serviceStatuses) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withServiceStatuses(serviceStatuses);
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.innerProperties() == null ? null : this.innerProperties().cloudMetadata();
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withCloudMetadata(CloudMetadata cloudMetadata) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withCloudMetadata(cloudMetadata);
+ return this;
+ }
+
+ /**
+ * Get the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().osProfile();
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withOsProfile(OSProfile osProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withOsProfile(osProfile);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state, which only appears in the response.
+ *
+ * @return the provisioningState value.
+ */
+ public String provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Get the status property: The status of the hybrid machine agent.
+ *
+ * @return the status value.
+ */
+ public StatusTypes status() {
+ return this.innerProperties() == null ? null : this.innerProperties().status();
+ }
+
+ /**
+ * Get the lastStatusChange property: The time of the last status change.
+ *
+ * @return the lastStatusChange value.
+ */
+ public OffsetDateTime lastStatusChange() {
+ return this.innerProperties() == null ? null : this.innerProperties().lastStatusChange();
+ }
+
+ /**
+ * Get the errorDetails property: Details about the error state.
+ *
+ * @return the errorDetails value.
+ */
+ public List errorDetails() {
+ return this.innerProperties() == null ? null : this.innerProperties().errorDetails();
+ }
+
+ /**
+ * Get the agentVersion property: The hybrid machine agent full version.
+ *
+ * @return the agentVersion value.
+ */
+ public String agentVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().agentVersion();
+ }
+
+ /**
+ * Get the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @return the vmId value.
+ */
+ public String vmId() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmId();
+ }
+
+ /**
+ * Set the vmId property: Specifies the hybrid machine unique ID.
+ *
+ * @param vmId the vmId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withVmId(String vmId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withVmId(vmId);
+ return this;
+ }
+
+ /**
+ * Get the displayName property: Specifies the hybrid machine display name.
+ *
+ * @return the displayName value.
+ */
+ public String displayName() {
+ return this.innerProperties() == null ? null : this.innerProperties().displayName();
+ }
+
+ /**
+ * Get the machineFqdn property: Specifies the hybrid machine FQDN.
+ *
+ * @return the machineFqdn value.
+ */
+ public String machineFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().machineFqdn();
+ }
+
+ /**
+ * Get the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @return the clientPublicKey value.
+ */
+ public String clientPublicKey() {
+ return this.innerProperties() == null ? null : this.innerProperties().clientPublicKey();
+ }
+
+ /**
+ * Set the clientPublicKey property: Public Key that the client provides to be used during initial resource
+ * onboarding.
+ *
+ * @param clientPublicKey the clientPublicKey value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withClientPublicKey(String clientPublicKey) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withClientPublicKey(clientPublicKey);
+ return this;
+ }
+
+ /**
+ * Get the osName property: The Operating System running on the hybrid machine.
+ *
+ * @return the osName value.
+ */
+ public String osName() {
+ return this.innerProperties() == null ? null : this.innerProperties().osName();
+ }
+
+ /**
+ * Get the osVersion property: The version of Operating System running on the hybrid machine.
+ *
+ * @return the osVersion value.
+ */
+ public String osVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().osVersion();
+ }
+
+ /**
+ * Get the osType property: The type of Operating System (windows/linux).
+ *
+ * @return the osType value.
+ */
+ public String osType() {
+ return this.innerProperties() == null ? null : this.innerProperties().osType();
+ }
+
+ /**
+ * Set the osType property: The type of Operating System (windows/linux).
+ *
+ * @param osType the osType value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withOsType(String osType) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withOsType(osType);
+ return this;
+ }
+
+ /**
+ * Get the vmUuid property: Specifies the Arc Machine's unique SMBIOS ID.
+ *
+ * @return the vmUuid value.
+ */
+ public String vmUuid() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmUuid();
+ }
+
+ /**
+ * Get the osSku property: Specifies the Operating System product SKU.
+ *
+ * @return the osSku value.
+ */
+ public String osSku() {
+ return this.innerProperties() == null ? null : this.innerProperties().osSku();
+ }
+
+ /**
+ * Get the domainName property: Specifies the Windows domain name.
+ *
+ * @return the domainName value.
+ */
+ public String domainName() {
+ return this.innerProperties() == null ? null : this.innerProperties().domainName();
+ }
+
+ /**
+ * Get the adFqdn property: Specifies the AD fully qualified display name.
+ *
+ * @return the adFqdn value.
+ */
+ public String adFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().adFqdn();
+ }
+
+ /**
+ * Get the dnsFqdn property: Specifies the DNS fully qualified display name.
+ *
+ * @return the dnsFqdn value.
+ */
+ public String dnsFqdn() {
+ return this.innerProperties() == null ? null : this.innerProperties().dnsFqdn();
+ }
+
+ /**
+ * Get the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @return the privateLinkScopeResourceId value.
+ */
+ public String privateLinkScopeResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkScopeResourceId();
+ }
+
+ /**
+ * Set the privateLinkScopeResourceId property: The resource id of the private link scope this machine is assigned
+ * to, if any.
+ *
+ * @param privateLinkScopeResourceId the privateLinkScopeResourceId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withPrivateLinkScopeResourceId(String privateLinkScopeResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withPrivateLinkScopeResourceId(privateLinkScopeResourceId);
+ return this;
+ }
+
+ /**
+ * Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @return the parentClusterResourceId value.
+ */
+ public String parentClusterResourceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().parentClusterResourceId();
+ }
+
+ /**
+ * Set the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
+ * assigned to, if any.
+ *
+ * @param parentClusterResourceId the parentClusterResourceId value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withParentClusterResourceId(String parentClusterResourceId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withParentClusterResourceId(parentClusterResourceId);
+ return this;
+ }
+
+ /**
+ * Get the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @return the mssqlDiscovered value.
+ */
+ public String mssqlDiscovered() {
+ return this.innerProperties() == null ? null : this.innerProperties().mssqlDiscovered();
+ }
+
+ /**
+ * Set the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @param mssqlDiscovered the mssqlDiscovered value to set.
+ * @return the MachineInner object itself.
+ */
+ public MachineInner withMssqlDiscovered(String mssqlDiscovered) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MachineProperties();
+ }
+ this.innerProperties().withMssqlDiscovered(mssqlDiscovered);
+ return this;
+ }
+
+ /**
+ * Get the detectedProperties property: Detected properties from the machine.
+ *
+ * @return the detectedProperties value.
+ */
+ public Map detectedProperties() {
+ return this.innerProperties() == null ? null : this.innerProperties().detectedProperties();
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (properties() != null) {
- properties().validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (resources() != null) {
+ resources().forEach(e -> e.validate());
}
if (identity() != null) {
identity().validate();
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineProperties.java
similarity index 69%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineProperties.java
index 050aba734e6cb..6dc0677f118f9 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineProperties.java
@@ -2,12 +2,17 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.exception.ManagementError;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.hybridcompute.models.AgentConfiguration;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
+import com.azure.resourcemanager.hybridcompute.models.ServiceStatuses;
+import com.azure.resourcemanager.hybridcompute.models.StatusTypes;
+import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
@@ -16,18 +21,34 @@
/** Describes the properties of a hybrid machine. */
@Fluent
public final class MachineProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineProperties.class);
-
/*
* Metadata pertaining to the geographic location of the resource.
*/
@JsonProperty(value = "locationData")
private LocationData locationData;
+ /*
+ * Configurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
+ */
+ @JsonProperty(value = "agentConfiguration", access = JsonProperty.Access.WRITE_ONLY)
+ private AgentConfiguration agentConfiguration;
+
+ /*
+ * Statuses of dependent services that are reported back to ARM.
+ */
+ @JsonProperty(value = "serviceStatuses")
+ private ServiceStatuses serviceStatuses;
+
+ /*
+ * The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ */
+ @JsonProperty(value = "cloudMetadata")
+ private CloudMetadata cloudMetadata;
+
/*
* Specifies the operating system settings for the hybrid machine.
*/
- @JsonProperty(value = "osProfile", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonProperty(value = "osProfile")
private OSProfile osProfile;
/*
@@ -79,8 +100,7 @@ public final class MachineProperties {
private String machineFqdn;
/*
- * Public Key that the client provides to be used during initial resource
- * onboarding
+ * Public Key that the client provides to be used during initial resource onboarding
*/
@JsonProperty(value = "clientPublicKey")
private String clientPublicKey;
@@ -98,16 +118,16 @@ public final class MachineProperties {
private String osVersion;
/*
- * Specifies the Arc Machine's unique SMBIOS ID
+ * The type of Operating System (windows/linux).
*/
- @JsonProperty(value = "vmUuid", access = JsonProperty.Access.WRITE_ONLY)
- private String vmUuid;
+ @JsonProperty(value = "osType")
+ private String osType;
/*
- * Machine Extensions information
+ * Specifies the Arc Machine's unique SMBIOS ID
*/
- @JsonProperty(value = "extensions")
- private List extensions;
+ @JsonProperty(value = "vmUuid", access = JsonProperty.Access.WRITE_ONLY)
+ private String vmUuid;
/*
* Specifies the Operating System product SKU.
@@ -134,25 +154,34 @@ public final class MachineProperties {
private String dnsFqdn;
/*
- * The resource id of the private link scope this machine is assigned to,
- * if any.
+ * The resource id of the private link scope this machine is assigned to, if any.
*/
@JsonProperty(value = "privateLinkScopeResourceId")
private String privateLinkScopeResourceId;
/*
- * The resource id of the parent cluster (Azure HCI) this machine is
- * assigned to, if any.
+ * The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
*/
@JsonProperty(value = "parentClusterResourceId")
private String parentClusterResourceId;
+ /*
+ * Specifies whether any MS SQL instance is discovered on the machine.
+ */
+ @JsonProperty(value = "mssqlDiscovered")
+ private String mssqlDiscovered;
+
/*
* Detected properties from the machine.
*/
@JsonProperty(value = "detectedProperties", access = JsonProperty.Access.WRITE_ONLY)
+ @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map detectedProperties;
+ /** Creates an instance of MachineProperties class. */
+ public MachineProperties() {
+ }
+
/**
* Get the locationData property: Metadata pertaining to the geographic location of the resource.
*
@@ -173,6 +202,56 @@ public MachineProperties withLocationData(LocationData locationData) {
return this;
}
+ /**
+ * Get the agentConfiguration property: Configurable properties that the user can set locally via the azcmagent
+ * config command, or remotely via ARM.
+ *
+ * @return the agentConfiguration value.
+ */
+ public AgentConfiguration agentConfiguration() {
+ return this.agentConfiguration;
+ }
+
+ /**
+ * Get the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @return the serviceStatuses value.
+ */
+ public ServiceStatuses serviceStatuses() {
+ return this.serviceStatuses;
+ }
+
+ /**
+ * Set the serviceStatuses property: Statuses of dependent services that are reported back to ARM.
+ *
+ * @param serviceStatuses the serviceStatuses value to set.
+ * @return the MachineProperties object itself.
+ */
+ public MachineProperties withServiceStatuses(ServiceStatuses serviceStatuses) {
+ this.serviceStatuses = serviceStatuses;
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.cloudMetadata;
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachineProperties object itself.
+ */
+ public MachineProperties withCloudMetadata(CloudMetadata cloudMetadata) {
+ this.cloudMetadata = cloudMetadata;
+ return this;
+ }
+
/**
* Get the osProfile property: Specifies the operating system settings for the hybrid machine.
*
@@ -182,6 +261,17 @@ public OSProfile osProfile() {
return this.osProfile;
}
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachineProperties object itself.
+ */
+ public MachineProperties withOsProfile(OSProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
/**
* Get the provisioningState property: The provisioning state, which only appears in the response.
*
@@ -306,32 +396,32 @@ public String osVersion() {
}
/**
- * Get the vmUuid property: Specifies the Arc Machine's unique SMBIOS ID.
+ * Get the osType property: The type of Operating System (windows/linux).
*
- * @return the vmUuid value.
+ * @return the osType value.
*/
- public String vmUuid() {
- return this.vmUuid;
+ public String osType() {
+ return this.osType;
}
/**
- * Get the extensions property: Machine Extensions information.
+ * Set the osType property: The type of Operating System (windows/linux).
*
- * @return the extensions value.
+ * @param osType the osType value to set.
+ * @return the MachineProperties object itself.
*/
- public List extensions() {
- return this.extensions;
+ public MachineProperties withOsType(String osType) {
+ this.osType = osType;
+ return this;
}
/**
- * Set the extensions property: Machine Extensions information.
+ * Get the vmUuid property: Specifies the Arc Machine's unique SMBIOS ID.
*
- * @param extensions the extensions value to set.
- * @return the MachineProperties object itself.
+ * @return the vmUuid value.
*/
- public MachineProperties withExtensions(List extensions) {
- this.extensions = extensions;
- return this;
+ public String vmUuid() {
+ return this.vmUuid;
}
/**
@@ -414,6 +504,26 @@ public MachineProperties withParentClusterResourceId(String parentClusterResourc
return this;
}
+ /**
+ * Get the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @return the mssqlDiscovered value.
+ */
+ public String mssqlDiscovered() {
+ return this.mssqlDiscovered;
+ }
+
+ /**
+ * Set the mssqlDiscovered property: Specifies whether any MS SQL instance is discovered on the machine.
+ *
+ * @param mssqlDiscovered the mssqlDiscovered value to set.
+ * @return the MachineProperties object itself.
+ */
+ public MachineProperties withMssqlDiscovered(String mssqlDiscovered) {
+ this.mssqlDiscovered = mssqlDiscovered;
+ return this;
+ }
+
/**
* Get the detectedProperties property: Detected properties from the machine.
*
@@ -432,11 +542,17 @@ public void validate() {
if (locationData() != null) {
locationData().validate();
}
+ if (agentConfiguration() != null) {
+ agentConfiguration().validate();
+ }
+ if (serviceStatuses() != null) {
+ serviceStatuses().validate();
+ }
+ if (cloudMetadata() != null) {
+ cloudMetadata().validate();
+ }
if (osProfile() != null) {
osProfile().validate();
}
- if (extensions() != null) {
- extensions().forEach(e -> e.validate());
- }
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
similarity index 61%
rename from sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java
rename to sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
index 08a318d410429..ac9038f4ded67 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/models/MachineUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
@@ -2,18 +2,17 @@
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
-package com.azure.resourcemanager.hybridcompute.models;
+package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
-import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.azure.resourcemanager.hybridcompute.models.CloudMetadata;
+import com.azure.resourcemanager.hybridcompute.models.LocationData;
+import com.azure.resourcemanager.hybridcompute.models.OSProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Describes the ARM updatable properties of a hybrid machine. */
@Fluent
public final class MachineUpdateProperties {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(MachineUpdateProperties.class);
-
/*
* Metadata pertaining to the geographic location of the resource.
*/
@@ -21,19 +20,33 @@ public final class MachineUpdateProperties {
private LocationData locationData;
/*
- * The resource id of the parent cluster (Azure HCI) this machine is
- * assigned to, if any.
+ * Specifies the operating system settings for the hybrid machine.
+ */
+ @JsonProperty(value = "osProfile")
+ private OSProfile osProfile;
+
+ /*
+ * The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ */
+ @JsonProperty(value = "cloudMetadata")
+ private CloudMetadata cloudMetadata;
+
+ /*
+ * The resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
*/
@JsonProperty(value = "parentClusterResourceId")
private String parentClusterResourceId;
/*
- * The resource id of the private link scope this machine is assigned to,
- * if any.
+ * The resource id of the private link scope this machine is assigned to, if any.
*/
@JsonProperty(value = "privateLinkScopeResourceId")
private String privateLinkScopeResourceId;
+ /** Creates an instance of MachineUpdateProperties class. */
+ public MachineUpdateProperties() {
+ }
+
/**
* Get the locationData property: Metadata pertaining to the geographic location of the resource.
*
@@ -54,6 +67,46 @@ public MachineUpdateProperties withLocationData(LocationData locationData) {
return this;
}
+ /**
+ * Get the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @return the osProfile value.
+ */
+ public OSProfile osProfile() {
+ return this.osProfile;
+ }
+
+ /**
+ * Set the osProfile property: Specifies the operating system settings for the hybrid machine.
+ *
+ * @param osProfile the osProfile value to set.
+ * @return the MachineUpdateProperties object itself.
+ */
+ public MachineUpdateProperties withOsProfile(OSProfile osProfile) {
+ this.osProfile = osProfile;
+ return this;
+ }
+
+ /**
+ * Get the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @return the cloudMetadata value.
+ */
+ public CloudMetadata cloudMetadata() {
+ return this.cloudMetadata;
+ }
+
+ /**
+ * Set the cloudMetadata property: The metadata of the cloud environment (Azure/GCP/AWS/OCI...).
+ *
+ * @param cloudMetadata the cloudMetadata value to set.
+ * @return the MachineUpdateProperties object itself.
+ */
+ public MachineUpdateProperties withCloudMetadata(CloudMetadata cloudMetadata) {
+ this.cloudMetadata = cloudMetadata;
+ return this;
+ }
+
/**
* Get the parentClusterResourceId property: The resource id of the parent cluster (Azure HCI) this machine is
* assigned to, if any.
@@ -107,5 +160,11 @@ public void validate() {
if (locationData() != null) {
locationData().validate();
}
+ if (osProfile() != null) {
+ osProfile().validate();
+ }
+ if (cloudMetadata() != null) {
+ cloudMetadata().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..3db00f32a5f0c 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,16 @@ public final class OperationValueInner {
@JsonProperty(value = "display")
private OperationValueDisplay display;
+ /*
+ * This property indicates if the operation is an action or a data action
+ */
+ @JsonProperty(value = "isDataAction", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean isDataAction;
+
+ /** Creates an instance of OperationValueInner class. */
+ public OperationValueInner() {
+ }
+
/**
* Get the origin property: The origin of the compute operation.
*
@@ -71,6 +77,15 @@ public OperationValueInner withDisplay(OperationValueDisplay display) {
return this;
}
+ /**
+ * Get the isDataAction property: This property indicates if the operation is an action or a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java
new file mode 100644
index 0000000000000..d92448aa83ca9
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PatchSettings.java
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.hybridcompute.models.AssessmentModeTypes;
+import com.azure.resourcemanager.hybridcompute.models.PatchModeTypes;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Specifies the patch settings. */
+@Fluent
+public final class PatchSettings {
+ /*
+ * Specifies the assessment mode.
+ */
+ @JsonProperty(value = "assessmentMode")
+ private AssessmentModeTypes assessmentMode;
+
+ /*
+ * Specifies the patch mode.
+ */
+ @JsonProperty(value = "patchMode")
+ private PatchModeTypes patchMode;
+
+ /** Creates an instance of PatchSettings class. */
+ public PatchSettings() {
+ }
+
+ /**
+ * Get the assessmentMode property: Specifies the assessment mode.
+ *
+ * @return the assessmentMode value.
+ */
+ public AssessmentModeTypes assessmentMode() {
+ return this.assessmentMode;
+ }
+
+ /**
+ * Set the assessmentMode property: Specifies the assessment mode.
+ *
+ * @param assessmentMode the assessmentMode value to set.
+ * @return the PatchSettings object itself.
+ */
+ public PatchSettings withAssessmentMode(AssessmentModeTypes assessmentMode) {
+ this.assessmentMode = assessmentMode;
+ return this;
+ }
+
+ /**
+ * Get the patchMode property: Specifies the patch mode.
+ *
+ * @return the patchMode value.
+ */
+ public PatchModeTypes patchMode() {
+ return this.patchMode;
+ }
+
+ /**
+ * Set the patchMode property: Specifies the patch mode.
+ *
+ * @param patchMode the patchMode value to set.
+ * @return the PatchSettings object itself.
+ */
+ public PatchSettings withPatchMode(PatchModeTypes patchMode) {
+ this.patchMode = patchMode;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateEndpointConnectionInner.java
index 993acf042f404..26906cb0a4f50 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.
*/
@@ -24,11 +20,15 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private PrivateEndpointConnectionProperties properties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of PrivateEndpointConnectionInner class. */
+ public PrivateEndpointConnectionInner() {
+ }
+
/**
* Get the properties property: Resource properties.
*
@@ -50,7 +50,7 @@ public PrivateEndpointConnectionInner withProperties(PrivateEndpointConnectionPr
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkResourceInner.java
index b6bd5325e6e10..de347adac351e 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.
*/
@@ -24,11 +20,15 @@ public final class PrivateLinkResourceInner extends ProxyResource {
private PrivateLinkResourceProperties properties;
/*
- * The system meta data relating to this resource.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
+ /** Creates an instance of PrivateLinkResourceInner class. */
+ public PrivateLinkResourceInner() {
+ }
+
/**
* Get the properties property: Resource properties.
*
@@ -50,7 +50,7 @@ public PrivateLinkResourceInner withProperties(PrivateLinkResourceProperties pro
}
/**
- * Get the systemData property: The system meta data relating to this resource.
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
index 7f8e4adf6f7b7..901f52dbb5902 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/PrivateLinkScopeValidationDetailsInner.java
@@ -5,18 +5,14 @@
package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.models.ConnectionDetail;
import com.azure.resourcemanager.hybridcompute.models.PublicNetworkAccessType;
-import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The PrivateLinkScopeValidationDetails model. */
@Fluent
public final class PrivateLinkScopeValidationDetailsInner {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(PrivateLinkScopeValidationDetailsInner.class);
-
/*
* Azure resource Id
*/
@@ -24,8 +20,8 @@ public final class PrivateLinkScopeValidationDetailsInner {
private String id;
/*
- * Indicates whether machines associated with the private link scope can
- * also use public Azure Arc service endpoints.
+ * Indicates whether machines associated with the private link scope can also use public Azure Arc service
+ * endpoints.
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccessType publicNetworkAccess;
@@ -36,6 +32,10 @@ public final class PrivateLinkScopeValidationDetailsInner {
@JsonProperty(value = "connectionDetails")
private List connectionDetails;
+ /** Creates an instance of PrivateLinkScopeValidationDetailsInner class. */
+ public PrivateLinkScopeValidationDetailsInner() {
+ }
+
/**
* Get the id property: Azure resource Id.
*
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java
new file mode 100644
index 0000000000000..f02e8074fa5b2
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasClientImpl.java
@@ -0,0 +1,447 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValueListResult;
+import reactor.core.publisher.Mono;
+
+/** An instance of this class provides access to all the operations defined in ExtensionMetadatasClient. */
+public final class ExtensionMetadatasClientImpl implements ExtensionMetadatasClient {
+ /** The proxy service used to perform REST calls. */
+ private final ExtensionMetadatasService service;
+
+ /** The service client containing this operation class. */
+ private final HybridComputeManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ExtensionMetadatasClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ExtensionMetadatasClientImpl(HybridComputeManagementClientImpl client) {
+ this.service =
+ RestProxy.create(ExtensionMetadatasService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for HybridComputeManagementClientExtensionMetadatas to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{$host}")
+ @ServiceInterface(name = "HybridComputeManagem")
+ private interface ExtensionMetadatasService {
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers"
+ + "/{publisher}/extensionTypes/{extensionType}/versions/{version}")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @PathParam("publisher") String publisher,
+ @PathParam("extensionType") String extensionType,
+ @PathParam("version") String version,
+ @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({"Content-Type: application/json"})
+ @Get(
+ "/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers"
+ + "/{publisher}/extensionTypes/{extensionType}/versions")
+ @ExpectedResponses({200})
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(
+ @HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location,
+ @PathParam("publisher") String publisher,
+ @PathParam("extensionType") String extensionType,
+ @HeaderParam("Accept") String accept,
+ Context context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String location, String publisher, String extensionType, String version) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ version,
+ accept,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link Response}
+ * on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(
+ String location, String publisher, String extensionType, String version, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .get(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ version,
+ accept,
+ context);
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(
+ String location, String publisher, String extensionType, String version) {
+ return getWithResponseAsync(location, publisher, extensionType, version)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(
+ String location, String publisher, String extensionType, String version, Context context) {
+ return getWithResponseAsync(location, publisher, extensionType, version, context).block();
+ }
+
+ /**
+ * Gets an Extension Metadata based on location, publisher, extensionType and version.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param version The version of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an Extension Metadata based on location, publisher, extensionType and version.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ExtensionValueInner get(String location, String publisher, String extensionType, String version) {
+ return getWithResponse(location, publisher, extensionType, version, Context.NONE).getValue();
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String location, String publisher, String extensionType) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context ->
+ service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ accept,
+ context))
+ .>map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync(
+ String location, String publisher, String extensionType, Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono
+ .error(
+ new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ return Mono.error(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ return Mono.error(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service
+ .list(
+ this.client.getEndpoint(),
+ this.client.getApiVersion(),
+ this.client.getSubscriptionId(),
+ location,
+ publisher,
+ extensionType,
+ accept,
+ context)
+ .map(
+ res ->
+ new PagedResponseBase<>(
+ res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(String location, String publisher, String extensionType) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync(
+ String location, String publisher, String extensionType, Context context) {
+ return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType, context));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(String location, String publisher, String extensionType) {
+ return new PagedIterable<>(listAsync(location, publisher, extensionType));
+ }
+
+ /**
+ * Gets all Extension versions based on location, publisher, extensionType.
+ *
+ * @param location The location of the Extension being received.
+ * @param publisher The publisher of the Extension being received.
+ * @param extensionType The extensionType of the Extension being received.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return all Extension versions based on location, publisher, extensionType as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(
+ String location, String publisher, String extensionType, Context context) {
+ return new PagedIterable<>(listAsync(location, publisher, extensionType, context));
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java
new file mode 100644
index 0000000000000..bbcaeb86922d2
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadatasImpl.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionMetadatas;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValue;
+
+public final class ExtensionMetadatasImpl implements ExtensionMetadatas {
+ private static final ClientLogger LOGGER = new ClientLogger(ExtensionMetadatasImpl.class);
+
+ private final ExtensionMetadatasClient innerClient;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ public ExtensionMetadatasImpl(
+ ExtensionMetadatasClient innerClient,
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(
+ String location, String publisher, String extensionType, String version, Context context) {
+ Response inner =
+ this.serviceClient().getWithResponse(location, publisher, extensionType, version, context);
+ if (inner != null) {
+ return new SimpleResponse<>(
+ inner.getRequest(),
+ inner.getStatusCode(),
+ inner.getHeaders(),
+ new ExtensionValueImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public ExtensionValue get(String location, String publisher, String extensionType, String version) {
+ ExtensionValueInner inner = this.serviceClient().get(location, publisher, extensionType, version);
+ if (inner != null) {
+ return new ExtensionValueImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public PagedIterable list(String location, String publisher, String extensionType) {
+ PagedIterable inner = this.serviceClient().list(location, publisher, extensionType);
+ return Utils.mapPage(inner, inner1 -> new ExtensionValueImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(
+ String location, String publisher, String extensionType, Context context) {
+ PagedIterable inner =
+ this.serviceClient().list(location, publisher, extensionType, context);
+ return Utils.mapPage(inner, inner1 -> new ExtensionValueImpl(inner1, this.manager()));
+ }
+
+ private ExtensionMetadatasClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java
new file mode 100644
index 0000000000000..a39bbab312c23
--- /dev/null
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionValueImpl.java
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.hybridcompute.implementation;
+
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueInner;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValue;
+
+public final class ExtensionValueImpl implements ExtensionValue {
+ private ExtensionValueInner innerObject;
+
+ private final com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager;
+
+ ExtensionValueImpl(
+ ExtensionValueInner innerObject, com.azure.resourcemanager.hybridcompute.HybridComputeManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public String version() {
+ return this.innerModel().version();
+ }
+
+ public String extensionType() {
+ return this.innerModel().extensionType();
+ }
+
+ public String publisher() {
+ return this.innerModel().publisher();
+ }
+
+ public ExtensionValueInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.hybridcompute.HybridComputeManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
index b082d06e50bdd..b38ce59ecf9f9 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientBuilder.java
@@ -7,7 +7,6 @@
import com.azure.core.annotation.ServiceClientBuilder;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
-import com.azure.core.http.policy.CookiePolicy;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.AzureEnvironment;
@@ -67,34 +66,34 @@ public HybridComputeManagementClientBuilder environment(AzureEnvironment environ
}
/*
- * The default poll interval for long-running operation
+ * The HTTP pipeline to send requests through
*/
- private Duration defaultPollInterval;
+ private HttpPipeline pipeline;
/**
- * Sets The default poll interval for long-running operation.
+ * Sets The HTTP pipeline to send requests through.
*
- * @param defaultPollInterval the defaultPollInterval value.
+ * @param pipeline the pipeline value.
* @return the HybridComputeManagementClientBuilder.
*/
- public HybridComputeManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval = defaultPollInterval;
+ public HybridComputeManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
return this;
}
/*
- * The HTTP pipeline to send requests through
+ * The default poll interval for long-running operation
*/
- private HttpPipeline pipeline;
+ private Duration defaultPollInterval;
/**
- * Sets The HTTP pipeline to send requests through.
+ * Sets The default poll interval for long-running operation.
*
- * @param pipeline the pipeline value.
+ * @param defaultPollInterval the defaultPollInterval value.
* @return the HybridComputeManagementClientBuilder.
*/
- public HybridComputeManagementClientBuilder pipeline(HttpPipeline pipeline) {
- this.pipeline = pipeline;
+ public HybridComputeManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -120,27 +119,26 @@ public HybridComputeManagementClientBuilder serializerAdapter(SerializerAdapter
* @return an instance of HybridComputeManagementClientImpl.
*/
public HybridComputeManagementClientImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (pipeline == null) {
- this.pipeline =
- new HttpPipelineBuilder()
- .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy())
- .build();
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
HybridComputeManagementClientImpl client =
new HybridComputeManagementClientImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
index 0f4f2680c64c4..d72e69841ce5c 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/HybridComputeManagementClientImpl.java
@@ -15,12 +15,14 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.core.util.polling.AsyncPollResponse;
import com.azure.core.util.polling.LongRunningOperationStatus;
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadatasClient;
import com.azure.resourcemanager.hybridcompute.fluent.HybridComputeManagementClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachineExtensionsClient;
import com.azure.resourcemanager.hybridcompute.fluent.MachinesClient;
@@ -28,21 +30,19 @@
import com.azure.resourcemanager.hybridcompute.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.hybridcompute.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.hybridcompute.fluent.PrivateLinkScopesClient;
+import com.azure.resourcemanager.hybridcompute.fluent.ResourceProvidersClient;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.Duration;
-import java.util.Map;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
/** Initializes a new instance of the HybridComputeManagementClientImpl type. */
@ServiceClient(builder = HybridComputeManagementClientBuilder.class)
public final class HybridComputeManagementClientImpl implements HybridComputeManagementClient {
- private final ClientLogger logger = new ClientLogger(HybridComputeManagementClientImpl.class);
-
/** The ID of the target subscription. */
private final String subscriptionId;
@@ -139,6 +139,30 @@ public MachineExtensionsClient getMachineExtensions() {
return this.machineExtensions;
}
+ /** The ResourceProvidersClient object to access its operations. */
+ private final ResourceProvidersClient resourceProviders;
+
+ /**
+ * Gets the ResourceProvidersClient object to access its operations.
+ *
+ * @return the ResourceProvidersClient object.
+ */
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
+ }
+
+ /** The ExtensionMetadatasClient object to access its operations. */
+ private final ExtensionMetadatasClient extensionMetadatas;
+
+ /**
+ * Gets the ExtensionMetadatasClient object to access its operations.
+ *
+ * @return the ExtensionMetadatasClient object.
+ */
+ public ExtensionMetadatasClient getExtensionMetadatas() {
+ return this.extensionMetadatas;
+ }
+
/** The OperationsClient object to access its operations. */
private final OperationsClient operations;
@@ -209,9 +233,11 @@ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2021-03-25-preview";
+ this.apiVersion = "2022-08-11-preview";
this.machines = new MachinesClientImpl(this);
this.machineExtensions = new MachineExtensionsClientImpl(this);
+ this.resourceProviders = new ResourceProvidersClientImpl(this);
+ this.extensionMetadatas = new ExtensionMetadatasClientImpl(this);
this.operations = new OperationsClientImpl(this);
this.privateLinkScopes = new PrivateLinkScopesClientImpl(this);
this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
@@ -234,10 +260,7 @@ public Context getContext() {
* @return the merged context.
*/
public Context mergeContext(Context context) {
- for (Map.Entry