diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
index 749eabac223b..aeffc9042134 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/CHANGELOG.md
@@ -1,408 +1,14 @@
# Release History
-## 1.1.0-beta.3 (2026-07-07)
-
-- Azure Resource Manager HybridCompute client library for Java. This package contains Microsoft Azure SDK for HybridCompute Management SDK. Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management. Package api-version 2025-09-16-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
-
-### Breaking Changes
-
-#### `models.MachineRunCommandsListResult` was removed
-
-#### `models.ExtensionPublisherListResult` was removed
-
-#### `models.GatewaysListResult` was removed
-
-#### `models.ExtensionValueListResult` was removed
-
-#### `models.PrivateLinkScopesResource` was removed
-
-#### `models.HybridComputePrivateLinkScopeListResult` was removed
-
-#### `models.PrivateLinkResourceListResult` was removed
-
-#### `models.MachineRunCommandUpdate` was removed
-
-#### `models.ExtensionTypeListResult` was removed
-
-#### `models.MachineExtensionsListResult` was removed
-
-#### `models.LicenseProfilesListResult` was removed
-
-#### `models.PrivateEndpointConnectionListResult` was removed
-
-#### `models.MachineListResult` was removed
-
-#### `models.NetworkSecurityPerimeterConfigurationListResult` was removed
-
-#### `models.LicensesListResult` was removed
-
-#### `models.OperationListResult` was removed
-
-#### `models.ExtensionValueListResultV2` was removed
-
-#### `models.OperationValueDisplay` was modified
-
-* `OperationValueDisplay()` was changed to private access
-* `validate()` was removed
-
-#### `models.AgentUpgrade` was modified
-
-* `withCorrelationId(java.util.UUID)` was removed
-* `java.util.UUID correlationId()` -> `java.lang.String correlationId()`
-* `validate()` was removed
-
-#### `models.PrivateEndpointConnectionProperties` was modified
-
-* `validate()` was removed
-
-#### `models.AgentConfiguration` was modified
-
-* `AgentConfiguration()` was changed to private access
-* `validate()` was removed
-
-#### `models.MachineExtensionUpgrade` was modified
-
-* `validate()` was removed
-
-#### `models.MachineExtensionInstanceView` was modified
-
-* `validate()` was removed
-
-#### `models.MachineExtensionProperties` was modified
-
-* `validate()` was removed
-
-#### `models.Identity` was modified
-
-* `validate()` was removed
-
-#### `models.OSProfile` was modified
-
-* `validate()` was removed
-
-#### `models.ServiceStatuses` was modified
-
-* `validate()` was removed
-
-#### `models.StorageProfile` was modified
-
-* `StorageProfile()` was changed to private access
-* `withDisks(java.util.List)` was removed
-* `validate()` was removed
-
-#### `models.ProvisioningIssue` was modified
-
-* `ProvisioningIssue()` was changed to private access
-* `validate()` was removed
-
-#### `models.LicenseProfileUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.LocationData` was modified
-
-* `validate()` was removed
-
-#### `models.MachineProperties` was modified
-
-* `java.util.UUID vmId()` -> `java.lang.String vmId()`
-* `java.util.UUID vmUuid()` -> `java.lang.String vmUuid()`
-
-#### `models.PatchSettingsStatus` was modified
-
-* `PatchSettingsStatus()` was changed to private access
-* `withHotpatchEnablementStatus(models.HotpatchEnablementStatus)` was removed
-* `validate()` was removed
-
-#### `models.AccessRule` was modified
-
-* `AccessRule()` was changed to private access
-* `validate()` was removed
-
-#### `models.ProductFeature` was modified
-
-* `validate()` was removed
-
-#### `models.Subnet` was modified
-
-* `Subnet()` was changed to private access
-* `withAddressPrefix(java.lang.String)` was removed
-* `validate()` was removed
-
-#### `models.EsuKey` was modified
-
-* `EsuKey()` was changed to private access
-* `withSku(java.lang.String)` was removed
-* `validate()` was removed
-* `withLicenseStatus(java.lang.Integer)` was removed
-
-#### `models.MachineExtensionUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.PrivateLinkServiceConnectionStateProperty` was modified
-
-* `validate()` was removed
-
-#### `models.LicenseProfileStorageModelEsuProperties` was modified
-
-* `validate()` was removed
-
-#### `models.GatewayUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.LinuxParameters` was modified
-
-* `validate()` was removed
-
-#### `models.PrivateEndpointProperty` was modified
-
-* `validate()` was removed
-
-#### `models.ExtensionTargetProperties` was modified
-
-* `validate()` was removed
-
-#### `models.PublicNetworkAccessType` was modified
-
-* `SECURED_BY_PERIMETER` was removed
-
-#### `models.Processor` was modified
-
-* `Processor()` was changed to private access
-* `validate()` was removed
-
-#### `models.HybridComputePrivateLinkScopeProperties` was modified
-
-* `validate()` was removed
-
-#### `models.ConfigurationExtension` was modified
-
-* `ConfigurationExtension()` was changed to private access
-* `validate()` was removed
-
-#### `models.NetworkInterface` was modified
-
-* `NetworkInterface()` was changed to private access
-* `withMacAddress(java.lang.String)` was removed
-* `withId(java.lang.String)` was removed
-* `validate()` was removed
-* `withName(java.lang.String)` was removed
-* `withIpAddresses(java.util.List)` was removed
-
-#### `models.ResourceAssociation` was modified
-
-* `ResourceAssociation()` was changed to private access
-* `validate()` was removed
-
-#### `models.VolumeLicenseDetails` was modified
-
-* `validate()` was removed
-
-#### `models.IpAddress` was modified
-
-* `IpAddress()` was changed to private access
-* `withAddress(java.lang.String)` was removed
-* `validate()` was removed
-* `withIpAddressVersion(java.lang.String)` was removed
-
-#### `models.MachineUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.LicenseProfileArmEsuPropertiesWithoutAssignedLicense` was modified
-
-* `validate()` was removed
-
-#### `models.CloudMetadata` was modified
-
-* `validate()` was removed
-
-#### `models.NetworkSecurityPerimeterProfile` was modified
-
-* `NetworkSecurityPerimeterProfile()` was changed to private access
-* `validate()` was removed
-
-#### `models.Disk` was modified
-
-* `Disk()` was changed to private access
-* `withName(java.lang.String)` was removed
-* `withDiskType(java.lang.String)` was removed
-* `withId(java.lang.String)` was removed
-* `withMaxSizeInBytes(java.lang.Long)` was removed
-* `withGeneratedId(java.lang.String)` was removed
-* `validate()` was removed
-* `withUsedSpaceInBytes(java.lang.Long)` was removed
-* `withPath(java.lang.String)` was removed
-
-#### `models.ConnectionDetail` was modified
-
-* `ConnectionDetail()` was changed to private access
-* `validate()` was removed
-
-#### `models.PrivateEndpointConnectionDataModel` was modified
-
-* `PrivateEndpointConnectionDataModel()` was changed to private access
-* `withProperties(models.PrivateEndpointConnectionProperties)` was removed
-* `validate()` was removed
-
-#### `models.ResourceUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.OSProfileLinuxConfiguration` was modified
-
-* `validate()` was removed
-
-#### `models.TagsResource` was modified
-
-* `validate()` was removed
-
-#### `models.MachineInstallPatchesParameters` was modified
-
-* `validate()` was removed
-
-#### `models.ExtensionsResourceStatus` was modified
-
-* `ExtensionsResourceStatus()` was changed to private access
-* `validate()` was removed
-* `withCode(java.lang.String)` was removed
-* `withTime(java.time.OffsetDateTime)` was removed
-* `withDisplayStatus(java.lang.String)` was removed
-* `withLevel(models.ExtensionsStatusLevelTypes)` was removed
-* `withMessage(java.lang.String)` was removed
-
-#### `models.ServiceStatus` was modified
-
-* `validate()` was removed
-
-#### `models.LicenseUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.MachineRunCommandInstanceView` was modified
-
-* `MachineRunCommandInstanceView()` was changed to private access
-* `withEndTime(java.time.OffsetDateTime)` was removed
-* `validate()` was removed
-* `withError(java.lang.String)` was removed
-* `withExecutionState(models.ExecutionState)` was removed
-* `withExecutionMessage(java.lang.String)` was removed
-* `withStartTime(java.time.OffsetDateTime)` was removed
-* `withOutput(java.lang.String)` was removed
-* `withExitCode(java.lang.Integer)` was removed
-* `withStatuses(java.util.List)` was removed
-
-#### `models.HardwareProfile` was modified
-
-* `HardwareProfile()` was changed to private access
-* `validate()` was removed
-
-#### `models.RunCommandManagedIdentity` was modified
-
-* `validate()` was removed
-
-#### `models.FirmwareProfile` was modified
-
-* `FirmwareProfile()` was changed to private access
-* `validate()` was removed
-
-#### `models.Machine` was modified
-
-* `java.util.UUID vmUuid()` -> `java.lang.String vmUuid()`
-* `java.util.UUID vmId()` -> `java.lang.String vmId()`
-
-#### `models.OSProfileWindowsConfiguration` was modified
-
-* `validate()` was removed
-
-#### `models.AvailablePatchCountByClassification` was modified
-
-* `AvailablePatchCountByClassification()` was changed to private access
-* `validate()` was removed
-
-#### `models.LicenseDetails` was modified
-
-* `validate()` was removed
-
-#### `models.ProductFeatureUpdate` was modified
-
-* `validate()` was removed
-
-#### `models.MachineRunCommandScriptSource` was modified
-
-* `validate()` was removed
-
-#### `models.RunCommandInputParameter` was modified
-
-* `validate()` was removed
-
-#### `models.MachineExtensionInstanceViewStatus` was modified
-
-* `validate()` was removed
-
-#### `models.PrivateLinkResourceProperties` was modified
-
-* `PrivateLinkResourceProperties()` was changed to private access
-* `validate()` was removed
-
-#### `models.NetworkSecurityPerimeter` was modified
-
-* `NetworkSecurityPerimeter()` was changed to private access
-* `validate()` was removed
-
-#### `models.WindowsParameters` was modified
-
-* `validate()` was removed
-
-#### `models.MachineAssessPatchesResult` was modified
-
-* `java.util.UUID assessmentActivityId()` -> `java.lang.String assessmentActivityId()`
+## 1.1.0-beta.3 (Unreleased)
### Features Added
-* `models.Machine$Update` was added
-
-* `models.Machine$DefinitionStages` was added
-
-* `models.ServiceExtensionPublicNetworkAccess` was added
-
-* `models.ServiceExtension` was added
-
-* `models.Machine$Definition` was added
-
-* `models.Machine$UpdateStages` was added
-
-#### `models.AgentUpgrade` was modified
-
-* `withCorrelationId(java.lang.String)` was added
-
-#### `models.NetworkSecurityPerimeterConfiguration` was modified
-
-* `systemData()` was added
-
-#### `models.Machines` was modified
-
-* `define(java.lang.String)` was added
-* `getById(java.lang.String)` was added
-* `deleteById(java.lang.String)` was added
-* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
-* `getByIdWithResponse(java.lang.String,models.InstanceViewTypes,com.azure.core.util.Context)` was added
-
-#### `models.HybridComputePrivateLinkScopeProperties` was modified
-
-* `serviceExtensions()` was added
-* `withServiceExtensions(java.util.List)` was added
+### Breaking Changes
-#### `models.Machine` was modified
+### Bugs Fixed
-* `refresh(com.azure.core.util.Context)` was added
-* `update()` was added
-* `resourceGroupName()` was added
-* `regionName()` was added
-* `region()` was added
-* `refresh()` was added
+### Other Changes
## 1.1.0-beta.2 (2025-06-16)
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/README.md
index 1546c4d6baa4..4d362182dfd0 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. Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management. Package api-version 2025-09-16-preview. 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-2025-02-19. 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.resourcemanager
azure-resourcemanager-hybridcompute
- 1.1.0-beta.3
+ 1.1.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
index 9f8b52493481..24f8e10e8450 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/SAMPLE.md
@@ -64,13 +64,11 @@
## Machines
- [AssessPatches](#machines_assesspatches)
-- [CreateOrUpdate](#machines_createorupdate)
- [Delete](#machines_delete)
- [GetByResourceGroup](#machines_getbyresourcegroup)
- [InstallPatches](#machines_installpatches)
- [List](#machines_list)
- [ListByResourceGroup](#machines_listbyresourcegroup)
-- [Update](#machines_update)
## NetworkProfile
@@ -123,21 +121,22 @@
```java
/**
- * Samples for ExtensionMetadata Get.
+ * Samples for Machines AssessPatches.
*/
-public final class ExtensionMetadataGetSamples {
+public final class MachinesAssessPatchesSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionMetadata_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machine_AssessPatches.json
*/
/**
- * Sample code: GET an extensions metadata.
+ * Sample code: Assess patch state of a machine.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void
+ assessPatchStateOfAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().assessPatches("myResourceGroupName", "myMachineName", com.azure.core.util.Context.NONE);
}
}
```
@@ -146,19 +145,22 @@ public final class ExtensionMetadataGetSamples {
```java
/**
- * Samples for ExtensionMetadata List.
+ * Samples for ExtensionMetadataV2 List.
*/
-public final class ExtensionMetadataListSamples {
+public final class ExtensionMetadataV2ListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionMetadata_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionMetadataV2_List.json
*/
/**
- * Sample code: GET a list of extensions.
+ * Sample code: GET a list of extension metadata.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETAListOfExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.extensionMetadatas()
+ public static void
+ gETAListOfExtensionMetadata(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionMetadataV2s()
.list("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", com.azure.core.util.Context.NONE);
}
}
@@ -172,7 +174,9 @@ public final class ExtensionMetadataListSamples {
*/
public final class ExtensionMetadataV2GetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionMetadataV2_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionMetadataV2_Get.json
*/
/**
* Sample code: GET an extension metadata.
@@ -191,21 +195,21 @@ public final class ExtensionMetadataV2GetSamples {
```java
/**
- * Samples for ExtensionMetadataV2 List.
+ * Samples for LicenseProfiles Delete.
*/
-public final class ExtensionMetadataV2ListSamples {
+public final class LicenseProfilesDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionMetadataV2_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * licenseProfile/LicenseProfile_Delete.json
*/
/**
- * Sample code: GET a list of extension metadata.
+ * Sample code: Delete a License Profile.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- gETAListOfExtensionMetadata(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.extensionMetadataV2s()
- .list("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", com.azure.core.util.Context.NONE);
+ public static void deleteALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenseProfiles().delete("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
}
}
```
@@ -214,20 +218,21 @@ public final class ExtensionMetadataV2ListSamples {
```java
/**
- * Samples for ExtensionPublisher List.
+ * Samples for Licenses Delete.
*/
-public final class ExtensionPublisherListSamples {
+public final class LicensesDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionPublisher_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_Delete.json
*/
/**
- * Sample code: GET a list of extension publishers.
+ * Sample code: Delete a License.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- gETAListOfExtensionPublishers(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.extensionPublishers().list("EastUS", com.azure.core.util.Context.NONE);
+ public static void deleteALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenses().delete("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE);
}
}
```
@@ -236,19 +241,22 @@ public final class ExtensionPublisherListSamples {
```java
/**
- * Samples for ExtensionType List.
+ * Samples for MachineExtensions List.
*/
-public final class ExtensionTypeListSamples {
+public final class MachineExtensionsListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/ExtensionType_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_List.json
*/
/**
- * Sample code: GET a list of extension types.
+ * Sample code: GET all Machine Extensions - List.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETAListOfExtensionTypes(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.extensionTypes().list("EastUS", "microsoft.azure.monitor", com.azure.core.util.Context.NONE);
+ public static void
+ gETAllMachineExtensionsList(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().list("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -256,29 +264,23 @@ public final class ExtensionTypeListSamples {
### Gateways_CreateOrUpdate
```java
-import com.azure.resourcemanager.hybridcompute.models.GatewayType;
-import java.util.Arrays;
-
/**
- * Samples for Gateways CreateOrUpdate.
+ * Samples for ExtensionMetadata List.
*/
-public final class GatewaysCreateOrUpdateSamples {
+public final class ExtensionMetadataListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionMetadata_List.json
*/
/**
- * Sample code: Create or Update a Gateway.
+ * Sample code: GET a list of extensions.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void createOrUpdateAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.gateways()
- .define("{gatewayName}")
- .withRegion("eastus2euap")
- .withExistingResourceGroup("myResourceGroup")
- .withGatewayType(GatewayType.PUBLIC)
- .withAllowedFeatures(Arrays.asList("*"))
- .create();
+ public static void gETAListOfExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionMetadatas()
+ .list("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", com.azure.core.util.Context.NONE);
}
}
```
@@ -286,20 +288,49 @@ public final class GatewaysCreateOrUpdateSamples {
### Gateways_Delete
```java
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for Gateways Delete.
+ * Samples for MachineExtensions CreateOrUpdate.
*/
-public final class GatewaysDeleteSamples {
+public final class MachineExtensionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_CreateOrUpdate.json
*/
/**
- * Sample code: Delete a Gateway.
+ * Sample code: Create or Update a Machine Extension.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void deleteAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.gateways().delete("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE);
+ public static void
+ createOrUpdateAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions()
+ .define("CustomScriptExtension")
+ .withRegion("eastus2euap")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withProperties(
+ new MachineExtensionProperties().withPublisher("Microsoft.Compute")
+ .withType("CustomScriptExtension")
+ .withTypeHandlerVersion("1.10")
+ .withSettings(mapOf("commandToExecute",
+ "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"")))
+ .create();
+ }
+
+ // Use "Map.of" if available
+ @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;
}
}
```
@@ -308,20 +339,22 @@ public final class GatewaysDeleteSamples {
```java
/**
- * Samples for Gateways GetByResourceGroup.
+ * Samples for Machines List.
*/
-public final class GatewaysGetByResourceGroupSamples {
+public final class MachinesListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machines_ListBySubscription.json
*/
/**
- * Sample code: Get Gateway.
+ * Sample code: List Machines by resource group.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.gateways()
- .getByResourceGroupWithResponse("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE);
+ public static void
+ listMachinesByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -330,20 +363,22 @@ public final class GatewaysGetByResourceGroupSamples {
```java
/**
- * Samples for Gateways List.
+ * Samples for PrivateLinkScopes Delete.
*/
-public final class GatewaysListSamples {
+public final class PrivateLinkScopesDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_Delete.json
*/
/**
- * Sample code: List Gateways by Subscription.
+ * Sample code: PrivateLinkScopesDelete.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- listGatewaysBySubscription(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.gateways().list(com.azure.core.util.Context.NONE);
+ public static void privateLinkScopesDelete(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes()
+ .delete("my-resource-group", "my-privatelinkscope", com.azure.core.util.Context.NONE);
}
}
```
@@ -351,21 +386,39 @@ public final class GatewaysListSamples {
### Gateways_ListByResourceGroup
```java
+import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
+import com.azure.resourcemanager.hybridcompute.models.LicenseDetails;
+import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
+import com.azure.resourcemanager.hybridcompute.models.LicenseState;
+import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
+import com.azure.resourcemanager.hybridcompute.models.LicenseType;
+
/**
- * Samples for Gateways ListByResourceGroup.
+ * Samples for Licenses CreateOrUpdate.
*/
-public final class GatewaysListByResourceGroupSamples {
+public final class LicensesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_CreateOrUpdate.json
*/
/**
- * Sample code: List Gateways by Resource Group.
+ * Sample code: Create or Update a License.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- listGatewaysByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.gateways().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
+ public static void createOrUpdateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenses()
+ .define("{licenseName}")
+ .withRegion("eastus2euap")
+ .withExistingResourceGroup("myResourceGroup")
+ .withLicenseType(LicenseType.ESU)
+ .withLicenseDetails(new LicenseDetails().withState(LicenseState.ACTIVATED)
+ .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
+ .withEdition(LicenseEdition.DATACENTER)
+ .withType(LicenseCoreType.P_CORE)
+ .withProcessors(6))
+ .create();
}
}
```
@@ -373,26 +426,22 @@ public final class GatewaysListByResourceGroupSamples {
### Gateways_Update
```java
-import com.azure.resourcemanager.hybridcompute.models.Gateway;
-import java.util.Arrays;
-
/**
- * Samples for Gateways Update.
+ * Samples for NetworkProfile Get.
*/
-public final class GatewaysUpdateSamples {
+public final class NetworkProfileGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/gateway/Gateway_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * NetworkProfile_Get.json
*/
/**
- * Sample code: Update a Gateway.
+ * Sample code: GET Network Profile.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void updateAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- Gateway resource = manager.gateways()
- .getByResourceGroupWithResponse("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withAllowedFeatures(Arrays.asList("*")).apply();
+ public static void gETNetworkProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.networkProfiles().getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
}
}
```
@@ -400,36 +449,24 @@ public final class GatewaysUpdateSamples {
### LicenseProfiles_CreateOrUpdate
```java
-import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
-import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatus;
-import com.azure.resourcemanager.hybridcompute.models.ProductFeature;
-import java.util.Arrays;
-
/**
- * Samples for LicenseProfiles CreateOrUpdate.
+ * Samples for PrivateLinkScopes GetByResourceGroup.
*/
-public final class LicenseProfilesCreateOrUpdateSamples {
+public final class PrivateLinkScopesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/licenseProfile/LicenseProfile_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_Get.json
*/
/**
- * Sample code: Create or Update a License Profile.
+ * Sample code: PrivateLinkScopeGet.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- createOrUpdateALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenseProfiles()
- .define()
- .withRegion("eastus2euap")
- .withExistingMachine("myResourceGroup", "myMachine")
- .withSoftwareAssuranceCustomer(true)
- .withAssignedLicense("{LicenseResourceId}")
- .withSubscriptionStatus(LicenseProfileSubscriptionStatus.ENABLED)
- .withProductType(LicenseProfileProductType.WINDOWS_SERVER)
- .withProductFeatures(Arrays.asList(new ProductFeature().withName("Hotpatch")
- .withSubscriptionStatus(LicenseProfileSubscriptionStatus.ENABLED)))
- .create();
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -437,20 +474,32 @@ public final class LicenseProfilesCreateOrUpdateSamples {
### LicenseProfiles_Delete
```java
+import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
+import com.azure.resourcemanager.hybridcompute.models.PrivateLinkServiceConnectionStateProperty;
+
/**
- * Samples for LicenseProfiles Delete.
+ * Samples for PrivateEndpointConnections CreateOrUpdate.
*/
-public final class LicenseProfilesDeleteSamples {
+public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/licenseProfile/LicenseProfile_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateEndpoint/PrivateEndpointConnection_Update.json
*/
/**
- * Sample code: Delete a License Profile.
+ * Sample code: Approve or reject a private endpoint connection with a given name.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void deleteALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenseProfiles().delete("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
+ 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();
}
}
```
@@ -458,20 +507,40 @@ public final class LicenseProfilesDeleteSamples {
### LicenseProfiles_Get
```java
+import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandScriptSource;
+import com.azure.resourcemanager.hybridcompute.models.RunCommandInputParameter;
+import java.util.Arrays;
+
/**
- * Samples for LicenseProfiles Get.
+ * Samples for MachineRunCommands CreateOrUpdate.
*/
-public final class LicenseProfilesGetSamples {
+public final class MachineRunCommandsCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/licenseProfile/LicenseProfile_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * runCommand/RunCommands_CreateOrUpdate.json
*/
/**
- * Sample code: Get License Profile.
+ * Sample code: Create or Update a Run Command.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getLicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenseProfiles().getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
+ public static void createOrUpdateARunCommand(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineRunCommands()
+ .define("myRunCommand")
+ .withRegion("eastus2")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withSource(new MachineRunCommandScriptSource().withScript("Write-Host Hello World!"))
+ .withParameters(Arrays.asList(new RunCommandInputParameter().withName("param1").withValue("value1"),
+ new RunCommandInputParameter().withName("param2").withValue("value2")))
+ .withAsyncExecution(false)
+ .withRunAsUser("user1")
+ .withRunAsPassword("")
+ .withTimeoutInSeconds(3600)
+ .withOutputBlobUri(
+ "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt")
+ .withErrorBlobUri("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt")
+ .create();
}
}
```
@@ -484,7 +553,9 @@ public final class LicenseProfilesGetSamples {
*/
public final class LicenseProfilesListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/licenseProfile/LicenseProfile_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * licenseProfile/LicenseProfile_List.json
*/
/**
* Sample code: List all License Profiles.
@@ -500,36 +571,22 @@ public final class LicenseProfilesListSamples {
### LicenseProfiles_Update
```java
-import com.azure.resourcemanager.hybridcompute.models.LicenseProfile;
-import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
-import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatusUpdate;
-import com.azure.resourcemanager.hybridcompute.models.ProductFeatureUpdate;
-import java.util.Arrays;
-
/**
- * Samples for LicenseProfiles Update.
+ * Samples for MachineExtensions Delete.
*/
-public final class LicenseProfilesUpdateSamples {
+public final class MachineExtensionsDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/licenseProfile/LicenseProfile_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_Delete.json
*/
/**
- * Sample code: Update a License Profile.
+ * Sample code: Delete a Machine Extension.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void updateALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- LicenseProfile resource = manager.licenseProfiles()
- .getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withSoftwareAssuranceCustomer(true)
- .withAssignedLicense("{LicenseResourceId}")
- .withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate.ENABLE)
- .withProductType(LicenseProfileProductType.WINDOWS_SERVER)
- .withProductFeaturesForUpdate(Arrays.asList(new ProductFeatureUpdate().withName("Hotpatch")
- .withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate.ENABLE)))
- .apply();
+ public static void deleteAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions().delete("myResourceGroup", "myMachine", "MMA", com.azure.core.util.Context.NONE);
}
}
```
@@ -537,37 +594,24 @@ public final class LicenseProfilesUpdateSamples {
### Licenses_CreateOrUpdate
```java
-import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
-import com.azure.resourcemanager.hybridcompute.models.LicenseDetails;
-import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
-import com.azure.resourcemanager.hybridcompute.models.LicenseState;
-import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
-import com.azure.resourcemanager.hybridcompute.models.LicenseType;
-
/**
- * Samples for Licenses CreateOrUpdate.
+ * Samples for SettingsOperation Get.
*/
-public final class LicensesCreateOrUpdateSamples {
+public final class SettingsOperationGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/settings
+ * /SettingsGet.json
*/
/**
- * Sample code: Create or Update a License.
+ * Sample code: NetworkConfigurationsGet.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void createOrUpdateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenses()
- .define("{licenseName}")
- .withRegion("eastus2euap")
- .withExistingResourceGroup("myResourceGroup")
- .withLicenseType(LicenseType.ESU)
- .withLicenseDetails(new LicenseDetails().withState(LicenseState.ACTIVATED)
- .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
- .withEdition(LicenseEdition.DATACENTER)
- .withType(LicenseCoreType.P_CORE)
- .withProcessors(6))
- .create();
+ public static void networkConfigurationsGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.settingsOperations()
+ .getWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -575,20 +619,38 @@ public final class LicensesCreateOrUpdateSamples {
### Licenses_Delete
```java
+import com.azure.resourcemanager.hybridcompute.models.LicenseProfile;
+import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
+import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatusUpdate;
+import com.azure.resourcemanager.hybridcompute.models.ProductFeatureUpdate;
+import java.util.Arrays;
+
/**
- * Samples for Licenses Delete.
+ * Samples for LicenseProfiles Update.
*/
-public final class LicensesDeleteSamples {
+public final class LicenseProfilesUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * licenseProfile/LicenseProfile_Update.json
*/
/**
- * Sample code: Delete a License.
+ * Sample code: Update a License Profile.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void deleteALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenses().delete("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE);
+ public static void updateALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ LicenseProfile resource = manager.licenseProfiles()
+ .getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withSoftwareAssuranceCustomer(true)
+ .withAssignedLicense("{LicenseResourceId}")
+ .withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate.ENABLE)
+ .withProductType(LicenseProfileProductType.WINDOWS_SERVER)
+ .withProductFeaturesForUpdate(Arrays.asList(new ProductFeatureUpdate().withName("Hotpatch")
+ .withSubscriptionStatus(LicenseProfileSubscriptionStatusUpdate.ENABLE)))
+ .apply();
}
}
```
@@ -596,21 +658,29 @@ public final class LicensesDeleteSamples {
### Licenses_GetByResourceGroup
```java
+import com.azure.resourcemanager.hybridcompute.fluent.models.SettingsInner;
+
/**
- * Samples for Licenses GetByResourceGroup.
+ * Samples for SettingsOperation Patch.
*/
-public final class LicensesGetByResourceGroupSamples {
+public final class SettingsOperationPatchSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/settings
+ * /SettingsPatch.json
*/
/**
- * Sample code: Get License.
+ * Sample code: NetworkConfigurationsPatch.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getLicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenses()
- .getByResourceGroupWithResponse("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE);
+ public static void
+ networkConfigurationsPatch(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.settingsOperations()
+ .patchWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
+ new SettingsInner().withGatewayResourceId(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -623,7 +693,9 @@ public final class LicensesGetByResourceGroupSamples {
*/
public final class LicensesListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_ListBySubscription.json
*/
/**
* Sample code: List Licenses by Subscription.
@@ -641,19 +713,23 @@ public final class LicensesListSamples {
```java
/**
- * Samples for Licenses ListByResourceGroup.
+ * Samples for ExtensionMetadata Get.
*/
-public final class LicensesListByResourceGroupSamples {
+public final class ExtensionMetadataGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionMetadata_Get.json
*/
/**
- * Sample code: GET all Machine Extensions.
+ * Sample code: GET an extensions metadata.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETAllMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenses().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
+ public static void gETAnExtensionsMetadata(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionMetadatas()
+ .getWithResponse("EastUS", "microsoft.azure.monitor", "azuremonitorlinuxagent", "1.9.1",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -661,37 +737,23 @@ public final class LicensesListByResourceGroupSamples {
### Licenses_Update
```java
-import com.azure.resourcemanager.hybridcompute.models.License;
-import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
-import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
-import com.azure.resourcemanager.hybridcompute.models.LicenseState;
-import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
-import com.azure.resourcemanager.hybridcompute.models.LicenseType;
-
/**
- * Samples for Licenses Update.
+ * Samples for Operations List.
*/
-public final class LicensesUpdateSamples {
+public final class OperationsListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * Operations_List.json
*/
/**
- * Sample code: Update a License.
+ * Sample code: List Hybrid Compute Provider Operations.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void updateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- License resource = manager.licenses()
- .getByResourceGroupWithResponse("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withLicenseType(LicenseType.ESU)
- .withState(LicenseState.ACTIVATED)
- .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
- .withEdition(LicenseEdition.DATACENTER)
- .withType(LicenseCoreType.P_CORE)
- .withProcessors(6)
- .apply();
+ public static void
+ listHybridComputeProviderOperations(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -699,36 +761,23 @@ public final class LicensesUpdateSamples {
### Licenses_ValidateLicense
```java
-import com.azure.resourcemanager.hybridcompute.fluent.models.LicenseInner;
-import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
-import com.azure.resourcemanager.hybridcompute.models.LicenseDetails;
-import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
-import com.azure.resourcemanager.hybridcompute.models.LicenseState;
-import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
-import com.azure.resourcemanager.hybridcompute.models.LicenseType;
-
/**
- * Samples for Licenses ValidateLicense.
+ * Samples for MachineRunCommands Get.
*/
-public final class LicensesValidateLicenseSamples {
+public final class MachineRunCommandsGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/license/License_ValidateLicense.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * runCommand/RunCommands_Get.json
*/
/**
- * Sample code: Validate a License.
+ * Sample code: Get a Run Command.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void validateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.licenses()
- .validateLicense(new LicenseInner().withLocation("eastus2euap")
- .withLicenseType(LicenseType.ESU)
- .withLicenseDetails(new LicenseDetails().withState(LicenseState.ACTIVATED)
- .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
- .withEdition(LicenseEdition.DATACENTER)
- .withType(LicenseCoreType.P_CORE)
- .withProcessors(6)),
- com.azure.core.util.Context.NONE);
+ public static void getARunCommand(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineRunCommands()
+ .getWithResponse("myResourceGroup", "myMachine", "myRunCommand", com.azure.core.util.Context.NONE);
}
}
```
@@ -736,47 +785,23 @@ public final class LicensesValidateLicenseSamples {
### MachineExtensions_CreateOrUpdate
```java
-import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for MachineExtensions CreateOrUpdate.
+ * Samples for Gateways ListByResourceGroup.
*/
-public final class MachineExtensionsCreateOrUpdateSamples {
+public final class GatewaysListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_ListByResourceGroup.json
*/
/**
- * Sample code: Create or Update a Machine Extension.
+ * Sample code: List Gateways by Resource Group.
*
* @param manager Entry point to HybridComputeManager.
*/
public static void
- createOrUpdateAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineExtensions()
- .define("CustomScriptExtension")
- .withRegion("eastus2euap")
- .withExistingMachine("myResourceGroup", "myMachine")
- .withProperties(
- new MachineExtensionProperties().withPublisher("Microsoft.Compute")
- .withType("CustomScriptExtension")
- .withTypeHandlerVersion("1.10")
- .withSettings(mapOf("commandToExecute",
- "powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"")))
- .create();
- }
-
- // Use "Map.of" if available
- @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;
+ listGatewaysByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.gateways().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
}
}
```
@@ -785,19 +810,21 @@ public final class MachineExtensionsCreateOrUpdateSamples {
```java
/**
- * Samples for MachineExtensions Delete.
+ * Samples for PrivateLinkScopes List.
*/
-public final class MachineExtensionsDeleteSamples {
+public final class PrivateLinkScopesListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_List.json
*/
/**
- * Sample code: Delete a Machine Extension.
+ * Sample code: PrivateLinkScopesList.json.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void deleteAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineExtensions().delete("myResourceGroup", "myMachine", "MMA", com.azure.core.util.Context.NONE);
+ public static void privateLinkScopesListJson(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -806,20 +833,21 @@ public final class MachineExtensionsDeleteSamples {
```java
/**
- * Samples for MachineExtensions Get.
+ * Samples for LicenseProfiles Get.
*/
-public final class MachineExtensionsGetSamples {
+public final class LicenseProfilesGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * licenseProfile/LicenseProfile_Get.json
*/
/**
- * Sample code: GET Machine Extension.
+ * Sample code: Get License Profile.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineExtensions()
- .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", com.azure.core.util.Context.NONE);
+ public static void getLicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenseProfiles().getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
}
}
```
@@ -827,57 +855,31 @@ public final class MachineExtensionsGetSamples {
### MachineExtensions_List
```java
-/**
- * Samples for MachineExtensions List.
- */
-public final class MachineExtensionsListSamples {
- /*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_List.json
- */
- /**
- * Sample code: GET all Machine Extensions - List.
- *
- * @param manager Entry point to HybridComputeManager.
- */
- public static void
- gETAllMachineExtensionsList(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineExtensions().list("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### MachineExtensions_Update
-
-```java
-import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import com.azure.resourcemanager.hybridcompute.models.HybridComputePrivateLinkScope;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for MachineExtensions Update.
+ * Samples for PrivateLinkScopes UpdateTags.
*/
-public final class MachineExtensionsUpdateSamples {
+public final class PrivateLinkScopesUpdateTagsSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json
*/
/**
- * Sample code: Create or Update a Machine Extension.
+ * Sample code: PrivateLinkScopeUpdateTagsOnly.
*
* @param manager Entry point to HybridComputeManager.
*/
public static void
- createOrUpdateAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- MachineExtension resource = manager.machineExtensions()
- .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", com.azure.core.util.Context.NONE)
+ privateLinkScopeUpdateTagsOnly(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ HybridComputePrivateLinkScope resource = manager.privateLinkScopes()
+ .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope",
+ com.azure.core.util.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();
+ resource.update().withTags(mapOf("Tag1", "Value1", "Tag2", "Value2")).apply();
}
// Use "Map.of" if available
@@ -894,46 +896,36 @@ public final class MachineExtensionsUpdateSamples {
}
```
-### MachineRunCommands_CreateOrUpdate
+### MachineExtensions_Update
```java
-import com.azure.resourcemanager.hybridcompute.models.MachineRunCommandScriptSource;
-import com.azure.resourcemanager.hybridcompute.models.RunCommandInputParameter;
+import com.azure.resourcemanager.hybridcompute.models.Gateway;
import java.util.Arrays;
/**
- * Samples for MachineRunCommands CreateOrUpdate.
+ * Samples for Gateways Update.
*/
-public final class MachineRunCommandsCreateOrUpdateSamples {
+public final class GatewaysUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/runCommand/RunCommands_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_Update.json
*/
/**
- * Sample code: Create or Update a Run Command.
+ * Sample code: Update a Gateway.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void createOrUpdateARunCommand(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineRunCommands()
- .define("myRunCommand")
- .withRegion("eastus2")
- .withExistingMachine("myResourceGroup", "myMachine")
- .withSource(new MachineRunCommandScriptSource().withScript("Write-Host Hello World!"))
- .withParameters(Arrays.asList(new RunCommandInputParameter().withName("param1").withValue("value1"),
- new RunCommandInputParameter().withName("param2").withValue("value2")))
- .withAsyncExecution(false)
- .withRunAsUser("user1")
- .withRunAsPassword("")
- .withTimeoutInSeconds(3600)
- .withOutputBlobUri(
- "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt")
- .withErrorBlobUri("https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt")
- .create();
+ public static void updateAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ Gateway resource = manager.gateways()
+ .getByResourceGroupWithResponse("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update().withAllowedFeatures(Arrays.asList("*")).apply();
}
}
```
-### MachineRunCommands_Delete
+### MachineRunCommands_CreateOrUpdate
```java
/**
@@ -941,7 +933,9 @@ public final class MachineRunCommandsCreateOrUpdateSamples {
*/
public final class MachineRunCommandsDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/runCommand/RunCommands_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * runCommand/RunCommands_Delete.json
*/
/**
* Sample code: Delete a Machine Run Command.
@@ -955,111 +949,129 @@ public final class MachineRunCommandsDeleteSamples {
}
```
-### MachineRunCommands_Get
+### MachineRunCommands_Delete
```java
/**
- * Samples for MachineRunCommands Get.
+ * Samples for PrivateEndpointConnections Get.
*/
-public final class MachineRunCommandsGetSamples {
+public final class PrivateEndpointConnectionsGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/runCommand/RunCommands_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateEndpoint/PrivateEndpointConnection_Get.json
*/
/**
- * Sample code: Get a Run Command.
+ * Sample code: Gets private endpoint connection.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getARunCommand(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineRunCommands()
- .getWithResponse("myResourceGroup", "myMachine", "myRunCommand", com.azure.core.util.Context.NONE);
+ public static void
+ getsPrivateEndpointConnection(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateEndpointConnections()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name",
+ com.azure.core.util.Context.NONE);
}
}
```
-### MachineRunCommands_List
+### MachineRunCommands_Get
```java
/**
- * Samples for MachineRunCommands List.
+ * Samples for NetworkSecurityPerimeterConfigurations ListByPrivateLinkScope.
*/
-public final class MachineRunCommandsListSamples {
+public final class NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/runCommand/RunCommands_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json
*/
/**
- * Sample code: GET all Machine Run Commands.
+ * Sample code: Gets the list of network security perimeter configurations of the private link scope.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETAllMachineRunCommands(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machineRunCommands().list("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE);
+ public static void getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.networkSecurityPerimeterConfigurations()
+ .listByPrivateLinkScope("my-resource-group", "my-privatelinkscope", com.azure.core.util.Context.NONE);
}
}
```
-### Machines_AssessPatches
+### MachineRunCommands_List
```java
/**
- * Samples for Machines AssessPatches.
+ * Samples for PrivateLinkResources Get.
*/
-public final class MachinesAssessPatchesSamples {
+public final class PrivateLinkResourcesGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machine_AssessPatches.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json
*/
/**
- * Sample code: Assess patch state of a machine.
+ * Sample code: Gets private endpoint connection.
*
* @param manager Entry point to HybridComputeManager.
*/
public static void
- assessPatchStateOfAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines().assessPatches("myResourceGroupName", "myMachineName", com.azure.core.util.Context.NONE);
+ getsPrivateEndpointConnection(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkResources()
+ .getWithResponse("myResourceGroup", "myPrivateLinkScope", "hybridcompute",
+ com.azure.core.util.Context.NONE);
}
}
```
-### Machines_CreateOrUpdate
+### Machines_AssessPatches
```java
-import com.azure.resourcemanager.hybridcompute.models.Identity;
-import com.azure.resourcemanager.hybridcompute.models.IdentityKeyStore;
-import com.azure.resourcemanager.hybridcompute.models.LocationData;
-import com.azure.resourcemanager.hybridcompute.models.OSProfile;
-import com.azure.resourcemanager.hybridcompute.models.OSProfileWindowsConfiguration;
-import com.azure.resourcemanager.hybridcompute.models.ResourceIdentityType;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtension;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for Machines CreateOrUpdate.
+ * Samples for MachineExtensions Update.
*/
-public final class MachinesCreateOrUpdateSamples {
+public final class MachineExtensionsUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machines_CreateOrUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_Update.json
*/
/**
- * Sample code: Create or Update a Machine.
+ * Sample code: Create or Update a Machine Extension.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void createOrUpdateAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines()
- .define("myMachine")
- .withRegion("eastus2euap")
- .withExistingResourceGroup("myResourceGroup")
- .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
- .withLocationData(new LocationData().withName("Redmond"))
- .withOsProfile(new OSProfile()
- .withWindowsConfiguration(new OSProfileWindowsConfiguration().withEnableHotpatching(true)))
- .withVmId("b7a098cc-b0b8-46e8-a205-62f301a62a8f")
- .withClientPublicKey("string")
- .withIdentityKeyStore(IdentityKeyStore.TPM)
- .withTpmEkCertificate("string")
- .withPrivateLinkScopeResourceId(
- "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName")
- .withParentClusterResourceId(
- "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/clusters/myAzureStackHCICluster")
- .create();
+ public static void
+ createOrUpdateAMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ MachineExtension resource = manager.machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", com.azure.core.util.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();
+ }
+
+ // Use "Map.of" if available
+ @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;
}
}
```
@@ -1068,19 +1080,22 @@ public final class MachinesCreateOrUpdateSamples {
```java
/**
- * Samples for Machines Delete.
+ * Samples for Machines ListByResourceGroup.
*/
-public final class MachinesDeleteSamples {
+public final class MachinesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machines_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machines_ListByResourceGroup.json
*/
/**
- * Sample code: Delete a Machine.
+ * Sample code: List Machines by resource group.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void deleteAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines().delete("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
+ public static void
+ listMachinesByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().listByResourceGroup("myResourceGroup", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1088,78 +1103,57 @@ public final class MachinesDeleteSamples {
### Machines_GetByResourceGroup
```java
-import com.azure.resourcemanager.hybridcompute.models.InstanceViewTypes;
+import com.azure.resourcemanager.hybridcompute.fluent.models.SetupExtensionRequestInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
+import java.util.Arrays;
/**
- * Samples for Machines GetByResourceGroup.
+ * Samples for ResourceProvider SetupExtensions.
*/
-public final class MachinesGetByResourceGroupSamples {
+public final class ResourceProviderSetupExtensionsSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machines_Get_LicenseProfileInstanceView.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_Add.json
*/
/**
- * Sample code: Get Machine with License Profile Instance View.
+ * Sample code: Setup Machine Extensions.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- getMachineWithLicenseProfileInstanceView(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines()
- .getByResourceGroupWithResponse("myResourceGroup", "myMachine", InstanceViewTypes.INSTANCE_VIEW,
+ public static void setupMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.resourceProviders()
+ .setupExtensions("myResourceGroup", "myMachine",
+ new SetupExtensionRequestInner().withExtensions(Arrays.asList(
+ new MachineExtensionProperties().withPublisher("Microsoft.Azure.Monitoring")
+ .withType("AzureMonitorAgentLinux"),
+ new MachineExtensionProperties().withPublisher("")
+ .withType(""))),
com.azure.core.util.Context.NONE);
}
-
- /*
- * x-ms-original-file: 2025-09-16-preview/machine/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, com.azure.core.util.Context.NONE);
- }
}
```
### Machines_InstallPatches
```java
-import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesParameters;
-import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchClassificationWindows;
-import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchRebootSetting;
-import com.azure.resourcemanager.hybridcompute.models.WindowsParameters;
-import java.time.Duration;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-
/**
- * Samples for Machines InstallPatches.
+ * Samples for Gateways GetByResourceGroup.
*/
-public final class MachinesInstallPatchesSamples {
+public final class GatewaysGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machine_InstallPatches.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_Get.json
*/
/**
- * Sample code: Install patch state of a machine.
+ * Sample code: Get Gateway.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- installPatchStateOfAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines()
- .installPatches("myResourceGroupName", "myMachineName",
- new MachineInstallPatchesParameters().withMaximumDuration(Duration.parse("PT4H"))
- .withRebootSetting(VMGuestPatchRebootSetting.IF_REQUIRED)
- .withWindowsParameters(new WindowsParameters()
- .withClassificationsToInclude(Arrays.asList(VMGuestPatchClassificationWindows.CRITICAL,
- VMGuestPatchClassificationWindows.SECURITY))
- .withMaxPatchPublishDate(OffsetDateTime.parse("2021-08-19T02:36:43.0539904+00:00"))
- .withPatchNameMasksToInclude(Arrays.asList("*SQL*"))
- .withPatchNameMasksToExclude(Arrays.asList("*Windows*"))),
- com.azure.core.util.Context.NONE);
+ public static void getGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.gateways()
+ .getByResourceGroupWithResponse("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE);
}
}
```
@@ -1168,20 +1162,22 @@ public final class MachinesInstallPatchesSamples {
```java
/**
- * Samples for Machines List.
+ * Samples for MachineExtensions Get.
*/
-public final class MachinesListSamples {
+public final class MachineExtensionsGetSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machines_ListBySubscription.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extension_Get.json
*/
/**
- * Sample code: List Machines by resource group.
+ * Sample code: GET Machine Extension.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- listMachinesByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.machines().list(com.azure.core.util.Context.NONE);
+ public static void gETMachineExtension(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineExtensions()
+ .getWithResponse("myResourceGroup", "myMachine", "CustomScriptExtension", com.azure.core.util.Context.NONE);
}
}
```
@@ -1190,71 +1186,24 @@ public final class MachinesListSamples {
```java
/**
- * Samples for Machines ListByResourceGroup.
- */
-public final class MachinesListByResourceGroupSamples {
- /*
- * x-ms-original-file: 2025-09-16-preview/machine/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", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Machines_Update
-
-```java
-import com.azure.resourcemanager.hybridcompute.models.AssessmentModeTypes;
-import com.azure.resourcemanager.hybridcompute.models.Identity;
-import com.azure.resourcemanager.hybridcompute.models.LocationData;
-import com.azure.resourcemanager.hybridcompute.models.Machine;
-import com.azure.resourcemanager.hybridcompute.models.OSProfile;
-import com.azure.resourcemanager.hybridcompute.models.OSProfileLinuxConfiguration;
-import com.azure.resourcemanager.hybridcompute.models.OSProfileWindowsConfiguration;
-import com.azure.resourcemanager.hybridcompute.models.PatchModeTypes;
-import com.azure.resourcemanager.hybridcompute.models.ResourceIdentityType;
-
-/**
- * Samples for Machines Update.
+ * Samples for PrivateEndpointConnections Delete.
*/
-public final class MachinesUpdateSamples {
+public final class PrivateEndpointConnectionsDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/machine/Machines_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateEndpoint/PrivateEndpointConnection_Delete.json
*/
/**
- * Sample code: Update a Machine.
+ * Sample code: Deletes a private endpoint connection with a given name.
*
* @param manager Entry point to HybridComputeManager.
- */
- public static void updateAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- Machine resource = manager.machines()
- .getByResourceGroupWithResponse("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withIdentity(new Identity().withType(ResourceIdentityType.SYSTEM_ASSIGNED))
- .withLocationData(new LocationData().withName("Redmond"))
- .withOsProfile(new OSProfile()
- .withWindowsConfiguration(
- new OSProfileWindowsConfiguration().withAssessmentMode(AssessmentModeTypes.IMAGE_DEFAULT)
- .withPatchMode(PatchModeTypes.AUTOMATIC_BY_PLATFORM)
- .withEnableHotpatching(true))
- .withLinuxConfiguration(
- new OSProfileLinuxConfiguration().withAssessmentMode(AssessmentModeTypes.IMAGE_DEFAULT)
- .withPatchMode(PatchModeTypes.MANUAL)))
- .withParentClusterResourceId(
- "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.AzureStackHCI/clusters/myAzureStackHCICluster")
- .withPrivateLinkScopeResourceId(
- "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.HybridCompute/privateLinkScopes/privateLinkScopeName")
- .withIdentityKeyStore("TPM")
- .withTpmEkCertificate("string")
- .apply();
+ */
+ public static void deletesAPrivateEndpointConnectionWithAGivenName(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateEndpointConnections()
+ .delete("myResourceGroup", "myPrivateLinkScope", "private-endpoint-connection-name",
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -1263,19 +1212,22 @@ public final class MachinesUpdateSamples {
```java
/**
- * Samples for NetworkProfile Get.
+ * Samples for Licenses GetByResourceGroup.
*/
-public final class NetworkProfileGetSamples {
+public final class LicensesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/NetworkProfile_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_Get.json
*/
/**
- * Sample code: GET Network Profile.
+ * Sample code: Get License.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void gETNetworkProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.networkProfiles().getWithResponse("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
+ public static void getLicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenses()
+ .getByResourceGroupWithResponse("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE);
}
}
```
@@ -1289,7 +1241,8 @@ public final class NetworkProfileGetSamples {
public final class NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSamples {
/*
* x-ms-original-file:
- * 2025-09-16-preview/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationGet.json
*/
/**
* Sample code: Gets the network security perimeter configuration of the private link scope.
@@ -1309,22 +1262,22 @@ public final class NetworkSecurityPerimeterConfigurationsGetByPrivateLinkScopeSa
```java
/**
- * Samples for NetworkSecurityPerimeterConfigurations ListByPrivateLinkScope.
+ * Samples for PrivateLinkScopes ListByResourceGroup.
*/
-public final class NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeSamples {
+public final class PrivateLinkScopesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * 2025-09-16-preview/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationList.json
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json
*/
/**
- * Sample code: Gets the list of network security perimeter configurations of the private link scope.
+ * Sample code: PrivateLinkScopeListByResourceGroup.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getsTheListOfNetworkSecurityPerimeterConfigurationsOfThePrivateLinkScope(
- com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.networkSecurityPerimeterConfigurations()
- .listByPrivateLinkScope("my-resource-group", "my-privatelinkscope", com.azure.core.util.Context.NONE);
+ public static void
+ privateLinkScopeListByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes().listByResourceGroup("my-resource-group", com.azure.core.util.Context.NONE);
}
}
```
@@ -1332,24 +1285,38 @@ public final class NetworkSecurityPerimeterConfigurationsListByPrivateLinkScopeS
### NetworkSecurityPerimeterConfigurations_ReconcileForPrivateLinkScope
```java
+import com.azure.resourcemanager.hybridcompute.models.LicenseProfileProductType;
+import com.azure.resourcemanager.hybridcompute.models.LicenseProfileSubscriptionStatus;
+import com.azure.resourcemanager.hybridcompute.models.ProductFeature;
+import java.util.Arrays;
+
/**
- * Samples for NetworkSecurityPerimeterConfigurations ReconcileForPrivateLinkScope.
+ * Samples for LicenseProfiles CreateOrUpdate.
*/
-public final class NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSamples {
+public final class LicenseProfilesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * 2025-09-16-preview/networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * licenseProfile/LicenseProfile_CreateOrUpdate.json
*/
/**
- * Sample code: Reconciles the network security perimeter configuration of the private link scope.
+ * Sample code: Create or Update a License Profile.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope(
- com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.networkSecurityPerimeterConfigurations()
- .reconcileForPrivateLinkScope("my-resource-group", "my-privatelinkscope",
- "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.myAssociation", com.azure.core.util.Context.NONE);
+ public static void
+ createOrUpdateALicenseProfile(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenseProfiles()
+ .define()
+ .withRegion("eastus2euap")
+ .withExistingMachine("myResourceGroup", "myMachine")
+ .withSoftwareAssuranceCustomer(true)
+ .withAssignedLicense("{LicenseResourceId}")
+ .withSubscriptionStatus(LicenseProfileSubscriptionStatus.ENABLED)
+ .withProductType(LicenseProfileProductType.WINDOWS_SERVER)
+ .withProductFeatures(Arrays.asList(new ProductFeature().withName("Hotpatch")
+ .withSubscriptionStatus(LicenseProfileSubscriptionStatus.ENABLED)))
+ .create();
}
}
```
@@ -1358,20 +1325,24 @@ public final class NetworkSecurityPerimeterConfigurationsReconcileForPrivateLink
```java
/**
- * Samples for Operations List.
+ * Samples for NetworkSecurityPerimeterConfigurations ReconcileForPrivateLinkScope.
*/
-public final class OperationsListSamples {
+public final class NetworkSecurityPerimeterConfigurationsReconcileForPrivateLinkScopeSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/Operations_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * networkSecurityPerimeterConfiguration/NetworkSecurityPerimeterConfigurationReconcile.json
*/
/**
- * Sample code: List Hybrid Compute Provider Operations.
+ * Sample code: Reconciles the network security perimeter configuration of the private link scope.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- listHybridComputeProviderOperations(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
+ public static void reconcilesTheNetworkSecurityPerimeterConfigurationOfThePrivateLinkScope(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.networkSecurityPerimeterConfigurations()
+ .reconcileForPrivateLinkScope("my-resource-group", "my-privatelinkscope",
+ "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.myAssociation", com.azure.core.util.Context.NONE);
}
}
```
@@ -1379,30 +1350,22 @@ public final class OperationsListSamples {
### PrivateEndpointConnections_CreateOrUpdate
```java
-import com.azure.resourcemanager.hybridcompute.models.PrivateEndpointConnectionProperties;
-import com.azure.resourcemanager.hybridcompute.models.PrivateLinkServiceConnectionStateProperty;
-
/**
- * Samples for PrivateEndpointConnections CreateOrUpdate.
+ * Samples for Gateways Delete.
*/
-public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
+public final class GatewaysDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateEndpoint/PrivateEndpointConnection_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_Delete.json
*/
/**
- * Sample code: Approve or reject a private endpoint connection with a given name.
+ * Sample code: Delete a Gateway.
*
* @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();
+ public static void deleteAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.gateways().delete("myResourceGroup", "{gatewayName}", com.azure.core.util.Context.NONE);
}
}
```
@@ -1410,23 +1373,31 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
### PrivateEndpointConnections_Delete
```java
+import com.azure.resourcemanager.hybridcompute.models.GatewayType;
+import java.util.Arrays;
+
/**
- * Samples for PrivateEndpointConnections Delete.
+ * Samples for Gateways CreateOrUpdate.
*/
-public final class PrivateEndpointConnectionsDeleteSamples {
+public final class GatewaysCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateEndpoint/PrivateEndpointConnection_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_CreateOrUpdate.json
*/
/**
- * Sample code: Deletes a private endpoint connection with a given name.
+ * Sample code: Create or Update a Gateway.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void createOrUpdateAGateway(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.gateways()
+ .define("{gatewayName}")
+ .withRegion("eastus2euap")
+ .withExistingResourceGroup("myResourceGroup")
+ .withGatewayType(GatewayType.PUBLIC)
+ .withAllowedFeatures(Arrays.asList("*"))
+ .create();
}
}
```
@@ -1435,22 +1406,21 @@ public final class PrivateEndpointConnectionsDeleteSamples {
```java
/**
- * Samples for PrivateEndpointConnections Get.
+ * Samples for Machines Delete.
*/
-public final class PrivateEndpointConnectionsGetSamples {
+public final class MachinesDeleteSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateEndpoint/PrivateEndpointConnection_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machines_Delete.json
*/
/**
- * Sample code: Gets private endpoint connection.
+ * Sample code: Delete a Machine.
*
* @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",
- com.azure.core.util.Context.NONE);
+ public static void deleteAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines().delete("myResourceGroup", "myMachine", com.azure.core.util.Context.NONE);
}
}
```
@@ -1459,21 +1429,21 @@ public final class PrivateEndpointConnectionsGetSamples {
```java
/**
- * Samples for PrivateEndpointConnections ListByPrivateLinkScope.
+ * Samples for MachineRunCommands List.
*/
-public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
+public final class MachineRunCommandsListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateEndpoint/PrivateEndpointConnection_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * runCommand/RunCommands_List.json
*/
/**
- * Sample code: Gets list of private endpoint connections on a private link scope.
+ * Sample code: GET all Machine Run Commands.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(
- com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateEndpointConnections()
- .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", com.azure.core.util.Context.NONE);
+ public static void gETAllMachineRunCommands(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machineRunCommands().list("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -1481,153 +1451,137 @@ public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
### PrivateLinkResources_Get
```java
+import com.azure.resourcemanager.hybridcompute.models.InstanceViewTypes;
+
/**
- * Samples for PrivateLinkResources Get.
+ * Samples for Machines GetByResourceGroup.
*/
-public final class PrivateLinkResourcesGetSamples {
+public final class MachinesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopePrivateLinkResource_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machines_Get_LicenseProfileInstanceView.json
*/
/**
- * Sample code: Gets private endpoint connection.
+ * Sample code: Get Machine with License Profile Instance View.
*
* @param manager Entry point to HybridComputeManager.
*/
public static void
- getsPrivateEndpointConnection(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkResources()
- .getWithResponse("myResourceGroup", "myPrivateLinkScope", "hybridcompute",
+ getMachineWithLicenseProfileInstanceView(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines()
+ .getByResourceGroupWithResponse("myResourceGroup", "myMachine", InstanceViewTypes.INSTANCE_VIEW,
com.azure.core.util.Context.NONE);
}
-}
-```
-
-### PrivateLinkResources_ListByPrivateLinkScope
-```java
-/**
- * Samples for PrivateLinkResources ListByPrivateLinkScope.
- */
-public final class PrivateLinkResourcesListByPrivateLinkScopeSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machines_Get.json
*/
/**
- * Sample code: Gets private endpoint connection.
+ * Sample code: Get Machine.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- getsPrivateEndpointConnection(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkResources()
- .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", com.azure.core.util.Context.NONE);
+ public static void getMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines()
+ .getByResourceGroupWithResponse("myResourceGroup", "myMachine", null, com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkScopes_CreateOrUpdate
+### PrivateLinkResources_ListByPrivateLinkScope
```java
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for PrivateLinkScopes CreateOrUpdate.
+ * Samples for PrivateLinkScopes GetValidationDetailsForMachine.
*/
-public final class PrivateLinkScopesCreateOrUpdateSamples {
- /*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_Create.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();
- }
-
+public final class PrivateLinkScopesGetValidationDetailsForMachineSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_Update.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json
*/
/**
- * Sample code: PrivateLinkScopeUpdate.
+ * Sample code: PrivateLinkScopeGet.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void privateLinkScopeUpdate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
manager.privateLinkScopes()
- .define("my-privatelinkscope")
- .withRegion("westus")
- .withExistingResourceGroup("my-resource-group")
- .withTags(mapOf("Tag1", "Value1"))
- .create();
- }
-
- // Use "Map.of" if available
- @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;
+ .getValidationDetailsForMachineWithResponse("my-resource-group", "machineName",
+ com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkScopes_Delete
+### PrivateLinkScopes_CreateOrUpdate
```java
/**
- * Samples for PrivateLinkScopes Delete.
+ * Samples for PrivateEndpointConnections ListByPrivateLinkScope.
*/
-public final class PrivateLinkScopesDeleteSamples {
+public final class PrivateEndpointConnectionsListByPrivateLinkScopeSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_Delete.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateEndpoint/PrivateEndpointConnection_List.json
*/
/**
- * Sample code: PrivateLinkScopesDelete.
+ * Sample code: Gets list of private endpoint connections on a private link scope.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void privateLinkScopesDelete(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkScopes()
- .delete("my-resource-group", "my-privatelinkscope", com.azure.core.util.Context.NONE);
+ public static void getsListOfPrivateEndpointConnectionsOnAPrivateLinkScope(
+ com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateEndpointConnections()
+ .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkScopes_GetByResourceGroup
+### PrivateLinkScopes_Delete
```java
+import com.azure.resourcemanager.hybridcompute.models.License;
+import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
+import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
+import com.azure.resourcemanager.hybridcompute.models.LicenseState;
+import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
+import com.azure.resourcemanager.hybridcompute.models.LicenseType;
+
/**
- * Samples for PrivateLinkScopes GetByResourceGroup.
+ * Samples for Licenses Update.
*/
-public final class PrivateLinkScopesGetByResourceGroupSamples {
+public final class LicensesUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_Get.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_Update.json
*/
/**
- * Sample code: PrivateLinkScopeGet.
+ * Sample code: Update a License.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkScopes()
- .getByResourceGroupWithResponse("my-resource-group", "my-privatelinkscope",
- com.azure.core.util.Context.NONE);
+ public static void updateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ License resource = manager.licenses()
+ .getByResourceGroupWithResponse("myResourceGroup", "{licenseName}", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withLicenseType(LicenseType.ESU)
+ .withState(LicenseState.ACTIVATED)
+ .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
+ .withEdition(LicenseEdition.DATACENTER)
+ .withType(LicenseCoreType.P_CORE)
+ .withProcessors(6)
+ .apply();
}
}
```
-### PrivateLinkScopes_GetValidationDetails
+### PrivateLinkScopes_GetByResourceGroup
```java
/**
@@ -1635,7 +1589,9 @@ public final class PrivateLinkScopesGetByResourceGroupSamples {
*/
public final class PrivateLinkScopesGetValidationDetailsSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_GetValidation.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_GetValidation.json
*/
/**
* Sample code: PrivateLinkScopeGet.
@@ -1650,98 +1606,100 @@ public final class PrivateLinkScopesGetValidationDetailsSamples {
}
```
-### PrivateLinkScopes_GetValidationDetailsForMachine
+### PrivateLinkScopes_GetValidationDetails
```java
/**
- * Samples for PrivateLinkScopes GetValidationDetailsForMachine.
+ * Samples for Gateways List.
*/
-public final class PrivateLinkScopesGetValidationDetailsForMachineSamples {
+public final class GatewaysListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_GetValidationForMachine.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/gateway/
+ * Gateway_ListBySubscription.json
*/
/**
- * Sample code: PrivateLinkScopeGet.
+ * Sample code: List Gateways by Subscription.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void privateLinkScopeGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkScopes()
- .getValidationDetailsForMachineWithResponse("my-resource-group", "machineName",
- com.azure.core.util.Context.NONE);
+ public static void
+ listGatewaysBySubscription(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.gateways().list(com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkScopes_List
+### PrivateLinkScopes_GetValidationDetailsForMachine
```java
/**
- * Samples for PrivateLinkScopes List.
+ * Samples for PrivateLinkResources ListByPrivateLinkScope.
*/
-public final class PrivateLinkScopesListSamples {
+public final class PrivateLinkResourcesListByPrivateLinkScopeSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_List.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopePrivateLinkResource_ListGet.json
*/
/**
- * Sample code: PrivateLinkScopesList.json.
+ * Sample code: Gets private endpoint connection.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void privateLinkScopesListJson(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkScopes().list(com.azure.core.util.Context.NONE);
+ public static void
+ getsPrivateEndpointConnection(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkResources()
+ .listByPrivateLinkScope("myResourceGroup", "myPrivateLinkScope", com.azure.core.util.Context.NONE);
}
}
```
-### PrivateLinkScopes_ListByResourceGroup
+### PrivateLinkScopes_List
```java
+import java.util.HashMap;
+import java.util.Map;
+
/**
- * Samples for PrivateLinkScopes ListByResourceGroup.
+ * Samples for PrivateLinkScopes CreateOrUpdate.
*/
-public final class PrivateLinkScopesListByResourceGroupSamples {
+public final class PrivateLinkScopesCreateOrUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_ListByResourceGroup.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_Create.json
*/
/**
- * Sample code: PrivateLinkScopeListByResourceGroup.
+ * Sample code: PrivateLinkScopeCreate.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void
- privateLinkScopeListByResourceGroup(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.privateLinkScopes().listByResourceGroup("my-resource-group", com.azure.core.util.Context.NONE);
+ public static void privateLinkScopeCreate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.privateLinkScopes()
+ .define("my-privatelinkscope")
+ .withRegion("westus")
+ .withExistingResourceGroup("my-resource-group")
+ .create();
}
-}
-```
-
-### PrivateLinkScopes_UpdateTags
-
-```java
-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: 2025-09-16-preview/privateLinkScope/PrivateLinkScopes_UpdateTagsOnly.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * privateLinkScope/PrivateLinkScopes_Update.json
*/
/**
- * Sample code: PrivateLinkScopeUpdateTagsOnly.
+ * Sample code: PrivateLinkScopeUpdate.
*
* @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",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update().withTags(mapOf("Tag1", "Value1", "Tag2", "Value2")).apply();
+ 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();
}
// Use "Map.of" if available
@@ -1758,39 +1716,59 @@ public final class PrivateLinkScopesUpdateTagsSamples {
}
```
-### ResourceProvider_SetupExtensions
+### PrivateLinkScopes_ListByResourceGroup
```java
-import com.azure.resourcemanager.hybridcompute.fluent.models.SetupExtensionRequestInner;
-import com.azure.resourcemanager.hybridcompute.models.MachineExtensionProperties;
-import java.util.Arrays;
+import com.azure.resourcemanager.hybridcompute.fluent.models.SettingsInner;
/**
- * Samples for ResourceProvider SetupExtensions.
+ * Samples for SettingsOperation Update.
*/
-public final class ResourceProviderSetupExtensionsSamples {
+public final class SettingsOperationUpdateSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extension_Add.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/settings
+ * /SettingsUpdate.json
*/
/**
- * Sample code: Setup Machine Extensions.
+ * Sample code: SettingsUpdate.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void setupMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.resourceProviders()
- .setupExtensions("myResourceGroup", "myMachine",
- new SetupExtensionRequestInner().withExtensions(Arrays.asList(
- new MachineExtensionProperties().withPublisher("Microsoft.Azure.Monitoring")
- .withType("AzureMonitorAgentLinux"),
- new MachineExtensionProperties().withPublisher("")
- .withType(""))),
+ public static void settingsUpdate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.settingsOperations()
+ .updateWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
+ new SettingsInner().withGatewayResourceId(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"),
com.azure.core.util.Context.NONE);
}
}
```
-### ResourceProvider_UpgradeExtensions
+### PrivateLinkScopes_UpdateTags
+
+```java
+/**
+ * Samples for Licenses ListByResourceGroup.
+ */
+public final class LicensesListByResourceGroupSamples {
+ /*
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: GET all Machine Extensions.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void gETAllMachineExtensions(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenses().listByResourceGroup("myResourceGroup", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ResourceProvider_SetupExtensions
```java
import com.azure.resourcemanager.hybridcompute.models.ExtensionTargetProperties;
@@ -1803,7 +1781,9 @@ import java.util.Map;
*/
public final class ResourceProviderUpgradeExtensionsSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/extension/Extensions_Upgrade.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/Extensions_Upgrade.json
*/
/**
* Sample code: Upgrade Machine Extensions.
@@ -1833,80 +1813,130 @@ public final class ResourceProviderUpgradeExtensionsSamples {
}
```
-### SettingsOperation_Get
+### ResourceProvider_UpgradeExtensions
```java
+import com.azure.resourcemanager.hybridcompute.fluent.models.LicenseInner;
+import com.azure.resourcemanager.hybridcompute.models.LicenseCoreType;
+import com.azure.resourcemanager.hybridcompute.models.LicenseDetails;
+import com.azure.resourcemanager.hybridcompute.models.LicenseEdition;
+import com.azure.resourcemanager.hybridcompute.models.LicenseState;
+import com.azure.resourcemanager.hybridcompute.models.LicenseTarget;
+import com.azure.resourcemanager.hybridcompute.models.LicenseType;
+
/**
- * Samples for SettingsOperation Get.
+ * Samples for Licenses ValidateLicense.
*/
-public final class SettingsOperationGetSamples {
+public final class LicensesValidateLicenseSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/settings/SettingsGet.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/license/
+ * License_ValidateLicense.json
*/
/**
- * Sample code: NetworkConfigurationsGet.
+ * Sample code: Validate a License.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void networkConfigurationsGet(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.settingsOperations()
- .getWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
+ public static void validateALicense(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.licenses()
+ .validateLicense(new LicenseInner().withLocation("eastus2euap")
+ .withLicenseType(LicenseType.ESU)
+ .withLicenseDetails(new LicenseDetails().withState(LicenseState.ACTIVATED)
+ .withTarget(LicenseTarget.WINDOWS_SERVER_2012)
+ .withEdition(LicenseEdition.DATACENTER)
+ .withType(LicenseCoreType.P_CORE)
+ .withProcessors(6)),
com.azure.core.util.Context.NONE);
}
}
```
-### SettingsOperation_Patch
+### SettingsOperation_Get
```java
-import com.azure.resourcemanager.hybridcompute.fluent.models.SettingsInner;
+import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesParameters;
+import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchClassificationWindows;
+import com.azure.resourcemanager.hybridcompute.models.VMGuestPatchRebootSetting;
+import com.azure.resourcemanager.hybridcompute.models.WindowsParameters;
+import java.time.Duration;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
/**
- * Samples for SettingsOperation Patch.
+ * Samples for Machines InstallPatches.
*/
-public final class SettingsOperationPatchSamples {
+public final class MachinesInstallPatchesSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/settings/SettingsPatch.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/machine/
+ * Machine_InstallPatches.json
*/
/**
- * Sample code: NetworkConfigurationsPatch.
+ * Sample code: Install patch state of a machine.
*
* @param manager Entry point to HybridComputeManager.
*/
public static void
- networkConfigurationsPatch(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.settingsOperations()
- .patchWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
- new SettingsInner().withGatewayResourceId(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"),
+ installPatchStateOfAMachine(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.machines()
+ .installPatches("myResourceGroupName", "myMachineName",
+ new MachineInstallPatchesParameters().withMaximumDuration(Duration.parse("PT4H"))
+ .withRebootSetting(VMGuestPatchRebootSetting.IF_REQUIRED)
+ .withWindowsParameters(new WindowsParameters()
+ .withClassificationsToInclude(Arrays.asList(VMGuestPatchClassificationWindows.CRITICAL,
+ VMGuestPatchClassificationWindows.SECURITY))
+ .withMaxPatchPublishDate(OffsetDateTime.parse("2021-08-19T02:36:43.0539904+00:00"))
+ .withPatchNameMasksToInclude(Arrays.asList("*SQL*"))
+ .withPatchNameMasksToExclude(Arrays.asList("*Windows*"))),
com.azure.core.util.Context.NONE);
}
}
```
-### SettingsOperation_Update
+### SettingsOperation_Patch
```java
-import com.azure.resourcemanager.hybridcompute.fluent.models.SettingsInner;
+/**
+ * Samples for ExtensionPublisher List.
+ */
+public final class ExtensionPublisherListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionPublisher_List.json
+ */
+ /**
+ * Sample code: GET a list of extension publishers.
+ *
+ * @param manager Entry point to HybridComputeManager.
+ */
+ public static void
+ gETAListOfExtensionPublishers(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionPublishers().list("EastUS", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### SettingsOperation_Update
+```java
/**
- * Samples for SettingsOperation Update.
+ * Samples for ExtensionType List.
*/
-public final class SettingsOperationUpdateSamples {
+public final class ExtensionTypeListSamples {
/*
- * x-ms-original-file: 2025-09-16-preview/settings/SettingsUpdate.json
+ * x-ms-original-file:
+ * specification/hybridcompute/resource-manager/Microsoft.HybridCompute/preview/2025-02-19-preview/examples/
+ * extension/ExtensionType_List.json
*/
/**
- * Sample code: SettingsUpdate.
+ * Sample code: GET a list of extension types.
*
* @param manager Entry point to HybridComputeManager.
*/
- public static void settingsUpdate(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
- manager.settingsOperations()
- .updateWithResponse("hybridRG", "Microsoft.HybridCompute", "machines", "testMachine", "default",
- new SettingsInner().withGatewayResourceId(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/gateways/newGateway"),
- com.azure.core.util.Context.NONE);
+ public static void gETAListOfExtensionTypes(com.azure.resourcemanager.hybridcompute.HybridComputeManager manager) {
+ manager.extensionTypes().list("EastUS", "microsoft.azure.monitor", com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
index af380e9fb3b1..6c85719b5072 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -18,7 +18,7 @@
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. Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management. Package api-version 2025-09-16-preview.
+ 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-2025-02-19.
https://github.com/Azure/azure-sdk-for-java
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 89ca040aa306..c21f53fb9d39 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute;
@@ -72,13 +72,9 @@
/**
* Entry point to HybridComputeManager.
- * Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management.
+ * The Hybrid Compute Management Client.
*/
public final class HybridComputeManager {
- private ResourceProviders resourceProviders;
-
- private Operations operations;
-
private Licenses licenses;
private Machines machines;
@@ -87,29 +83,33 @@ public final class HybridComputeManager {
private MachineExtensions machineExtensions;
- private MachineRunCommands machineRunCommands;
+ private ResourceProviders resourceProviders;
- private Gateways gateways;
+ private ExtensionMetadatas extensionMetadatas;
- private PrivateLinkResources privateLinkResources;
+ private ExtensionMetadataV2s extensionMetadataV2s;
- private PrivateEndpointConnections privateEndpointConnections;
+ private ExtensionTypes extensionTypes;
- private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations;
+ private ExtensionPublishers extensionPublishers;
- private NetworkProfiles networkProfiles;
+ private Operations operations;
- private PrivateLinkScopes privateLinkScopes;
+ private NetworkProfiles networkProfiles;
- private ExtensionMetadatas extensionMetadatas;
+ private MachineRunCommands machineRunCommands;
- private ExtensionMetadataV2s extensionMetadataV2s;
+ private Gateways gateways;
private SettingsOperations settingsOperations;
- private ExtensionTypes extensionTypes;
+ private PrivateLinkScopes privateLinkScopes;
- private ExtensionPublishers extensionPublishers;
+ private PrivateLinkResources privateLinkResources;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations;
private final HybridComputeManagementClient clientObject;
@@ -326,30 +326,6 @@ public HybridComputeManager authenticate(TokenCredential credential, AzureProfil
}
}
- /**
- * Gets the resource collection API of ResourceProviders.
- *
- * @return Resource collection API of ResourceProviders.
- */
- public ResourceProviders resourceProviders() {
- if (this.resourceProviders == null) {
- this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
- }
- return resourceProviders;
- }
-
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/**
* Gets the resource collection API of Licenses. It manages License.
*
@@ -363,7 +339,7 @@ public Licenses licenses() {
}
/**
- * Gets the resource collection API of Machines. It manages Machine.
+ * Gets the resource collection API of Machines.
*
* @return Resource collection API of Machines.
*/
@@ -399,113 +375,111 @@ public MachineExtensions machineExtensions() {
}
/**
- * Gets the resource collection API of MachineRunCommands. It manages MachineRunCommand.
+ * Gets the resource collection API of ResourceProviders.
*
- * @return Resource collection API of MachineRunCommands.
+ * @return Resource collection API of ResourceProviders.
*/
- public MachineRunCommands machineRunCommands() {
- if (this.machineRunCommands == null) {
- this.machineRunCommands = new MachineRunCommandsImpl(clientObject.getMachineRunCommands(), this);
+ public ResourceProviders resourceProviders() {
+ if (this.resourceProviders == null) {
+ this.resourceProviders = new ResourceProvidersImpl(clientObject.getResourceProviders(), this);
}
- return machineRunCommands;
+ return resourceProviders;
}
/**
- * Gets the resource collection API of Gateways. It manages Gateway.
+ * Gets the resource collection API of ExtensionMetadatas.
*
- * @return Resource collection API of Gateways.
+ * @return Resource collection API of ExtensionMetadatas.
*/
- public Gateways gateways() {
- if (this.gateways == null) {
- this.gateways = new GatewaysImpl(clientObject.getGateways(), this);
+ public ExtensionMetadatas extensionMetadatas() {
+ if (this.extensionMetadatas == null) {
+ this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
}
- return gateways;
+ return extensionMetadatas;
}
/**
- * Gets the resource collection API of PrivateLinkResources.
+ * Gets the resource collection API of ExtensionMetadataV2s.
*
- * @return Resource collection API of PrivateLinkResources.
+ * @return Resource collection API of ExtensionMetadataV2s.
*/
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ public ExtensionMetadataV2s extensionMetadataV2s() {
+ if (this.extensionMetadataV2s == null) {
+ this.extensionMetadataV2s = new ExtensionMetadataV2sImpl(clientObject.getExtensionMetadataV2s(), this);
}
- return privateLinkResources;
+ return extensionMetadataV2s;
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ * Gets the resource collection API of ExtensionTypes.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of ExtensionTypes.
*/
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ public ExtensionTypes extensionTypes() {
+ if (this.extensionTypes == null) {
+ this.extensionTypes = new ExtensionTypesImpl(clientObject.getExtensionTypes(), this);
}
- return privateEndpointConnections;
+ return extensionTypes;
}
/**
- * Gets the resource collection API of NetworkSecurityPerimeterConfigurations.
+ * Gets the resource collection API of ExtensionPublishers.
*
- * @return Resource collection API of NetworkSecurityPerimeterConfigurations.
+ * @return Resource collection API of ExtensionPublishers.
*/
- public NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations() {
- if (this.networkSecurityPerimeterConfigurations == null) {
- this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl(
- clientObject.getNetworkSecurityPerimeterConfigurations(), this);
+ public ExtensionPublishers extensionPublishers() {
+ if (this.extensionPublishers == null) {
+ this.extensionPublishers = new ExtensionPublishersImpl(clientObject.getExtensionPublishers(), this);
}
- return networkSecurityPerimeterConfigurations;
+ return extensionPublishers;
}
/**
- * Gets the resource collection API of NetworkProfiles.
+ * Gets the resource collection API of Operations.
*
- * @return Resource collection API of NetworkProfiles.
+ * @return Resource collection API of Operations.
*/
- public NetworkProfiles networkProfiles() {
- if (this.networkProfiles == null) {
- this.networkProfiles = new NetworkProfilesImpl(clientObject.getNetworkProfiles(), this);
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
- return networkProfiles;
+ return operations;
}
/**
- * Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
+ * Gets the resource collection API of NetworkProfiles.
*
- * @return Resource collection API of PrivateLinkScopes.
+ * @return Resource collection API of NetworkProfiles.
*/
- public PrivateLinkScopes privateLinkScopes() {
- if (this.privateLinkScopes == null) {
- this.privateLinkScopes = new PrivateLinkScopesImpl(clientObject.getPrivateLinkScopes(), this);
+ public NetworkProfiles networkProfiles() {
+ if (this.networkProfiles == null) {
+ this.networkProfiles = new NetworkProfilesImpl(clientObject.getNetworkProfiles(), this);
}
- return privateLinkScopes;
+ return networkProfiles;
}
/**
- * Gets the resource collection API of ExtensionMetadatas.
+ * Gets the resource collection API of MachineRunCommands. It manages MachineRunCommand.
*
- * @return Resource collection API of ExtensionMetadatas.
+ * @return Resource collection API of MachineRunCommands.
*/
- public ExtensionMetadatas extensionMetadatas() {
- if (this.extensionMetadatas == null) {
- this.extensionMetadatas = new ExtensionMetadatasImpl(clientObject.getExtensionMetadatas(), this);
+ public MachineRunCommands machineRunCommands() {
+ if (this.machineRunCommands == null) {
+ this.machineRunCommands = new MachineRunCommandsImpl(clientObject.getMachineRunCommands(), this);
}
- return extensionMetadatas;
+ return machineRunCommands;
}
/**
- * Gets the resource collection API of ExtensionMetadataV2s.
+ * Gets the resource collection API of Gateways. It manages Gateway.
*
- * @return Resource collection API of ExtensionMetadataV2s.
+ * @return Resource collection API of Gateways.
*/
- public ExtensionMetadataV2s extensionMetadataV2s() {
- if (this.extensionMetadataV2s == null) {
- this.extensionMetadataV2s = new ExtensionMetadataV2sImpl(clientObject.getExtensionMetadataV2s(), this);
+ public Gateways gateways() {
+ if (this.gateways == null) {
+ this.gateways = new GatewaysImpl(clientObject.getGateways(), this);
}
- return extensionMetadataV2s;
+ return gateways;
}
/**
@@ -521,27 +495,53 @@ public SettingsOperations settingsOperations() {
}
/**
- * Gets the resource collection API of ExtensionTypes.
+ * Gets the resource collection API of PrivateLinkScopes. It manages HybridComputePrivateLinkScope.
*
- * @return Resource collection API of ExtensionTypes.
+ * @return Resource collection API of PrivateLinkScopes.
*/
- public ExtensionTypes extensionTypes() {
- if (this.extensionTypes == null) {
- this.extensionTypes = new ExtensionTypesImpl(clientObject.getExtensionTypes(), this);
+ public PrivateLinkScopes privateLinkScopes() {
+ if (this.privateLinkScopes == null) {
+ this.privateLinkScopes = new PrivateLinkScopesImpl(clientObject.getPrivateLinkScopes(), this);
}
- return extensionTypes;
+ return privateLinkScopes;
}
/**
- * Gets the resource collection API of ExtensionPublishers.
+ * Gets the resource collection API of PrivateLinkResources.
*
- * @return Resource collection API of ExtensionPublishers.
+ * @return Resource collection API of PrivateLinkResources.
*/
- public ExtensionPublishers extensionPublishers() {
- if (this.extensionPublishers == null) {
- this.extensionPublishers = new ExtensionPublishersImpl(clientObject.getExtensionPublishers(), this);
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
}
- return extensionPublishers;
+ return privateLinkResources;
+ }
+
+ /**
+ * 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
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of NetworkSecurityPerimeterConfigurations.
+ *
+ * @return Resource collection API of NetworkSecurityPerimeterConfigurations.
+ */
+ public NetworkSecurityPerimeterConfigurations networkSecurityPerimeterConfigurations() {
+ if (this.networkSecurityPerimeterConfigurations == null) {
+ this.networkSecurityPerimeterConfigurations = new NetworkSecurityPerimeterConfigurationsImpl(
+ clientObject.getNetworkSecurityPerimeterConfigurations(), this);
+ }
+ return networkSecurityPerimeterConfigurations;
}
/**
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadataV2sClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadataV2sClient.java
index 4f052192b926..da3d414395cf 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadataV2sClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionMetadataV2sClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -18,7 +18,7 @@ public interface ExtensionMetadataV2sClient {
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -36,7 +36,7 @@ Response getWithResponse(String location, String publishe
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -51,7 +51,7 @@ Response getWithResponse(String location, String publishe
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -66,7 +66,7 @@ Response getWithResponse(String location, String publishe
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
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
index 1c333c7f0773..8f195cf6e387 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionPublishersClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionPublishersClient.java
index 1993c06e9175..8a6b6a30d288 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionPublishersClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionPublishersClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -17,7 +17,7 @@ public interface ExtensionPublishersClient {
/**
* Gets all Extension publishers based on the location.
*
- * @param location The location name.
+ * @param location The name of Azure region.
* @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.
@@ -29,7 +29,7 @@ public interface ExtensionPublishersClient {
/**
* Gets all Extension publishers based on the location.
*
- * @param location The location name.
+ * @param location The name of Azure region.
* @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.
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionTypesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionTypesClient.java
index dbc57a9c8634..192f816d2806 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionTypesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/ExtensionTypesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -17,7 +17,7 @@ public interface ExtensionTypesClient {
/**
* Gets all Extension types based on location and publisher.
*
- * @param location The location name.
+ * @param location The name of Azure region.
* @param publisher The publisher 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.
@@ -30,7 +30,7 @@ public interface ExtensionTypesClient {
/**
* Gets all Extension types based on location and publisher.
*
- * @param location The location name.
+ * @param location The name of Azure region.
* @param publisher The publisher of the Extension being received.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/GatewaysClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/GatewaysClient.java
index ced7baa2b180..cdb671bccda7 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/GatewaysClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/GatewaysClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -18,34 +18,6 @@
* An instance of this class provides access to all the operations defined in GatewaysClient.
*/
public interface GatewaysClient {
- /**
- * Retrieves information about the view of a gateway.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param gatewayName The name of the Gateway.
- * @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 an Arc Gateway along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String gatewayName,
- Context context);
-
- /**
- * Retrieves information about the view of a gateway.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param gatewayName The name of the Gateway.
- * @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 an Arc Gateway.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- GatewayInner getByResourceGroup(String resourceGroupName, String gatewayName);
-
/**
* The operation to create or update a gateway.
*
@@ -136,6 +108,34 @@ Response updateWithResponse(String resourceGroupName, String gatew
@ServiceMethod(returns = ReturnType.SINGLE)
GatewayInner update(String resourceGroupName, String gatewayName, GatewayUpdate parameters);
+ /**
+ * Retrieves information about the view of a gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param gatewayName The name of the Gateway.
+ * @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 an Arc Gateway along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String gatewayName,
+ Context context);
+
+ /**
+ * Retrieves information about the view of a gateway.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param gatewayName The name of the Gateway.
+ * @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 an Arc Gateway.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GatewayInner getByResourceGroup(String resourceGroupName, String gatewayName);
+
/**
* The operation to delete a gateway.
*
@@ -195,7 +195,7 @@ Response updateWithResponse(String resourceGroupName, String gatew
* @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 paged collection of Gateway items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -208,7 +208,7 @@ Response updateWithResponse(String resourceGroupName, String gatew
* @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 paged collection of Gateway items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -218,7 +218,7 @@ Response updateWithResponse(String resourceGroupName, String gatew
*
* @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 paged collection of Gateway items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -230,7 +230,7 @@ Response updateWithResponse(String resourceGroupName, String gatew
* @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 paged collection of Gateway items as paginated response with {@link PagedIterable}.
+ * @return the List license 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/HybridComputeManagementClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/HybridComputeManagementClient.java
index 823778dc0861..b8c5d41f0c48 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -12,25 +12,25 @@
*/
public interface HybridComputeManagementClient {
/**
- * Gets Service host.
+ * Gets The ID of the target subscription.
*
- * @return the endpoint value.
+ * @return the subscriptionId value.
*/
- String getEndpoint();
+ String getSubscriptionId();
/**
- * Gets Version parameter.
+ * Gets server parameter.
*
- * @return the apiVersion value.
+ * @return the endpoint value.
*/
- String getApiVersion();
+ String getEndpoint();
/**
- * Gets The ID of the target subscription. The value must be an UUID.
+ * Gets Api Version.
*
- * @return the subscriptionId value.
+ * @return the apiVersion value.
*/
- String getSubscriptionId();
+ String getApiVersion();
/**
* Gets The HTTP pipeline to send requests through.
@@ -46,20 +46,6 @@ public interface HybridComputeManagementClient {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the ResourceProvidersClient object to access its operations.
- *
- * @return the ResourceProvidersClient object.
- */
- ResourceProvidersClient getResourceProviders();
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
/**
* Gets the LicensesClient object to access its operations.
*
@@ -89,67 +75,67 @@ public interface HybridComputeManagementClient {
MachineExtensionsClient getMachineExtensions();
/**
- * Gets the MachineRunCommandsClient object to access its operations.
+ * Gets the ResourceProvidersClient object to access its operations.
*
- * @return the MachineRunCommandsClient object.
+ * @return the ResourceProvidersClient object.
*/
- MachineRunCommandsClient getMachineRunCommands();
+ ResourceProvidersClient getResourceProviders();
/**
- * Gets the GatewaysClient object to access its operations.
+ * Gets the ExtensionMetadatasClient object to access its operations.
*
- * @return the GatewaysClient object.
+ * @return the ExtensionMetadatasClient object.
*/
- GatewaysClient getGateways();
+ ExtensionMetadatasClient getExtensionMetadatas();
/**
- * Gets the PrivateLinkResourcesClient object to access its operations.
+ * Gets the ExtensionMetadataV2sClient object to access its operations.
*
- * @return the PrivateLinkResourcesClient object.
+ * @return the ExtensionMetadataV2sClient object.
*/
- PrivateLinkResourcesClient getPrivateLinkResources();
+ ExtensionMetadataV2sClient getExtensionMetadataV2s();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the ExtensionTypesClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the ExtensionTypesClient object.
*/
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+ ExtensionTypesClient getExtensionTypes();
/**
- * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations.
+ * Gets the ExtensionPublishersClient object to access its operations.
*
- * @return the NetworkSecurityPerimeterConfigurationsClient object.
+ * @return the ExtensionPublishersClient object.
*/
- NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations();
+ ExtensionPublishersClient getExtensionPublishers();
/**
- * Gets the NetworkProfilesClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the NetworkProfilesClient object.
+ * @return the OperationsClient object.
*/
- NetworkProfilesClient getNetworkProfiles();
+ OperationsClient getOperations();
/**
- * Gets the PrivateLinkScopesClient object to access its operations.
+ * Gets the NetworkProfilesClient object to access its operations.
*
- * @return the PrivateLinkScopesClient object.
+ * @return the NetworkProfilesClient object.
*/
- PrivateLinkScopesClient getPrivateLinkScopes();
+ NetworkProfilesClient getNetworkProfiles();
/**
- * Gets the ExtensionMetadatasClient object to access its operations.
+ * Gets the MachineRunCommandsClient object to access its operations.
*
- * @return the ExtensionMetadatasClient object.
+ * @return the MachineRunCommandsClient object.
*/
- ExtensionMetadatasClient getExtensionMetadatas();
+ MachineRunCommandsClient getMachineRunCommands();
/**
- * Gets the ExtensionMetadataV2sClient object to access its operations.
+ * Gets the GatewaysClient object to access its operations.
*
- * @return the ExtensionMetadataV2sClient object.
+ * @return the GatewaysClient object.
*/
- ExtensionMetadataV2sClient getExtensionMetadataV2s();
+ GatewaysClient getGateways();
/**
* Gets the SettingsOperationsClient object to access its operations.
@@ -159,16 +145,30 @@ public interface HybridComputeManagementClient {
SettingsOperationsClient getSettingsOperations();
/**
- * Gets the ExtensionTypesClient object to access its operations.
+ * Gets the PrivateLinkScopesClient object to access its operations.
*
- * @return the ExtensionTypesClient object.
+ * @return the PrivateLinkScopesClient object.
*/
- ExtensionTypesClient getExtensionTypes();
+ PrivateLinkScopesClient getPrivateLinkScopes();
/**
- * Gets the ExtensionPublishersClient object to access its operations.
+ * Gets the PrivateLinkResourcesClient object to access its operations.
*
- * @return the ExtensionPublishersClient object.
+ * @return the PrivateLinkResourcesClient object.
*/
- ExtensionPublishersClient getExtensionPublishers();
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the NetworkSecurityPerimeterConfigurationsClient object to access its operations.
+ *
+ * @return the NetworkSecurityPerimeterConfigurationsClient object.
+ */
+ NetworkSecurityPerimeterConfigurationsClient getNetworkSecurityPerimeterConfigurations();
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicenseProfilesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicenseProfilesClient.java
index 10cb7e445295..ea38064c0c65 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicenseProfilesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicenseProfilesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -18,33 +18,6 @@
* An instance of this class provides access to all the operations defined in LicenseProfilesClient.
*/
public interface LicenseProfilesClient {
- /**
- * Retrieves information about the view of a license profile.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a license profile in a hybrid machine along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String machineName, Context context);
-
- /**
- * Retrieves information about the view of a license profile.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a license profile in a hybrid machine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LicenseProfileInner get(String resourceGroupName, String machineName);
-
/**
* The operation to create or update a license profile.
*
@@ -167,6 +140,33 @@ SyncPoller, LicenseProfileInner> beginUpdate(Str
LicenseProfileInner update(String resourceGroupName, String machineName, LicenseProfileUpdate parameters,
Context context);
+ /**
+ * Retrieves information about the view of a license profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a license profile in a hybrid machine along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String machineName, Context context);
+
+ /**
+ * Retrieves information about the view of a license profile.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a license profile in a hybrid machine.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LicenseProfileInner get(String resourceGroupName, String machineName);
+
/**
* The operation to delete a license profile.
*
@@ -223,11 +223,12 @@ LicenseProfileInner update(String resourceGroupName, String machineName, License
* The operation to get all license profiles of a non-Azure machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return paged collection of LicenseProfile items as paginated response with {@link PagedIterable}.
+ * @return the List hybrid machine license profile operation response as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName);
@@ -236,12 +237,13 @@ LicenseProfileInner update(String resourceGroupName, String machineName, License
* The operation to get all license profiles of a non-Azure machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the 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 paged collection of LicenseProfile items as paginated response with {@link PagedIterable}.
+ * @return the List hybrid machine license profile operation response as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName, Context context);
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicensesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicensesClient.java
index 6588fb4d2a53..a644026f15df 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicensesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/LicensesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -19,32 +19,54 @@
*/
public interface LicensesClient {
/**
- * Retrieves information about the view of a license.
+ * The operation to validate a license.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param licenseName The name of the license.
+ * @param parameters Parameters supplied to the license validation operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of describes a license in a hybrid machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LicenseInner> beginValidateLicense(LicenseInner parameters);
+
+ /**
+ * The operation to validate a license.
+ *
+ * @param parameters Parameters supplied to the license validation 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 license in a hybrid machine along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of describes a license in a hybrid machine.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LicenseInner> beginValidateLicense(LicenseInner parameters, Context context);
+
+ /**
+ * The operation to validate a license.
+ *
+ * @param parameters Parameters supplied to the license validation 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 license in a hybrid machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String licenseName,
- Context context);
+ LicenseInner validateLicense(LicenseInner parameters);
/**
- * Retrieves information about the view of a license.
+ * The operation to validate a license.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param licenseName The name of the license.
+ * @param parameters Parameters supplied to the license validation 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 license in a hybrid machine.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- LicenseInner getByResourceGroup(String resourceGroupName, String licenseName);
+ LicenseInner validateLicense(LicenseInner parameters, Context context);
/**
* The operation to create or update a license.
@@ -166,6 +188,34 @@ SyncPoller, LicenseInner> beginUpdate(String resourceGr
@ServiceMethod(returns = ReturnType.SINGLE)
LicenseInner update(String resourceGroupName, String licenseName, LicenseUpdate parameters, Context context);
+ /**
+ * Retrieves information about the view of a license.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param licenseName The name of the license.
+ * @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 license in a hybrid machine along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String licenseName,
+ Context context);
+
+ /**
+ * Retrieves information about the view of a license.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param licenseName The name of the license.
+ * @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 license in a hybrid machine.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LicenseInner getByResourceGroup(String resourceGroupName, String licenseName);
+
/**
* The operation to delete a license.
*
@@ -225,7 +275,7 @@ SyncPoller, LicenseInner> beginUpdate(String resourceGr
* @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 paged collection of License items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
@@ -238,7 +288,7 @@ SyncPoller, LicenseInner> beginUpdate(String resourceGr
* @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 paged collection of License items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, Context context);
@@ -248,7 +298,7 @@ SyncPoller, LicenseInner> beginUpdate(String resourceGr
*
* @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 paged collection of License items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
@@ -260,58 +310,8 @@ SyncPoller, LicenseInner> beginUpdate(String resourceGr
* @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 paged collection of License items as paginated response with {@link PagedIterable}.
+ * @return the List license operation response as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
-
- /**
- * The operation to validate a license.
- *
- * @param parameters The content of the action request.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of describes a license in a hybrid machine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LicenseInner> beginValidateLicense(LicenseInner parameters);
-
- /**
- * The operation to validate a license.
- *
- * @param parameters The content of the action request.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of describes a license in a hybrid machine.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, LicenseInner> beginValidateLicense(LicenseInner parameters, Context context);
-
- /**
- * The operation to validate a license.
- *
- * @param parameters The content of the action request.
- * @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 license in a hybrid machine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LicenseInner validateLicense(LicenseInner parameters);
-
- /**
- * The operation to validate a license.
- *
- * @param parameters The content of the action request.
- * @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 license in a hybrid machine.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- LicenseInner validateLicense(LicenseInner parameters, Context context);
}
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 f1dd8e41d172..a2cfd8312a9c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -18,41 +18,11 @@
* An instance of this class provides access to all the operations defined in MachineExtensionsClient.
*/
public interface MachineExtensionsClient {
- /**
- * The operation to get the extension.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String machineName, String extensionName,
- Context context);
-
- /**
- * The operation to get the extension.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param extensionName The name of the machine extension.
- * @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)
- MachineExtensionInner get(String resourceGroupName, String machineName, String extensionName);
-
/**
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -68,7 +38,7 @@ SyncPoller, MachineExtensionInner> beginCreate
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @param context The context to associate with this operation.
@@ -85,7 +55,7 @@ SyncPoller, MachineExtensionInner> beginCreate
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -101,7 +71,7 @@ MachineExtensionInner createOrUpdate(String resourceGroupName, String machineNam
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @param context The context to associate with this operation.
@@ -118,7 +88,7 @@ MachineExtensionInner createOrUpdate(String resourceGroupName, String machineNam
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -134,7 +104,7 @@ SyncPoller, MachineExtensionInner> beginUpdate
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @param context The context to associate with this operation.
@@ -151,7 +121,7 @@ SyncPoller, MachineExtensionInner> beginUpdate
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -167,7 +137,7 @@ MachineExtensionInner update(String resourceGroupName, String machineName, Strin
* The operation to create or update the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be created or updated.
* @param extensionName The name of the machine extension.
* @param extensionParameters Parameters supplied to the Create Machine Extension operation.
* @param context The context to associate with this operation.
@@ -184,7 +154,7 @@ MachineExtensionInner update(String resourceGroupName, String machineName, Strin
* The operation to delete the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be deleted.
* @param extensionName The name of the machine extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -198,7 +168,7 @@ MachineExtensionInner update(String resourceGroupName, String machineName, Strin
* The operation to delete the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be deleted.
* @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.
@@ -214,7 +184,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* The operation to delete the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be deleted.
* @param extensionName The name of the machine extension.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -227,7 +197,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* The operation to delete the extension.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine where the extension should be deleted.
* @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.
@@ -237,15 +207,45 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String machineName, String extensionName, Context context);
+ /**
+ * The operation to get the extension.
+ *
+ * @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 along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String machineName, String extensionName,
+ Context context);
+
+ /**
+ * The operation to get the extension.
+ *
+ * @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.
+ * @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)
+ MachineExtensionInner get(String resourceGroupName, String machineName, String extensionName);
+
/**
* The operation to get all extensions of a non-Azure machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine containing the extension.
* @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 paged collection of MachineExtension items as paginated response with {@link PagedIterable}.
+ * @return describes the Machine Extensions List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName);
@@ -254,13 +254,13 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* The operation to get all extensions of a non-Azure machine.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
+ * @param machineName The name of the machine containing the extension.
* @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 paged collection of MachineExtension items as paginated response with {@link PagedIterable}.
+ * @return describes the Machine Extensions List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName, String expand,
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java
index 3ad80ca05e61..67f1c56883fd 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/MachineRunCommandsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -17,36 +17,6 @@
* An instance of this class provides access to all the operations defined in MachineRunCommandsClient.
*/
public interface MachineRunCommandsClient {
- /**
- * The operation to get a run command.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param runCommandName The name of the run command.
- * @param context The context to associate with this operation.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Run Command along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String machineName,
- String runCommandName, Context context);
-
- /**
- * The operation to get a run command.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param runCommandName The name of the run command.
- * @throws IllegalArgumentException thrown if parameters fail the validation.
- * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
- * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return describes a Run Command.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- MachineRunCommandInner get(String resourceGroupName, String machineName, String runCommandName);
-
/**
* The operation to create or update a run command.
*
@@ -170,6 +140,36 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String machineName, String runCommandName, Context context);
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Run Command along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String machineName,
+ String runCommandName, Context context);
+
+ /**
+ * The operation to get a run command.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
+ * @param runCommandName The name of the run command.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return describes a Run Command.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineRunCommandInner get(String resourceGroupName, String machineName, String runCommandName);
+
/**
* The operation to get all the run commands of a non-Azure machine.
*
@@ -178,7 +178,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 paged collection of MachineRunCommand items as paginated response with {@link PagedIterable}.
+ * @return describes the Run Commands List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName);
@@ -193,7 +193,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* @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 paged collection of MachineRunCommand items as paginated response with {@link PagedIterable}.
+ * @return describes the Run Commands List Result as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName, String machineName, String expand,
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 50d428082fc0..a2aa8218000d 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -16,104 +16,11 @@
import com.azure.resourcemanager.hybridcompute.fluent.models.MachineInstallPatchesResultInner;
import com.azure.resourcemanager.hybridcompute.models.InstanceViewTypes;
import com.azure.resourcemanager.hybridcompute.models.MachineInstallPatchesParameters;
-import com.azure.resourcemanager.hybridcompute.models.MachineUpdate;
/**
* An instance of this class provides access to all the operations defined in MachinesClient.
*/
public interface MachinesClient {
- /**
- * 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- 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.
- * @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)
- MachineInner getByResourceGroup(String resourceGroupName, String machineName);
-
- /**
- * The operation to create or update a hybrid machine. Please note some properties can be set only during machine
- * creation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param parameters Parameters supplied to the Create hybrid machine operation.
- * @param expand Expands referenced resources.
- * @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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String machineName,
- MachineInner parameters, String expand, Context context);
-
- /**
- * The operation to create or update a hybrid machine. Please note some properties can be set only during machine
- * creation.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
- * @param parameters Parameters supplied to the Create hybrid machine 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)
- MachineInner createOrUpdate(String resourceGroupName, String machineName, MachineInner parameters);
-
- /**
- * The operation to update 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 parameters Parameters supplied to the Update hybrid machine 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 along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response updateWithResponse(String resourceGroupName, String machineName, MachineUpdate parameters,
- Context context);
-
- /**
- * The operation to update 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 parameters Parameters supplied to the Update hybrid machine 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)
- MachineInner update(String resourceGroupName, String machineName, MachineUpdate parameters);
-
/**
* The operation to delete a hybrid machine.
*
@@ -167,61 +74,38 @@ Response updateWithResponse(String resourceGroupName, String machi
void delete(String resourceGroupName, String machineName, Context context);
/**
- * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
- * the next page of hybrid machines.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 of a Machine list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
- * the next page of hybrid machines.
+ * 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 expand Expands referenced resources.
+ * @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 the response of a Machine list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String expand, Context context);
-
- /**
- * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
- * next page of hybrid machines.
- *
- * @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 of a Machine list operation as paginated response with {@link PagedIterable}.
+ * @return describes a hybrid machine along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String machineName,
+ InstanceViewTypes expand, Context context);
/**
- * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
- * next page of hybrid machines.
+ * Retrieves information about the model view or the instance view of a hybrid machine.
*
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param machineName The name of the hybrid machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a Machine list operation as paginated response with {@link PagedIterable}.
+ * @return describes a hybrid machine.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MachineInner getByResourceGroup(String resourceGroupName, String machineName);
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -235,7 +119,7 @@ Response updateWithResponse(String resourceGroupName, String machi
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -250,7 +134,7 @@ Response updateWithResponse(String resourceGroupName, String machi
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -263,7 +147,7 @@ Response updateWithResponse(String resourceGroupName, String machi
/**
* The operation to assess patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -277,7 +161,7 @@ Response updateWithResponse(String resourceGroupName, String machi
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -292,7 +176,7 @@ Response updateWithResponse(String resourceGroupName, String machi
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @param context The context to associate with this operation.
@@ -308,7 +192,7 @@ SyncPoller, MachineInstallPatchesRe
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -323,7 +207,7 @@ MachineInstallPatchesResultInner installPatches(String resourceGroupName, String
/**
* The operation to install patches on a hybrid machine identity in Azure.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param resourceGroupName The name of the resource group.
* @param name The name of the hybrid machine.
* @param installPatchesInput Input for InstallPatches as directly received by the API.
* @param context The context to associate with this operation.
@@ -335,4 +219,56 @@ MachineInstallPatchesResultInner installPatches(String resourceGroupName, String
@ServiceMethod(returns = ReturnType.SINGLE)
MachineInstallPatchesResultInner installPatches(String resourceGroupName, String name,
MachineInstallPatchesParameters installPatchesInput, Context context);
+
+ /**
+ * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
+ * the next page of hybrid machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get
+ * the next page of hybrid machines.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param expand Expands referenced resources.
+ * @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 List hybrid machine operation response as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String expand, Context context);
+
+ /**
+ * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
+ * next page of hybrid machines.
+ *
+ * @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 as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the
+ * next page of hybrid machines.
+ *
+ * @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 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/NetworkProfilesClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java
index a5e20b73504b..648876e4d161 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkProfilesClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkSecurityPerimeterConfigurationsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkSecurityPerimeterConfigurationsClient.java
index 4df33ff740f5..375cb93b082a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkSecurityPerimeterConfigurationsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/NetworkSecurityPerimeterConfigurationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -60,8 +60,7 @@ NetworkSecurityPerimeterConfigurationInner getByPrivateLinkScope(String resource
* @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 of a NetworkSecurityPerimeterConfiguration list operation as paginated response with
- * {@link PagedIterable}.
+ * @return a list of network security perimeter configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(String resourceGroupName,
@@ -76,8 +75,7 @@ PagedIterable listByPrivateLinkScope
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response of a NetworkSecurityPerimeterConfiguration list operation as paginated response with
- * {@link PagedIterable}.
+ * @return a list of network security perimeter configurations as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByPrivateLinkScope(String resourceGroupName,
@@ -93,7 +91,7 @@ PagedIterable listByPrivateLinkScope
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of result of network security perimeter configurations.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkSecurityPerimeterConfigurationReconcileResultInner>
@@ -110,7 +108,7 @@ PagedIterable listByPrivateLinkScope
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of result of network security perimeter configurations.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, NetworkSecurityPerimeterConfigurationReconcileResultInner>
@@ -127,7 +125,7 @@ PagedIterable listByPrivateLinkScope
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return result of network security perimeter configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkSecurityPerimeterConfigurationReconcileResultInner reconcileForPrivateLinkScope(String resourceGroupName,
@@ -144,7 +142,7 @@ NetworkSecurityPerimeterConfigurationReconcileResultInner reconcileForPrivateLin
* @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 result of network security perimeter configurations.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
NetworkSecurityPerimeterConfigurationReconcileResultInner reconcileForPrivateLinkScope(String resourceGroupName,
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 698f50a9293c..a87f074eaa4c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
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 d5e8c80bbaaf..e8282b570ff4 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
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 d3d2c49ad301..cd8b7c055cc0 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -20,59 +20,59 @@ public interface PrivateLinkResourcesClient {
*
* @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 along with
- * {@link Response}.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope as paginated
+ * response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String scopeName, String groupName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
/**
* Gets the private link resources that need to be created for a Azure Monitor 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 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 as paginated
+ * response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceInner get(String resourceGroupName, String scopeName, String groupName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName,
+ Context context);
/**
* Gets the private link resources that need to be created for a Azure Monitor 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 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 as paginated
- * response with {@link PagedIterable}.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope along with
+ * {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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.
*
* @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.
+ * @param groupName The name of the private link resource.
* @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 as paginated
- * response with {@link PagedIterable}.
+ * @return the private link resources that need to be created for a Azure Monitor PrivateLinkScope.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByPrivateLinkScope(String resourceGroupName, String scopeName,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ 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 dff1114b6c97..e09ba79bb901 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -20,235 +20,235 @@
*/
public interface PrivateLinkScopesClient {
/**
- * Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
+ * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
+ *
+ * @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 as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
*
- * @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 body along with {@link Response}.
+ * @return a list of all Azure Arc PrivateLinkScopes within a subscription as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response
- getValidationDetailsForMachineWithResponse(String resourceGroupName, String machineName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
/**
- * Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
+ * Gets a list of Azure Arc PrivateLinkScopes within a resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param machineName The name of the hybrid machine.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response.
+ * @return a list of Azure Arc PrivateLinkScopes within a resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkScopeValidationDetailsInner getValidationDetailsForMachine(String resourceGroupName, String machineName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Returns a Azure Arc PrivateLinkScope.
+ * Gets a list of Azure Arc PrivateLinkScopes within a resource group.
*
* @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 along with {@link Response}.
+ * @return a list of Azure Arc PrivateLinkScopes within a resource group as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String scopeName, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
/**
- * Returns a Azure Arc PrivateLinkScope.
+ * Deletes 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.
* @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 the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- HybridComputePrivateLinkScopeInner getByResourceGroup(String resourceGroupName, String scopeName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName);
/**
- * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
- * InstrumentationKey nor AppId in the Put operation.
+ * Deletes 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 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 along with {@link Response}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String scopeName,
- HybridComputePrivateLinkScopeInner parameters, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName, Context context);
/**
- * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
- * InstrumentationKey nor AppId in the Put operation.
+ * Deletes 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 parameters Properties that need to be specified to create or update a Azure Arc for Servers and Clusters
- * PrivateLinkScope.
* @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)
- HybridComputePrivateLinkScopeInner createOrUpdate(String resourceGroupName, String scopeName,
- HybridComputePrivateLinkScopeInner parameters);
+ void delete(String resourceGroupName, String scopeName);
/**
- * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
+ * Deletes 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 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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response updateTagsWithResponse(String resourceGroupName, String scopeName,
- TagsResource privateLinkScopeTags, Context context);
+ void delete(String resourceGroupName, String scopeName, Context context);
/**
- * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
+ * 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 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 getByResourceGroupWithResponse(String resourceGroupName,
+ String scopeName, Context context);
/**
- * Deletes a Azure Arc PrivateLinkScope.
+ * 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.
* @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.
+ * @return an Azure Arc PrivateLinkScope definition.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridComputePrivateLinkScopeInner getByResourceGroup(String resourceGroupName, String scopeName);
/**
- * Deletes a Azure Arc PrivateLinkScope.
+ * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
+ * InstrumentationKey nor AppId in the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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 the {@link SyncPoller} for polling of long-running operation.
+ * @return an Azure Arc PrivateLinkScope definition along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String scopeName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(String resourceGroupName, String scopeName,
+ HybridComputePrivateLinkScopeInner parameters, Context context);
/**
- * Deletes a Azure Arc PrivateLinkScope.
+ * Creates (or updates) a Azure Arc PrivateLinkScope. Note: You cannot specify a different value for
+ * InstrumentationKey nor AppId in the Put operation.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @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.
* @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)
- void delete(String resourceGroupName, String scopeName);
+ HybridComputePrivateLinkScopeInner createOrUpdate(String resourceGroupName, String scopeName,
+ HybridComputePrivateLinkScopeInner parameters);
/**
- * Deletes a Azure Arc PrivateLinkScope.
+ * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
*
* @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 along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String scopeName, Context context);
+ Response updateTagsWithResponse(String resourceGroupName, String scopeName,
+ TagsResource privateLinkScopeTags, Context context);
/**
- * Gets a list of Azure Arc PrivateLinkScopes within a resource group.
+ * Updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method.
*
* @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.
* @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 as paginated response with
- * {@link PagedIterable}.
+ * @return an Azure Arc PrivateLinkScope definition.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HybridComputePrivateLinkScopeInner updateTags(String resourceGroupName, String scopeName,
+ TagsResource privateLinkScopeTags);
/**
- * Gets a list of Azure Arc PrivateLinkScopes within a resource group.
+ * Returns a Azure Arc PrivateLinkScope's validation details.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 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);
-
- /**
- * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
- *
- * @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 as paginated response with
- * {@link PagedIterable}.
+ * @return the response body along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getValidationDetailsWithResponse(String location,
+ String privateLinkScopeId, Context context);
/**
- * Gets a list of all Azure Arc PrivateLinkScopes within a subscription.
+ * Returns a Azure Arc PrivateLinkScope's validation details.
*
- * @param context The context to associate with this operation.
+ * @param location The location of the target resource.
+ * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
* @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 as paginated response with
- * {@link PagedIterable}.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkScopeValidationDetailsInner getValidationDetails(String location, String privateLinkScopeId);
/**
- * Returns a Azure Arc PrivateLinkScope's validation details.
+ * Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
*
- * @param location The name of the Azure region.
- * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
+ * @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.
@@ -256,19 +256,19 @@ HybridComputePrivateLinkScopeInner updateTags(String resourceGroupName, String s
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getValidationDetailsWithResponse(String location,
- String privateLinkScopeId, Context context);
+ Response
+ getValidationDetailsForMachineWithResponse(String resourceGroupName, String machineName, Context context);
/**
- * Returns a Azure Arc PrivateLinkScope's validation details.
+ * Returns a Azure Arc PrivateLinkScope's validation details for a given machine.
*
- * @param location The name of the Azure region.
- * @param privateLinkScopeId The id (Guid) of the Azure Arc PrivateLinkScope resource.
+ * @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.
* @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)
- PrivateLinkScopeValidationDetailsInner getValidationDetails(String location, String privateLinkScopeId);
+ 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
index abdd06b38b35..19854a195223 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/SettingsOperationsClient.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/SettingsOperationsClient.java
index 4295bdcbf28c..3e3fa0f8b16d 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/SettingsOperationsClient.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/SettingsOperationsClient.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent;
@@ -26,8 +26,7 @@ public interface SettingsOperationsClient {
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type along
- * with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String resourceGroupName, String baseProvider, String baseResourceType,
@@ -44,7 +43,7 @@ Response getWithResponse(String resourceGroupName, String basePro
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SettingsInner get(String resourceGroupName, String baseProvider, String baseResourceType, String baseResourceName,
@@ -63,8 +62,7 @@ SettingsInner get(String resourceGroupName, String baseProvider, String baseReso
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type along
- * with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(String resourceGroupName, String baseProvider, String baseResourceType,
@@ -82,7 +80,7 @@ Response updateWithResponse(String resourceGroupName, String base
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SettingsInner update(String resourceGroupName, String baseProvider, String baseResourceType,
@@ -101,8 +99,7 @@ SettingsInner update(String resourceGroupName, String baseProvider, String baseR
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type along
- * with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response patchWithResponse(String resourceGroupName, String baseProvider, String baseResourceType,
@@ -120,7 +117,7 @@ Response patchWithResponse(String resourceGroupName, String baseP
* @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 concrete proxy resource types can be created by aliasing this type using a specific property type.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
SettingsInner patch(String resourceGroupName, String baseProvider, String baseResourceType, String baseResourceName,
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AccessRuleProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AccessRuleProperties.java
index 55176898b07f..54486e243a74 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AccessRuleProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/AccessRuleProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -31,7 +31,7 @@ public final class AccessRuleProperties implements JsonSerializable addressPrefixes() {
return this.addressPrefixes;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/EsuProfileUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/EsuProfileUpdateProperties.java
index f61fd542565d..24e44b76e845 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/EsuProfileUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/EsuProfileUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -47,6 +47,14 @@ public EsuProfileUpdateProperties withAssignedLicense(String assignedLicense) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionPublisherInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionPublisherInner.java
index 6b85798fdfd1..e9e32b1d176f 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionPublisherInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ExtensionPublisherInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* Describes an Extension Publisher.
*/
-@Immutable
+@Fluent
public final class ExtensionPublisherInner implements JsonSerializable {
/*
* The ID of the extension publisher.
@@ -29,7 +29,7 @@ public final class ExtensionPublisherInner implements JsonSerializable {
/*
* The ID of the extension type.
@@ -29,7 +29,7 @@ public final class ExtensionTypeInner implements JsonSerializable allowedFeatures) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayProperties.java
index a39d53e0f044..b83f7e506498 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -117,6 +117,14 @@ public GatewayProperties withAllowedFeatures(List allowedFeatures) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayUpdateProperties.java
index ce3efc56a876..98a1c16497c3 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/GatewayUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -48,6 +48,14 @@ public GatewayUpdateProperties withAllowedFeatures(List allowedFeatures)
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
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 02e9afcc2f75..52e000d3773e 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
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.hybridcompute.models.HybridComputePrivateLinkScopeProperties;
+import com.azure.resourcemanager.hybridcompute.models.PrivateLinkScopesResource;
import java.io.IOException;
import java.util.Map;
@@ -18,14 +18,14 @@
* An Azure Arc PrivateLinkScope definition.
*/
@Fluent
-public final class HybridComputePrivateLinkScopeInner extends Resource {
+public final class HybridComputePrivateLinkScopeInner extends PrivateLinkScopesResource {
/*
* Properties that define a Azure Arc PrivateLinkScope resource.
*/
private HybridComputePrivateLinkScopeProperties properties;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * The system meta data relating to this resource.
*/
private SystemData systemData;
@@ -71,7 +71,7 @@ public HybridComputePrivateLinkScopeInner withProperties(HybridComputePrivateLin
}
/**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ * Get the systemData property: The system meta data relating to this resource.
*
* @return the systemData value.
*/
@@ -127,6 +127,18 @@ public HybridComputePrivateLinkScopeInner withTags(Map tags) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseInner.java
index 00d47a6fc6ed..e073d341a48c 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -196,6 +196,17 @@ public LicenseInner withLicenseDetails(LicenseDetails licenseDetails) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmEsuProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmEsuProperties.java
index e8f53680d3dd..759c2c434f9a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmEsuProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmEsuProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -127,6 +127,18 @@ public String assignedLicenseImmutableId() {
return this.assignedLicenseImmutableId;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ if (esuKeys() != null) {
+ esuKeys().forEach(e -> e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmProductProfileProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmProductProfileProperties.java
index 054ad536f135..a167d6ffe88b 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmProductProfileProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileArmProductProfileProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -176,6 +176,17 @@ public LicenseProfileArmProductProfileProperties withProductFeatures(List e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileInner.java
index 55560564a644..f43ddcb4245e 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -342,6 +342,17 @@ public LicenseProfileInner withProductFeatures(List productFeatu
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewEsuPropertiesInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewEsuPropertiesInner.java
index 5b616b70a970..8c64f552737c 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewEsuPropertiesInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewEsuPropertiesInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -155,6 +155,21 @@ public String assignedLicenseImmutableId() {
return this.assignedLicenseImmutableId;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ if (assignedLicense() != null) {
+ assignedLicense().validate();
+ }
+ if (esuKeys() != null) {
+ esuKeys().forEach(e -> e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewInner.java
index 4b4e24bada39..b2271d17e5ec 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -122,6 +122,21 @@ public Boolean softwareAssuranceCustomer() {
return this.innerSoftwareAssurance() == null ? null : this.innerSoftwareAssurance().softwareAssuranceCustomer();
}
+ /**
+ * Set the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance
+ * agreement.
+ *
+ * @param softwareAssuranceCustomer the softwareAssuranceCustomer value to set.
+ * @return the LicenseProfileMachineInstanceViewInner object itself.
+ */
+ public LicenseProfileMachineInstanceViewInner withSoftwareAssuranceCustomer(Boolean softwareAssuranceCustomer) {
+ if (this.innerSoftwareAssurance() == null) {
+ this.innerSoftwareAssurance = new LicenseProfileMachineInstanceViewSoftwareAssurance();
+ }
+ this.innerSoftwareAssurance().withSoftwareAssuranceCustomer(softwareAssuranceCustomer);
+ return this;
+ }
+
/**
* Get the subscriptionStatus property: Indicates the subscription status of the product.
*
@@ -131,6 +146,21 @@ public LicenseProfileSubscriptionStatus subscriptionStatus() {
return this.innerProductProfile() == null ? null : this.innerProductProfile().subscriptionStatus();
}
+ /**
+ * Set the subscriptionStatus property: Indicates the subscription status of the product.
+ *
+ * @param subscriptionStatus the subscriptionStatus value to set.
+ * @return the LicenseProfileMachineInstanceViewInner object itself.
+ */
+ public LicenseProfileMachineInstanceViewInner
+ withSubscriptionStatus(LicenseProfileSubscriptionStatus subscriptionStatus) {
+ if (this.innerProductProfile() == null) {
+ this.innerProductProfile = new LicenseProfileArmProductProfileProperties();
+ }
+ this.innerProductProfile().withSubscriptionStatus(subscriptionStatus);
+ return this;
+ }
+
/**
* Get the productType property: Indicates the product type of the license.
*
@@ -140,6 +170,20 @@ public LicenseProfileProductType productType() {
return this.innerProductProfile() == null ? null : this.innerProductProfile().productType();
}
+ /**
+ * Set the productType property: Indicates the product type of the license.
+ *
+ * @param productType the productType value to set.
+ * @return the LicenseProfileMachineInstanceViewInner object itself.
+ */
+ public LicenseProfileMachineInstanceViewInner withProductType(LicenseProfileProductType productType) {
+ if (this.innerProductProfile() == null) {
+ this.innerProductProfile = new LicenseProfileArmProductProfileProperties();
+ }
+ this.innerProductProfile().withProductType(productType);
+ return this;
+ }
+
/**
* Get the enrollmentDate property: The timestamp in UTC when the user enrolls the feature.
*
@@ -194,6 +238,37 @@ public List productFeatures() {
return this.innerProductProfile() == null ? null : this.innerProductProfile().productFeatures();
}
+ /**
+ * Set the productFeatures property: The list of product features.
+ *
+ * @param productFeatures the productFeatures value to set.
+ * @return the LicenseProfileMachineInstanceViewInner object itself.
+ */
+ public LicenseProfileMachineInstanceViewInner withProductFeatures(List productFeatures) {
+ if (this.innerProductProfile() == null) {
+ this.innerProductProfile = new LicenseProfileArmProductProfileProperties();
+ }
+ this.innerProductProfile().withProductFeatures(productFeatures);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerSoftwareAssurance() != null) {
+ innerSoftwareAssurance().validate();
+ }
+ if (esuProfile() != null) {
+ esuProfile().validate();
+ }
+ if (innerProductProfile() != null) {
+ innerProductProfile().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewSoftwareAssurance.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewSoftwareAssurance.java
index be3842c03fcd..93f6ca1beeba 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewSoftwareAssurance.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileMachineInstanceViewSoftwareAssurance.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* The LicenseProfileMachineInstanceViewSoftwareAssurance model.
*/
-@Immutable
+@Fluent
public final class LicenseProfileMachineInstanceViewSoftwareAssurance
implements JsonSerializable {
/*
@@ -25,7 +25,7 @@ public final class LicenseProfileMachineInstanceViewSoftwareAssurance
/**
* Creates an instance of LicenseProfileMachineInstanceViewSoftwareAssurance class.
*/
- private LicenseProfileMachineInstanceViewSoftwareAssurance() {
+ public LicenseProfileMachineInstanceViewSoftwareAssurance() {
}
/**
@@ -38,6 +38,27 @@ public Boolean softwareAssuranceCustomer() {
return this.softwareAssuranceCustomer;
}
+ /**
+ * Set the softwareAssuranceCustomer property: Specifies if this machine is licensed as part of a Software Assurance
+ * agreement.
+ *
+ * @param softwareAssuranceCustomer the softwareAssuranceCustomer value to set.
+ * @return the LicenseProfileMachineInstanceViewSoftwareAssurance object itself.
+ */
+ public LicenseProfileMachineInstanceViewSoftwareAssurance
+ withSoftwareAssuranceCustomer(Boolean softwareAssuranceCustomer) {
+ this.softwareAssuranceCustomer = softwareAssuranceCustomer;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileProperties.java
index 4b00712f2372..a09cc40ca14b 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -296,6 +296,23 @@ public LicenseProfileProperties withProductFeatures(List product
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerSoftwareAssurance() != null) {
+ innerSoftwareAssurance().validate();
+ }
+ if (innerEsuProfile() != null) {
+ innerEsuProfile().validate();
+ }
+ if (innerProductProfile() != null) {
+ innerProductProfile().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfilePropertiesSoftwareAssurance.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfilePropertiesSoftwareAssurance.java
index a79e9c8867c5..37e1cde1a5b4 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfilePropertiesSoftwareAssurance.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfilePropertiesSoftwareAssurance.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -50,6 +50,14 @@ public LicenseProfilePropertiesSoftwareAssurance withSoftwareAssuranceCustomer(B
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileUpdateProperties.java
index 093bea7510ac..cafc22879b76 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/LicenseProfileUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -186,6 +186,23 @@ public LicenseProfileUpdateProperties withProductFeatures(List {
/*
* The overall success or failure status of the operation. It remains "InProgress" until the operation completes. At
@@ -33,7 +34,7 @@ public final class MachineAssessPatchesResultInner implements JsonSerializable UUID.fromString(nonNullReader.getString()));
} else if ("rebootPending".equals(fieldName)) {
deserializedMachineAssessPatchesResultInner.rebootPending
= reader.getNullable(JsonReader::getBoolean);
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 3a5b66745eb2..3e36535450d9 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -127,6 +127,17 @@ public MachineExtensionInner withTags(Map tags) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
index 61463f4d9010..9e5f0c31e83e 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineExtensionUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -237,6 +237,14 @@ public MachineExtensionUpdateProperties withProtectedSettings(Map e.validate());
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java
index 0a316849326a..7f4f51304335 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineInstallPatchesResultInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -104,7 +104,7 @@ public final class MachineInstallPatchesResultInner implements JsonSerializable<
/**
* Creates an instance of MachineInstallPatchesResultInner class.
*/
- private MachineInstallPatchesResultInner() {
+ public MachineInstallPatchesResultInner() {
}
/**
@@ -250,6 +250,14 @@ public ManagementError errorDetails() {
return this.errorDetails;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java
index 21885ef4f4b1..93cd81d5e3a4 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachinePropertiesInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -27,6 +27,8 @@
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
+import java.util.UUID;
/**
* Describes the properties of a hybrid machine.
@@ -111,7 +113,7 @@ public final class MachinePropertiesInner implements JsonSerializable e.validate());
+ }
+ if (networkProfile() != null) {
+ networkProfile().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
@@ -757,7 +803,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("agentUpgrade", this.agentUpgrade);
jsonWriter.writeJsonField("osProfile", this.osProfile);
jsonWriter.writeJsonField("licenseProfile", this.licenseProfile);
- jsonWriter.writeStringField("vmId", this.vmId);
+ jsonWriter.writeStringField("vmId", Objects.toString(this.vmId, null));
jsonWriter.writeStringField("clientPublicKey", this.clientPublicKey);
jsonWriter.writeStringField("identityKeyStore",
this.identityKeyStore == null ? null : this.identityKeyStore.toString());
@@ -820,7 +866,8 @@ public static MachinePropertiesInner fromJson(JsonReader jsonReader) throws IOEx
} else if ("agentVersion".equals(fieldName)) {
deserializedMachinePropertiesInner.agentVersion = reader.getString();
} else if ("vmId".equals(fieldName)) {
- deserializedMachinePropertiesInner.vmId = reader.getString();
+ deserializedMachinePropertiesInner.vmId
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
} else if ("displayName".equals(fieldName)) {
deserializedMachinePropertiesInner.displayName = reader.getString();
} else if ("machineFqdn".equals(fieldName)) {
@@ -839,7 +886,8 @@ public static MachinePropertiesInner fromJson(JsonReader jsonReader) throws IOEx
} else if ("osType".equals(fieldName)) {
deserializedMachinePropertiesInner.osType = reader.getString();
} else if ("vmUuid".equals(fieldName)) {
- deserializedMachinePropertiesInner.vmUuid = reader.getString();
+ deserializedMachinePropertiesInner.vmUuid
+ = reader.getNullable(nonNullReader -> UUID.fromString(nonNullReader.getString()));
} else if ("extensions".equals(fieldName)) {
List extensions
= reader.readArray(reader1 -> MachineExtensionInstanceView.fromJson(reader1));
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java
index 939a5abfa518..a882f089168a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -419,6 +419,17 @@ public MachineRunCommandInstanceView instanceView() {
return this.innerProperties() == null ? null : this.innerProperties().instanceView();
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java
index b97eb9cdc077..3cfc397f4311 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineRunCommandProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -373,6 +373,32 @@ public MachineRunCommandInstanceView instanceView() {
return this.instanceView;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (source() != null) {
+ source().validate();
+ }
+ if (parameters() != null) {
+ parameters().forEach(e -> e.validate());
+ }
+ if (protectedParameters() != null) {
+ protectedParameters().forEach(e -> e.validate());
+ }
+ if (outputBlobManagedIdentity() != null) {
+ outputBlobManagedIdentity().validate();
+ }
+ if (errorBlobManagedIdentity() != null) {
+ errorBlobManagedIdentity().validate();
+ }
+ if (instanceView() != null) {
+ instanceView().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
index 60eedee4d745..b233e51273d2 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/MachineUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -233,6 +233,26 @@ public MachineUpdateProperties withTpmEkCertificate(String tpmEkCertificate) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (locationData() != null) {
+ locationData().validate();
+ }
+ if (osProfile() != null) {
+ osProfile().validate();
+ }
+ if (cloudMetadata() != null) {
+ cloudMetadata().validate();
+ }
+ if (agentUpgrade() != null) {
+ agentUpgrade().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java
index 69bc7de300c5..0642bcea9b38 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkProfileInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -16,7 +16,7 @@
/**
* Describes the network information on this machine.
*/
-@Immutable
+@Fluent
public final class NetworkProfileInner implements JsonSerializable {
/*
* The list of network interfaces.
@@ -26,7 +26,7 @@ public final class NetworkProfileInner implements JsonSerializable networkInterfaces() {
return this.networkInterfaces;
}
+ /**
+ * Set the networkInterfaces property: The list of network interfaces.
+ *
+ * @param networkInterfaces the networkInterfaces value to set.
+ * @return the NetworkProfileInner object itself.
+ */
+ public NetworkProfileInner withNetworkInterfaces(List networkInterfaces) {
+ this.networkInterfaces = networkInterfaces;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (networkInterfaces() != null) {
+ networkInterfaces().forEach(e -> e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("networkInterfaces", this.networkInterfaces,
+ (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
index d4e812d1571b..9ce77df5b40e 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationInner.java
@@ -1,12 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -20,18 +19,13 @@
/**
* Properties that define a Network Security Perimeter resource.
*/
-@Immutable
+@Fluent
public final class NetworkSecurityPerimeterConfigurationInner extends ProxyResource {
/*
* Properties that define a Network Security Perimeter resource.
*/
private NetworkSecurityPerimeterConfigurationProperties innerProperties;
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy information.
- */
- private SystemData systemData;
-
/*
* The type of the resource.
*/
@@ -50,7 +44,7 @@ public final class NetworkSecurityPerimeterConfigurationInner extends ProxyResou
/**
* Creates an instance of NetworkSecurityPerimeterConfigurationInner class.
*/
- private NetworkSecurityPerimeterConfigurationInner() {
+ public NetworkSecurityPerimeterConfigurationInner() {
}
/**
@@ -62,15 +56,6 @@ private NetworkSecurityPerimeterConfigurationProperties 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 type property: The type of the resource.
*
@@ -130,6 +115,21 @@ public NetworkSecurityPerimeter networkSecurityPerimeter() {
return this.innerProperties() == null ? null : this.innerProperties().networkSecurityPerimeter();
}
+ /**
+ * Set the networkSecurityPerimeter property: The Network Security Perimeter associated with this configuration.
+ *
+ * @param networkSecurityPerimeter the networkSecurityPerimeter value to set.
+ * @return the NetworkSecurityPerimeterConfigurationInner object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationInner
+ withNetworkSecurityPerimeter(NetworkSecurityPerimeter networkSecurityPerimeter) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
+ }
+ this.innerProperties().withNetworkSecurityPerimeter(networkSecurityPerimeter);
+ return this;
+ }
+
/**
* Get the resourceAssociation property: The Resource Association.
*
@@ -139,6 +139,20 @@ public ResourceAssociation resourceAssociation() {
return this.innerProperties() == null ? null : this.innerProperties().resourceAssociation();
}
+ /**
+ * Set the resourceAssociation property: The Resource Association.
+ *
+ * @param resourceAssociation the resourceAssociation value to set.
+ * @return the NetworkSecurityPerimeterConfigurationInner object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationInner withResourceAssociation(ResourceAssociation resourceAssociation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
+ }
+ this.innerProperties().withResourceAssociation(resourceAssociation);
+ return this;
+ }
+
/**
* Get the profile property: Network Security Perimeter profile.
*
@@ -148,6 +162,31 @@ public NetworkSecurityPerimeterProfile profile() {
return this.innerProperties() == null ? null : this.innerProperties().profile();
}
+ /**
+ * Set the profile property: Network Security Perimeter profile.
+ *
+ * @param profile the profile value to set.
+ * @return the NetworkSecurityPerimeterConfigurationInner object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationInner withProfile(NetworkSecurityPerimeterProfile profile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkSecurityPerimeterConfigurationProperties();
+ }
+ this.innerProperties().withProfile(profile);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
@@ -184,8 +223,6 @@ public static NetworkSecurityPerimeterConfigurationInner fromJson(JsonReader jso
} else if ("properties".equals(fieldName)) {
deserializedNetworkSecurityPerimeterConfigurationInner.innerProperties
= NetworkSecurityPerimeterConfigurationProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedNetworkSecurityPerimeterConfigurationInner.systemData = SystemData.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
index 06935d2f6c99..e13764facac8 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationProperties.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -19,7 +19,7 @@
/**
* Properties that define a Network Security Perimeter resource.
*/
-@Immutable
+@Fluent
public final class NetworkSecurityPerimeterConfigurationProperties
implements JsonSerializable {
/*
@@ -52,7 +52,7 @@ public final class NetworkSecurityPerimeterConfigurationProperties
/**
* Creates an instance of NetworkSecurityPerimeterConfigurationProperties class.
*/
- private NetworkSecurityPerimeterConfigurationProperties() {
+ public NetworkSecurityPerimeterConfigurationProperties() {
}
/**
@@ -84,6 +84,18 @@ public NetworkSecurityPerimeter networkSecurityPerimeter() {
return this.networkSecurityPerimeter;
}
+ /**
+ * Set the networkSecurityPerimeter property: The Network Security Perimeter associated with this configuration.
+ *
+ * @param networkSecurityPerimeter the networkSecurityPerimeter value to set.
+ * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationProperties
+ withNetworkSecurityPerimeter(NetworkSecurityPerimeter networkSecurityPerimeter) {
+ this.networkSecurityPerimeter = networkSecurityPerimeter;
+ return this;
+ }
+
/**
* Get the resourceAssociation property: The Resource Association.
*
@@ -93,6 +105,18 @@ public ResourceAssociation resourceAssociation() {
return this.resourceAssociation;
}
+ /**
+ * Set the resourceAssociation property: The Resource Association.
+ *
+ * @param resourceAssociation the resourceAssociation value to set.
+ * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationProperties
+ withResourceAssociation(ResourceAssociation resourceAssociation) {
+ this.resourceAssociation = resourceAssociation;
+ return this;
+ }
+
/**
* Get the profile property: Network Security Perimeter profile.
*
@@ -102,6 +126,37 @@ public NetworkSecurityPerimeterProfile profile() {
return this.profile;
}
+ /**
+ * Set the profile property: Network Security Perimeter profile.
+ *
+ * @param profile the profile value to set.
+ * @return the NetworkSecurityPerimeterConfigurationProperties object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationProperties withProfile(NetworkSecurityPerimeterProfile profile) {
+ this.profile = profile;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (provisioningIssues() != null) {
+ provisioningIssues().forEach(e -> e.validate());
+ }
+ if (networkSecurityPerimeter() != null) {
+ networkSecurityPerimeter().validate();
+ }
+ if (resourceAssociation() != null) {
+ resourceAssociation().validate();
+ }
+ if (profile() != null) {
+ profile().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationReconcileResultInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationReconcileResultInner.java
index 94435f358385..a04eb979391c 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationReconcileResultInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/NetworkSecurityPerimeterConfigurationReconcileResultInner.java
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -14,7 +14,7 @@
/**
* Result of network security perimeter configurations.
*/
-@Immutable
+@Fluent
public final class NetworkSecurityPerimeterConfigurationReconcileResultInner
implements JsonSerializable {
/*
@@ -25,7 +25,7 @@ public final class NetworkSecurityPerimeterConfigurationReconcileResultInner
/**
* Creates an instance of NetworkSecurityPerimeterConfigurationReconcileResultInner class.
*/
- private NetworkSecurityPerimeterConfigurationReconcileResultInner() {
+ public NetworkSecurityPerimeterConfigurationReconcileResultInner() {
}
/**
@@ -37,12 +37,32 @@ public String location() {
return this.location;
}
+ /**
+ * Set the location property: The URL of the resource used to check the status of the asynchronous operation.
+ *
+ * @param location the location value to set.
+ * @return the NetworkSecurityPerimeterConfigurationReconcileResultInner object itself.
+ */
+ public NetworkSecurityPerimeterConfigurationReconcileResultInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", this.location);
return jsonWriter.writeEndObject();
}
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 3cef21911f8c..93d01cea6c22 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// 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.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* Describes the properties of a Compute Operation value.
*/
-@Immutable
+@Fluent
public final class OperationValueInner implements JsonSerializable {
/*
* The origin of the compute operation.
@@ -40,7 +40,7 @@ public final class OperationValueInner implements JsonSerializable {
/*
@@ -39,7 +39,7 @@ public final class PrivateLinkScopeValidationDetailsInner
/**
* Creates an instance of PrivateLinkScopeValidationDetailsInner class.
*/
- private PrivateLinkScopeValidationDetailsInner() {
+ public PrivateLinkScopeValidationDetailsInner() {
}
/**
@@ -61,6 +61,18 @@ public PublicNetworkAccessType publicNetworkAccess() {
return this.publicNetworkAccess;
}
+ /**
+ * Set the publicNetworkAccess property: Indicates whether machines associated with the private link scope can also
+ * use public Azure Arc service endpoints.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the PrivateLinkScopeValidationDetailsInner object itself.
+ */
+ public PrivateLinkScopeValidationDetailsInner withPublicNetworkAccess(PublicNetworkAccessType publicNetworkAccess) {
+ this.publicNetworkAccess = publicNetworkAccess;
+ return this;
+ }
+
/**
* Get the connectionDetails property: List of Private Endpoint Connection details.
*
@@ -70,6 +82,28 @@ public List connectionDetails() {
return this.connectionDetails;
}
+ /**
+ * Set the connectionDetails property: List of Private Endpoint Connection details.
+ *
+ * @param connectionDetails the connectionDetails value to set.
+ * @return the PrivateLinkScopeValidationDetailsInner object itself.
+ */
+ public PrivateLinkScopeValidationDetailsInner withConnectionDetails(List connectionDetails) {
+ this.connectionDetails = connectionDetails;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (connectionDetails() != null) {
+ connectionDetails().forEach(e -> e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProductProfileUpdateProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProductProfileUpdateProperties.java
index 64ec031457a5..2e7075fac936 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProductProfileUpdateProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProductProfileUpdateProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -102,6 +102,17 @@ public ProductProfileUpdateProperties withProductFeatures(List e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProvisioningIssueProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProvisioningIssueProperties.java
index 1e870215d0d6..1df9478680a2 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProvisioningIssueProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/ProvisioningIssueProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -48,7 +48,7 @@ public final class ProvisioningIssueProperties implements JsonSerializable suggestedAccessRules() {
return this.suggestedAccessRules;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (suggestedAccessRules() != null) {
+ suggestedAccessRules().forEach(e -> e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsGatewayProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsGatewayProperties.java
index bd6132c12aa8..8f3004fbf030 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsGatewayProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsGatewayProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -47,6 +47,14 @@ public SettingsGatewayProperties withGatewayResourceId(String gatewayResourceId)
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsInner.java
index ab0dead41428..c49b5590bc49 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -13,7 +13,7 @@
import java.io.IOException;
/**
- * Concrete proxy resource types can be created by aliasing this type using a specific property type.
+ * The Settings model.
*/
@Fluent
public final class SettingsInner extends ProxyResource {
@@ -128,6 +128,17 @@ public SettingsInner withGatewayResourceId(String gatewayResourceId) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsProperties.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsProperties.java
index 9ade32a8a4f2..9f55875daaeb 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsProperties.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SettingsProperties.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -73,6 +73,17 @@ public SettingsProperties withGatewayResourceId(String gatewayResourceId) {
return this;
}
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerGatewayProperties() != null) {
+ innerGatewayProperties().validate();
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SetupExtensionRequestInner.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SetupExtensionRequestInner.java
index 4afe89e1b4cc..d1009f4e73c9 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SetupExtensionRequestInner.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/SetupExtensionRequestInner.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.fluent.models;
@@ -49,6 +49,17 @@ public SetupExtensionRequestInner withExtensions(List e.validate());
+ }
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/package-info.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/package-info.java
index 34fbc5316ff2..ab7dfad9a719 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/package-info.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/models/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for HybridCompute.
- * Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management.
+ * Package containing the inner data models for HybridComputeManagementClient.
+ * The Hybrid Compute Management Client.
*/
package com.azure.resourcemanager.hybridcompute.fluent.models;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/package-info.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/package-info.java
index 761288c75dd5..53a0fc869a14 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/package-info.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/fluent/package-info.java
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for HybridCompute.
- * Azure Arc( Servers and K8s Clusters) API reference for Private Link's Scopes management.
+ * Package containing the service clients for HybridComputeManagementClient.
+ * The Hybrid Compute Management Client.
*/
package com.azure.resourcemanager.hybridcompute.fluent;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sClientImpl.java
index 3e1437d51bb4..2c3f8c2ef17a 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
@@ -25,9 +25,10 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.fluent.ExtensionMetadataV2sClient;
import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionValueV2Inner;
-import com.azure.resourcemanager.hybridcompute.implementation.models.ExtensionValueListResultV2;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValueListResultV2;
import reactor.core.publisher.Mono;
/**
@@ -59,14 +60,14 @@ public final class ExtensionMetadataV2sClientImpl implements ExtensionMetadataV2
* The interface defining all the services for HybridComputeManagementClientExtensionMetadataV2s to be used by the
* proxy service to perform REST calls.
*/
- @Host("{endpoint}")
+ @Host("{$host}")
@ServiceInterface(name = "HybridComputeManagementClientExtensionMetadataV2s")
public interface ExtensionMetadataV2sService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("endpoint") String endpoint,
+ Mono> get(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("location") String location,
@PathParam("publisher") String publisher, @PathParam("extensionType") String extensionType,
@PathParam("version") String version, @HeaderParam("Accept") String accept, Context context);
@@ -75,7 +76,7 @@ Mono> get(@HostParam("endpoint") String endpoint
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getSync(@HostParam("endpoint") String endpoint,
+ Response getSync(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("location") String location,
@PathParam("publisher") String publisher, @PathParam("extensionType") String extensionType,
@PathParam("version") String version, @HeaderParam("Accept") String accept, Context context);
@@ -84,7 +85,7 @@ Response getSync(@HostParam("endpoint") String endpoint,
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("endpoint") String endpoint,
+ Mono> list(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("location") String location,
@PathParam("publisher") String publisher, @PathParam("extensionType") String extensionType,
@HeaderParam("Accept") String accept, Context context);
@@ -93,7 +94,7 @@ Mono> list(@HostParam("endpoint") String en
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("endpoint") String endpoint,
+ Response listSync(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("location") String location,
@PathParam("publisher") String publisher, @PathParam("extensionType") String extensionType,
@HeaderParam("Accept") String accept, Context context);
@@ -103,7 +104,7 @@ Response listSync(@HostParam("endpoint") String endp
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -111,14 +112,14 @@ Mono> listNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
@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 location The name of Azure region.
* @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.
@@ -131,6 +132,22 @@ Response listNextSync(
@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 (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(), location,
@@ -141,7 +158,7 @@ private Mono> getWithResponseAsync(String locati
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -161,7 +178,7 @@ private Mono getAsync(String location, String publisher,
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -175,6 +192,27 @@ private Mono getAsync(String location, String publisher,
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String location, String publisher, String extensionType,
String version, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
final String accept = "application/json";
return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), location, publisher,
extensionType, version, accept, context);
@@ -183,7 +221,7 @@ public Response getWithResponse(String location, String p
/**
* Gets an Extension Metadata based on location, publisher, extensionType and version.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -200,7 +238,7 @@ public ExtensionValueV2Inner get(String location, String publisher, String exten
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -212,6 +250,19 @@ public ExtensionValueV2Inner get(String location, String publisher, String exten
@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 (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(), location,
@@ -224,7 +275,7 @@ private Mono> listSinglePageAsync(String lo
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -242,7 +293,7 @@ private PagedFlux listAsync(String location, String publi
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -253,6 +304,23 @@ private PagedFlux listAsync(String location, String publi
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String location, String publisher,
String extensionType) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(),
this.client.getApiVersion(), location, publisher, extensionType, accept, Context.NONE);
@@ -263,7 +331,7 @@ private PagedResponse listSinglePage(String location, Str
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -275,6 +343,23 @@ private PagedResponse listSinglePage(String location, Str
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String location, String publisher, String extensionType,
Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(),
this.client.getApiVersion(), location, publisher, extensionType, accept, context);
@@ -285,7 +370,7 @@ private PagedResponse listSinglePage(String location, Str
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -303,7 +388,7 @@ public PagedIterable list(String location, String publish
/**
* Gets all Extension versions based on location, publisher, extensionType.
*
- * @param location The location of the Extension being received.
+ * @param location The name of Azure region.
* @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.
@@ -327,11 +412,18 @@ public PagedIterable list(String location, String publish
* @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}.
+ * @return the List Extension Metadata response along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listNextSinglePageAsync(String nextLink) {
+ if (nextLink == null) {
+ return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
final String accept = "application/json";
return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
.>map(res -> new PagedResponseBase<>(res.getRequest(),
@@ -346,10 +438,19 @@ private Mono> listNextSinglePageAsync(Strin
* @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}.
+ * @return the List Extension Metadata response along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listNextSinglePage(String nextLink) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
final String accept = "application/json";
Response res
= service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
@@ -365,14 +466,25 @@ private PagedResponse listNextSinglePage(String nextLink)
* @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}.
+ * @return the List Extension Metadata response along with {@link PagedResponse}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ if (nextLink == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));
+ }
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
final String accept = "application/json";
Response res
= service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
res.getValue().nextLink(), null);
}
+
+ private static final ClientLogger LOGGER = new ClientLogger(ExtensionMetadataV2sClientImpl.class);
}
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sImpl.java
index 3a01065ad512..cd18378c9e20 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionMetadataV2sImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
@@ -31,8 +31,12 @@ public Response getWithResponse(String location, String publis
String version, Context context) {
Response inner
= this.serviceClient().getWithResponse(location, publisher, extensionType, version, context);
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ExtensionValueV2Impl(inner.getValue(), this.manager()));
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ExtensionValueV2Impl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
}
public ExtensionValueV2 get(String location, String publisher, String extensionType, String version) {
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
index a57f9e6561e1..29555b3d9751 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
@@ -25,9 +25,10 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+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.implementation.models.ExtensionValueListResult;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionValueListResult;
import reactor.core.publisher.Mono;
/**
@@ -59,14 +60,14 @@ public final class ExtensionMetadatasClientImpl implements ExtensionMetadatasCli
* The interface defining all the services for HybridComputeManagementClientExtensionMetadatas to be used by the
* proxy service to perform REST calls.
*/
- @Host("{endpoint}")
+ @Host("{$host}")
@ServiceInterface(name = "HybridComputeManagementClientExtensionMetadatas")
public interface ExtensionMetadatasService {
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("endpoint") String endpoint,
+ 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,
@@ -76,7 +77,7 @@ Mono> get(@HostParam("endpoint") String endpoint,
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getSync(@HostParam("endpoint") String endpoint,
+ Response getSync(@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,
@@ -86,7 +87,7 @@ Response getSync(@HostParam("endpoint") String endpoint,
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("endpoint") String endpoint,
+ 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);
@@ -95,25 +96,10 @@ Mono> list(@HostParam("endpoint") String endp
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("endpoint") String endpoint,
+ Response listSync(@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);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
}
/**
@@ -132,6 +118,26 @@ Response listNextSync(@PathParam(value = "nextLink", e
@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(),
@@ -176,6 +182,32 @@ private Mono getAsync(String location, String publisher, St
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getWithResponse(String location, String publisher, String extensionType,
String version, Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
+ if (version == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter version is required and cannot be null."));
+ }
final String accept = "application/json";
return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
location, publisher, extensionType, version, accept, context);
@@ -213,12 +245,29 @@ public ExtensionValueInner get(String location, String publisher, String extensi
@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(), res.getValue().nextLink(), null))
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), null, null))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
@@ -236,8 +285,7 @@ private Mono> listSinglePageAsync(String loca
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String location, String publisher, String extensionType) {
- return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType),
- nextLink -> listNextSinglePageAsync(nextLink));
+ return new PagedFlux<>(() -> listSinglePageAsync(location, publisher, extensionType));
}
/**
@@ -253,12 +301,34 @@ private PagedFlux listAsync(String location, String publish
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String location, String publisher, String extensionType) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
final String accept = "application/json";
Response res
= service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
location, publisher, extensionType, accept, Context.NONE);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ null, null);
}
/**
@@ -276,12 +346,34 @@ private PagedResponse listSinglePage(String location, Strin
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String location, String publisher, String extensionType,
Context context) {
+ if (this.client.getEndpoint() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (location == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter location is required and cannot be null."));
+ }
+ if (publisher == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter publisher is required and cannot be null."));
+ }
+ if (extensionType == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Parameter extensionType is required and cannot be null."));
+ }
final String accept = "application/json";
Response res
= service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
location, publisher, extensionType, accept, context);
return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
+ null, null);
}
/**
@@ -298,8 +390,7 @@ private PagedResponse listSinglePage(String location, Strin
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String location, String publisher, String extensionType) {
- return new PagedIterable<>(() -> listSinglePage(location, publisher, extensionType),
- nextLink -> listNextSinglePage(nextLink));
+ return new PagedIterable<>(() -> listSinglePage(location, publisher, extensionType));
}
/**
@@ -318,63 +409,8 @@ public PagedIterable list(String location, String publisher
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String location, String publisher, String extensionType,
Context context) {
- return new PagedIterable<>(() -> listSinglePage(location, publisher, extensionType, context),
- nextLink -> listNextSinglePage(nextLink, context));
+ return new PagedIterable<>(() -> listSinglePage(location, publisher, extensionType, context));
}
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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> listNextSinglePageAsync(String nextLink) {
- final String accept = "application/json";
- return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context))
- .>map(res -> new PagedResponseBase<>(res.getRequest(),
- res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listNextSinglePage(String nextLink) {
- final String accept = "application/json";
- Response res
- = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * Get the next page of items.
- *
- * @param nextLink The URL to get the next list of items.
- * @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}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listNextSinglePage(String nextLink, Context context) {
- final String accept = "application/json";
- Response res
- = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
+ private static final ClientLogger LOGGER = new ClientLogger(ExtensionMetadatasClientImpl.class);
}
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
index 38911baaad18..1905e07ebe16 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
@@ -31,8 +31,12 @@ public Response getWithResponse(String location, String publishe
String version, Context context) {
Response inner
= this.serviceClient().getWithResponse(location, publisher, extensionType, version, context);
- return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
- new ExtensionValueImpl(inner.getValue(), this.manager()));
+ 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) {
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublisherImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublisherImpl.java
index 5bf446eec4ee..90478e4f11f3 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublisherImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublisherImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
diff --git a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublishersClientImpl.java b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublishersClientImpl.java
index be8389dadc51..bc5d46923342 100644
--- a/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublishersClientImpl.java
+++ b/sdk/hybridcompute/azure-resourcemanager-hybridcompute/src/main/java/com/azure/resourcemanager/hybridcompute/implementation/ExtensionPublishersClientImpl.java
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
+// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybridcompute.implementation;
@@ -25,9 +25,10 @@
import com.azure.core.management.exception.ManagementException;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.hybridcompute.fluent.ExtensionPublishersClient;
import com.azure.resourcemanager.hybridcompute.fluent.models.ExtensionPublisherInner;
-import com.azure.resourcemanager.hybridcompute.implementation.models.ExtensionPublisherListResult;
+import com.azure.resourcemanager.hybridcompute.models.ExtensionPublisherListResult;
import reactor.core.publisher.Mono;
/**
@@ -59,14 +60,14 @@ public final class ExtensionPublishersClientImpl implements ExtensionPublishersC
* The interface defining all the services for HybridComputeManagementClientExtensionPublishers to be used by the
* proxy service to perform REST calls.
*/
- @Host("{endpoint}")
+ @Host("{$host}")
@ServiceInterface(name = "HybridComputeManagementClientExtensionPublishers")
public interface ExtensionPublishersService {
@Headers({ "Content-Type: application/json" })
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("endpoint") String endpoint,
+ Mono> list(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("location") String location,
@HeaderParam("Accept") String accept, Context context);
@@ -74,7 +75,7 @@ Mono> list(@HostParam("endpoint") String
@Get("/providers/Microsoft.HybridCompute/locations/{location}/publishers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response