diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/CHANGELOG.md b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/CHANGELOG.md
index 713adde255d7b..2ad55261df5b4 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/CHANGELOG.md
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/CHANGELOG.md
@@ -1,14 +1,277 @@
# Release History
-## 2.1.0-beta.1 (Unreleased)
+## 2.1.0-beta.1 (2026-10-30)
-### Features Added
+- Azure Resource Manager Managed Network Fabric client library for Java. This package contains Microsoft Azure SDK for Managed Network Fabric Management SDK. Self service experience for Azure Network Fabric API. Package api-version 2026-01-15-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ValidateConfigurationResponse` was removed
+
+#### `models.L2IsolationDomains` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String)`
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.NetworkTapRules` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String)`
+
+#### `models.L3IsolationDomain` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration()` -> `models.ValidateConfigurationResponseV2 validateConfiguration()`
+* `models.ValidateConfigurationResponse validateConfiguration(com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(com.azure.core.util.Context)`
+
+#### `models.NetworkFabrics` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,models.ValidateConfigurationProperties,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,models.ValidateConfigurationProperties,com.azure.core.util.Context)`
+* `refreshConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,models.ValidateConfigurationProperties)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,models.ValidateConfigurationProperties)`
+
+#### `models.AccessControlList` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(com.azure.core.util.Context)`
+* `models.ValidateConfigurationResponse validateConfiguration()` -> `models.ValidateConfigurationResponseV2 validateConfiguration()`
+
+#### `models.NetworkTapRule` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(com.azure.core.util.Context)`
+* `models.ValidateConfigurationResponse validateConfiguration()` -> `models.ValidateConfigurationResponseV2 validateConfiguration()`
+
+#### `models.RoutePolicy` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(com.azure.core.util.Context)`
+* `models.ValidateConfigurationResponse validateConfiguration()` -> `models.ValidateConfigurationResponseV2 validateConfiguration()`
+
+#### `models.RoutePolicies` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String)`
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.L2IsolationDomain` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration()` -> `models.ValidateConfigurationResponseV2 validateConfiguration()`
+* `models.ValidateConfigurationResponse validateConfiguration(com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(com.azure.core.util.Context)`
+
+#### `models.AccessControlLists` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String)`
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)`
+
+#### `models.NetworkFabric` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(models.ValidateConfigurationProperties,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(models.ValidateConfigurationProperties,com.azure.core.util.Context)`
+* `refreshConfiguration(com.azure.core.util.Context)` was removed
+* `models.ValidateConfigurationResponse validateConfiguration(models.ValidateConfigurationProperties)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(models.ValidateConfigurationProperties)`
+
+#### `models.L3IsolationDomains` was modified
+
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String,com.azure.core.util.Context)`
+* `models.ValidateConfigurationResponse validateConfiguration(java.lang.String,java.lang.String)` -> `models.ValidateConfigurationResponseV2 validateConfiguration(java.lang.String,java.lang.String)`
+
+### Features Added
+
+* `models.SecretArchiveSettings` was added
+
+* `models.PatchInfrastructureNetworks` was added
+
+* `models.SecretArchivePatchSettings` was added
+
+* `models.OperationalState` was added
+
+* `models.PreUpgradeProfileProperties` was added
+
+* `models.PatchInfrastructureServices` was added
+
+* `models.PreUpgradeProfilePatchProperties` was added
+
+* `models.PostUpgradeProfileProperties` was added
+
+* `models.ManagementMode` was added
+
+* `models.EdgeConnectorPatchableProperties` was added
+
+* `models.InfraNetwork` was added
+
+* `models.EdgeConnector$UpdateStages` was added
+
+* `models.GenerateBaseConfiguration` was added
+
+* `models.EdgeConnectorProperties` was added
+
+* `models.ValidateConfigurationResponseProperties` was added
+
+* `models.InfraNetworkOptionalIp` was added
+
+* `models.Fabric$DefinitionStages` was added
+
+* `models.RefreshConfigurationRequestProperties` was added
+
+* `models.PatchInfraNetwork` was added
+
+* `models.EdgeConnector$Update` was added
+
+* `models.ValidateConfigurationResponseV2` was added
+
+* `models.VmProfile` was added
+
+* `models.Fabric$UpdateStages` was added
+
+* `models.ConfigurationRegenerationType` was added
+
+* `models.EdgeConnector` was added
+
+* `models.EdgeConnector$DefinitionStages` was added
+
+* `models.Fabric$Update` was added
+
+* `models.Fabric` was added
+
+* `models.Fabric$Definition` was added
+
+* `models.UpgradeProfileProperties` was added
+
+* `models.EdgeConnector$Definition` was added
+
+* `models.PlatformProxy` was added
+
+* `models.EdgeConnectors` was added
+
+* `models.PostUpgradeProfilePatchProperties` was added
+
+* `models.FabricPatchableProperties` was added
+
+* `models.Fabrics` was added
+
+* `models.ConnectivityModel` was added
+
+* `models.FabricPatch` was added
+
+* `models.NetworkFabricRefreshDeviceTypes` was added
+
+* `models.ControllerType` was added
+
+* `models.PatchPlatformProxy` was added
+
+* `models.InfrastructureServices` was added
+
+* `models.InfrastructureNetworks` was added
+
+* `models.UpgradeProfilePropertiesPatchProperties` was added
+
+* `models.NetworkPacketBrokerPatchProperties` was added
+
+* `models.OperationPolicy` was added
+
+* `models.FabricProperties` was added
+
+* `models.EdgeConnectorPatch` was added
+
+#### `models.NetworkPacketBroker$Definition` was modified
+
+* `withSourceNetworkTapRuleId(java.lang.String)` was added
+
+#### `models.NetworkBootstrapInterface` was modified
+
+* `operationalState()` was added
+
+#### `models.NetworkBootstrapDevice$Definition` was modified
+
+* `withControlPlaneAcls(java.util.List)` was added
+
+#### `models.NetworkInterface` was modified
+
+* `operationalState()` was added
+
+#### `ManagedNetworkFabricManager` was modified
+
+* `edgeConnectors()` was added
+* `fabrics()` was added
+
+#### `models.ConfigurationState` was modified
+
+* `COMMIT_STAGED` was added
+* `COMMIT_ROLLBACK_FAILED` was added
+* `COMMIT_STAGE_FAILED` was added
+
+#### `models.NetworkBootstrapDevicePatch` was modified
+
+* `withControlPlaneAcls(java.util.List)` was added
+* `controlPlaneAcls()` was added
+
+#### `models.NetworkFabricController$Definition` was modified
+
+* `withVmProfile(models.VmProfile)` was added
+
+#### `models.NetworkBootstrapDevice$Update` was modified
+
+* `withControlPlaneAcls(java.util.List)` was added
+
+#### `models.NetworkFabric$Definition` was modified
+
+* `withUpgradeProfile(java.util.List)` was added
+* `withSecretArchiveSettings(models.SecretArchiveSettings)` was added
+
+#### `models.NetworkFabrics` was modified
+
+* `refreshConfiguration(java.lang.String,java.lang.String,models.RefreshConfigurationRequestProperties,com.azure.core.util.Context)` was added
+
+#### `models.DeviceRole` was modified
+
+* `TERMINAL_SERVER` was added
+
+#### `models.NetworkDevice` was modified
+
+* `operationalState()` was added
+
+#### `models.NetworkFabricController` was modified
+
+* `vmProfile()` was added
+* `operationalState()` was added
+
+#### `models.NetworkPacketBrokerPatch` was modified
+
+* `withProperties(models.NetworkPacketBrokerPatchProperties)` was added
+* `properties()` was added
+
+#### `models.NetworkPacketBroker$Update` was modified
+
+* `withProperties(models.NetworkPacketBrokerPatchProperties)` was added
+
+#### `models.NetworkFabricPatch` was modified
+
+* `secretArchiveSettings()` was added
+* `upgradeProfile()` was added
+* `withSecretArchiveSettings(models.SecretArchivePatchSettings)` was added
+* `withUpgradeProfile(java.util.List)` was added
+
+#### `models.NetworkFabric` was modified
+
+* `upgradeProfile()` was added
+* `refreshConfiguration(models.RefreshConfigurationRequestProperties,com.azure.core.util.Context)` was added
+* `networkBootstrapDeviceId()` was added
+* `operationalState()` was added
+* `secretArchiveSettings()` was added
+
+#### `models.NetworkFabric$Update` was modified
+
+* `withUpgradeProfileForUpdate(java.util.List)` was added
+* `withSecretArchiveSettings(models.SecretArchivePatchSettings)` was added
+
+#### `models.NetworkBootstrapDevice` was modified
+
+* `controlPlaneAcls()` was added
+* `secretRotationStatus()` was added
+* `operationalState()` was added
+
+#### `models.NeighborGroup` was modified
+
+* `administrativeState()` was added
+
+#### `models.NetworkPacketBroker` was modified
-### Other Changes
+* `sourceNetworkTapRuleId()` was added
## 2.0.0 (2026-06-03)
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/README.md b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/README.md
index c8438f527363d..e9eb4580c1e9e 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/README.md
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Managed Network Fabric client library for Java.
-This package contains Microsoft Azure SDK for Managed Network Fabric Management SDK. Self service experience for Azure Network Fabric API. Package api-version 2025-07-15. 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 Managed Network Fabric Management SDK. Self service experience for Azure Network Fabric API. Package api-version 2026-01-15-preview. 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-managednetworkfabric
- 2.0.0
+ 2.1.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/SAMPLE.md b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/SAMPLE.md
index c67bce6e1e7bb..9ac02ba36db91 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/SAMPLE.md
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/SAMPLE.md
@@ -13,6 +13,15 @@
- [UpdateAdministrativeState](#accesscontrollists_updateadministrativestate)
- [ValidateConfiguration](#accesscontrollists_validateconfiguration)
+## EdgeConnectors
+
+- [Create](#edgeconnectors_create)
+- [Delete](#edgeconnectors_delete)
+- [GetByResourceGroup](#edgeconnectors_getbyresourcegroup)
+- [List](#edgeconnectors_list)
+- [ListByResourceGroup](#edgeconnectors_listbyresourcegroup)
+- [Update](#edgeconnectors_update)
+
## ExternalNetworks
- [Create](#externalnetworks_create)
@@ -24,6 +33,15 @@
- [UpdateBfdAdministrativeState](#externalnetworks_updatebfdadministrativestate)
- [UpdateStaticRouteBfdAdministrativeState](#externalnetworks_updatestaticroutebfdadministrativestate)
+## Fabrics
+
+- [Create](#fabrics_create)
+- [Delete](#fabrics_delete)
+- [GetByResourceGroup](#fabrics_getbyresourcegroup)
+- [List](#fabrics_list)
+- [ListByResourceGroup](#fabrics_listbyresourcegroup)
+- [Update](#fabrics_update)
+
## InternalNetworks
- [Create](#internalnetworks_create)
@@ -338,7 +356,7 @@ import java.util.Map;
*/
public final class AccessControlListsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Create.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Create.json
*/
/**
* Sample code: AccessControlLists_Create_MaximumSet_Gen.
@@ -403,7 +421,7 @@ public final class AccessControlListsCreateSamples {
}
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Create_ControlPlaneAcl.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Create_ControlPlaneAcl.json
*/
/**
* Sample code: AccessControlLists_Create_MaximumSet_Gen - generated by [MaximumSet] rule.
@@ -468,7 +486,7 @@ public final class AccessControlListsCreateSamples {
*/
public final class AccessControlListsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Delete.json
*/
/**
* Sample code: AccessControlLists_Delete_MaximumSet_Gen.
@@ -490,7 +508,7 @@ public final class AccessControlListsDeleteSamples {
*/
public final class AccessControlListsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Get.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Get.json
*/
/**
* Sample code: AccessControlLists_Get_MaximumSet_Gen.
@@ -513,7 +531,7 @@ public final class AccessControlListsGetByResourceGroupSamples {
*/
public final class AccessControlListsListSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_ListBySubscription.json
*/
/**
* Sample code: AccessControlLists_ListBySubscription_MaximumSet_Gen.
@@ -535,7 +553,7 @@ public final class AccessControlListsListSamples {
*/
public final class AccessControlListsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_ListByResourceGroup.json
*/
/**
* Sample code: AccessControlLists_ListByResourceGroup_MaximumSet_Gen.
@@ -557,7 +575,7 @@ public final class AccessControlListsListByResourceGroupSamples {
*/
public final class AccessControlListsResyncSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Resync.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Resync.json
*/
/**
* Sample code: AccessControlLists_Resync_MaximumSet_Gen.
@@ -612,7 +630,7 @@ import java.util.Map;
*/
public final class AccessControlListsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_Update.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_Update.json
*/
/**
* Sample code: AccessControlLists_Update_MaximumSet_Gen.
@@ -701,7 +719,7 @@ import java.util.Arrays;
*/
public final class AccessControlListsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_UpdateAdministrativeState.json
*/
/**
* Sample code: AccessControlLists_UpdateAdministrativeState_MaximumSet_Gen.
@@ -726,7 +744,7 @@ public final class AccessControlListsUpdateAdministrativeStateSamples {
*/
public final class AccessControlListsValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/AccessControlLists_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/AccessControlLists_ValidateConfiguration.json
*/
/**
* Sample code: AccessControlLists_ValidateConfiguration_MaximumSet_Gen.
@@ -741,6 +759,186 @@ public final class AccessControlListsValidateConfigurationSamples {
}
```
+### EdgeConnectors_Create
+
+```java
+import com.azure.resourcemanager.managednetworkfabric.models.ConnectivityModel;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EdgeConnectors Create.
+ */
+public final class EdgeConnectorsCreateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_Create.json
+ */
+ /**
+ * Sample code: EdgeConnectors_Create_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsCreateMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.edgeConnectors()
+ .define("example-edgeConnector")
+ .withRegion("eastus")
+ .withExistingResourceGroup("example-rg")
+ .withProperties(
+ new EdgeConnectorProperties().withConnectivityModel(ConnectivityModel.DIRECT).withVersion("1.0.0"))
+ .withTags(mapOf("environment", "production", "site", "factory-floor"))
+ .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;
+ }
+}
+```
+
+### EdgeConnectors_Delete
+
+```java
+/**
+ * Samples for EdgeConnectors Delete.
+ */
+public final class EdgeConnectorsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_Delete.json
+ */
+ /**
+ * Sample code: EdgeConnectors_Delete_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsDeleteMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.edgeConnectors().delete("example-rg", "example-edgeConnector", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeConnectors_GetByResourceGroup
+
+```java
+/**
+ * Samples for EdgeConnectors GetByResourceGroup.
+ */
+public final class EdgeConnectorsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_Get.json
+ */
+ /**
+ * Sample code: EdgeConnectors_Get_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsGetMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.edgeConnectors()
+ .getByResourceGroupWithResponse("example-rg", "example-edgeConnector", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeConnectors_List
+
+```java
+/**
+ * Samples for EdgeConnectors List.
+ */
+public final class EdgeConnectorsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_ListBySubscription.json
+ */
+ /**
+ * Sample code: EdgeConnectors_ListBySubscription_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsListBySubscriptionMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.edgeConnectors().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeConnectors_ListByResourceGroup
+
+```java
+/**
+ * Samples for EdgeConnectors ListByResourceGroup.
+ */
+public final class EdgeConnectorsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: EdgeConnectors_ListByResourceGroup_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsListByResourceGroupMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.edgeConnectors().listByResourceGroup("example-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EdgeConnectors_Update
+
+```java
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnector;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorPatchableProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EdgeConnectors Update.
+ */
+public final class EdgeConnectorsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/EdgeConnectors_Update.json
+ */
+ /**
+ * Sample code: EdgeConnectors_Update_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void edgeConnectorsUpdateMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ EdgeConnector resource = manager.edgeConnectors()
+ .getByResourceGroupWithResponse("example-rg", "example-edgeConnector", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf("environment", "staging"))
+ .withProperties(new EdgeConnectorPatchableProperties().withVersion("1.1.0"))
+ .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;
+ }
+}
+```
+
### ExternalNetworks_Create
```java
@@ -767,7 +965,7 @@ import java.util.Arrays;
*/
public final class ExternalNetworksCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_Create.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_Create.json
*/
/**
* Sample code: ExternalNetworks_Create_MaximumSet_Gen.
@@ -836,7 +1034,7 @@ public final class ExternalNetworksCreateSamples {
*/
public final class ExternalNetworksDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_Delete.json
*/
/**
* Sample code: ExternalNetworks_Delete_MaximumSet_Gen.
@@ -859,7 +1057,7 @@ public final class ExternalNetworksDeleteSamples {
*/
public final class ExternalNetworksGetSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_Get.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_Get.json
*/
/**
* Sample code: ExternalNetworks_Get_MaximumSet_Gen.
@@ -882,7 +1080,7 @@ public final class ExternalNetworksGetSamples {
*/
public final class ExternalNetworksListByL3IsolationDomainSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_ListByL3IsolationDomain.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_ListByL3IsolationDomain.json
*/
/**
* Sample code: ExternalNetworks_ListByL3IsolationDomain_MaximumSet_Gen.
@@ -924,7 +1122,7 @@ import java.util.Arrays;
*/
public final class ExternalNetworksUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_Update.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_Update.json
*/
/**
* Sample code: ExternalNetworks_Update_MaximumSet_Gen.
@@ -1000,7 +1198,7 @@ import java.util.Arrays;
*/
public final class ExternalNetworksUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_UpdateAdministrativeState.json
*/
/**
* Sample code: ExternalNetworks_UpdateAdministrativeState_MaximumSet_Gen.
@@ -1029,7 +1227,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.ExternalNetworkUpda
*/
public final class ExternalNetworksUpdateBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_UpdateBfdAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_UpdateBfdAdministrativeState.json
*/
/**
* Sample code: ExternalNetworks_UpdateBfdAdministrativeState.
@@ -1059,7 +1257,7 @@ import java.util.Arrays;
*/
public final class ExternalNetworksUpdateStaticRouteBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/ExternalNetworks_UpdateStaticRouteBfdAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/ExternalNetworks_UpdateStaticRouteBfdAdministrativeState.json
*/
/**
* Sample code: ExternalNetworks_UpdateStaticRouteBfdAdministrativeState.
@@ -1076,6 +1274,299 @@ public final class ExternalNetworksUpdateStaticRouteBfdAdministrativeStateSample
}
```
+### Fabrics_Create
+
+```java
+import com.azure.resourcemanager.managednetworkfabric.models.ControllerType;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.InfraNetwork;
+import com.azure.resourcemanager.managednetworkfabric.models.InfraNetworkOptionalIp;
+import com.azure.resourcemanager.managednetworkfabric.models.InfrastructureNetworks;
+import com.azure.resourcemanager.managednetworkfabric.models.InfrastructureServices;
+import com.azure.resourcemanager.managednetworkfabric.models.ManagementMode;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationPolicy;
+import com.azure.resourcemanager.managednetworkfabric.models.PlatformProxy;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Fabrics Create.
+ */
+public final class FabricsCreateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_Create.json
+ */
+ /**
+ * Sample code: Fabrics_Create_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void
+ fabricsCreateMaximumSetGen(com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics()
+ .define("example-fabric")
+ .withRegion("eastus")
+ .withExistingResourceGroup("example-rg")
+ .withProperties(new FabricProperties()
+ .withInfrastructureNetworks(new InfrastructureNetworks()
+ .withManagement(new InfraNetwork().withVlanId(39)
+ .withIpv4Subnet("10.2.0.0/24")
+ .withIpv4Gateway("10.2.0.1")
+ .withIpv4StartAddr("10.2.0.20")
+ .withIpv4EndAddr("10.2.0.99")
+ .withMtu(9000))
+ .withPxe(new InfraNetwork().withVlanId(40)
+ .withIpv4Subnet("10.2.1.0/24")
+ .withIpv4Gateway("10.2.1.1")
+ .withIpv4StartAddr("10.2.1.20")
+ .withIpv4EndAddr("10.2.1.99")
+ .withMtu(9000))
+ .withBmc(new InfraNetwork().withVlanId(41)
+ .withIpv4Subnet("10.2.2.0/24")
+ .withIpv4Gateway("10.2.2.1")
+ .withIpv4StartAddr("10.2.2.11")
+ .withIpv4EndAddr("10.2.2.99")
+ .withMtu(1500))
+ .withStorage(new InfraNetwork().withVlanId(42)
+ .withIpv4Subnet("10.2.3.0/24")
+ .withIpv4Gateway("10.2.3.1")
+ .withIpv4StartAddr("10.2.3.20")
+ .withIpv4EndAddr("10.2.3.179")
+ .withMtu(9000))
+ .withStorageMgmt(new InfraNetworkOptionalIp().withVlanId(37).withMtu(9000)))
+ .withInfrastructureServices(new InfrastructureServices()
+ .withPlatformProxy(new PlatformProxy().withHttpProxy("http://10.2.0.60:3128")
+ .withHttpsProxy("http://10.2.0.60:3128")
+ .withNoProxy(Arrays.asList("10.2.0.0/24", "10.2.1.0/24", "10.2.2.0/24", "10.2.3.0/24",
+ "localhost", "169.254.169.254", ".svc")))
+ .withNtpServers(Arrays.asList("10.2.0.100"))
+ .withDnsServers(Arrays.asList("10.2.0.50")))
+ .withEdgeConnectorId(
+ "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/example-edgeConnector")
+ .withManagementMode(ManagementMode.UNMANAGED)
+ .withRackCount(2)
+ .withFabricSku("2-rack-ha"))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_Create_Managed.json
+ */
+ /**
+ * Sample code: Fabrics_Create_Managed_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void fabricsCreateManagedMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics()
+ .define("example-managed-fabric")
+ .withRegion("eastus")
+ .withExistingResourceGroup("example-rg")
+ .withProperties(new FabricProperties()
+ .withInfrastructureNetworks(new InfrastructureNetworks()
+ .withManagement(new InfraNetwork().withVlanId(39)
+ .withIpv4Subnet("10.2.0.0/24")
+ .withIpv4Gateway("10.2.0.1")
+ .withIpv4StartAddr("10.2.0.20")
+ .withIpv4EndAddr("10.2.0.99")
+ .withMtu(9000))
+ .withPxe(new InfraNetwork().withVlanId(40)
+ .withIpv4Subnet("10.2.1.0/24")
+ .withIpv4Gateway("10.2.1.1")
+ .withIpv4StartAddr("10.2.1.20")
+ .withIpv4EndAddr("10.2.1.99")
+ .withMtu(9000))
+ .withBmc(new InfraNetwork().withVlanId(41)
+ .withIpv4Subnet("10.2.2.0/24")
+ .withIpv4Gateway("10.2.2.1")
+ .withIpv4StartAddr("10.2.2.11")
+ .withIpv4EndAddr("10.2.2.99")
+ .withMtu(1500))
+ .withStorage(new InfraNetwork().withVlanId(42)
+ .withIpv4Subnet("10.2.3.0/24")
+ .withIpv4Gateway("10.2.3.1")
+ .withIpv4StartAddr("10.2.3.20")
+ .withIpv4EndAddr("10.2.3.179")
+ .withMtu(9000))
+ .withStorageMgmt(new InfraNetworkOptionalIp().withVlanId(37).withMtu(9000)))
+ .withInfrastructureServices(new InfrastructureServices()
+ .withPlatformProxy(new PlatformProxy().withHttpProxy("http://10.2.0.60:3128")
+ .withHttpsProxy("http://10.2.0.60:3128")
+ .withNoProxy(Arrays.asList("10.2.0.0/24", "10.2.1.0/24", "10.2.2.0/24", "10.2.3.0/24",
+ "localhost", "169.254.169.254", ".svc")))
+ .withNtpServers(Arrays.asList("10.2.0.100"))
+ .withDnsServers(Arrays.asList("10.2.0.50")))
+ .withOperationPolicy(OperationPolicy.VALIDATE_ONLY)
+ .withControllerEndpoint("https://apic.factory.local")
+ .withControllerCredentialRef("fakeTokenPlaceholder")
+ .withEdgeConnectorId(
+ "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/example-edgeConnector")
+ .withManagementMode(ManagementMode.MANAGED)
+ .withControllerType(ControllerType.CISCO_ACI)
+ .withRackCount(2)
+ .withFabricSku("2-rack-ha"))
+ .withTags(mapOf("environment", "production"))
+ .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;
+ }
+}
+```
+
+### Fabrics_Delete
+
+```java
+/**
+ * Samples for Fabrics Delete.
+ */
+public final class FabricsDeleteSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_Delete.json
+ */
+ /**
+ * Sample code: Fabrics_Delete_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void
+ fabricsDeleteMaximumSetGen(com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics().delete("example-rg", "example-fabric", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Fabrics_GetByResourceGroup
+
+```java
+/**
+ * Samples for Fabrics GetByResourceGroup.
+ */
+public final class FabricsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_Get.json
+ */
+ /**
+ * Sample code: Fabrics_Get_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void
+ fabricsGetMaximumSetGen(com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics()
+ .getByResourceGroupWithResponse("example-rg", "example-fabric", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Fabrics_List
+
+```java
+/**
+ * Samples for Fabrics List.
+ */
+public final class FabricsListSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_ListBySubscription.json
+ */
+ /**
+ * Sample code: Fabrics_ListBySubscription_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void fabricsListBySubscriptionMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics().list(com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Fabrics_ListByResourceGroup
+
+```java
+/**
+ * Samples for Fabrics ListByResourceGroup.
+ */
+public final class FabricsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: Fabrics_ListByResourceGroup_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void fabricsListByResourceGroupMaximumSetGen(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ manager.fabrics().listByResourceGroup("example-rg", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Fabrics_Update
+
+```java
+import com.azure.resourcemanager.managednetworkfabric.models.Fabric;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricPatchableProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.PatchInfrastructureServices;
+import com.azure.resourcemanager.managednetworkfabric.models.PatchPlatformProxy;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for Fabrics Update.
+ */
+public final class FabricsUpdateSamples {
+ /*
+ * x-ms-original-file: 2026-01-15-preview/Fabrics_Update.json
+ */
+ /**
+ * Sample code: Fabrics_Update_MaximumSet_Gen.
+ *
+ * @param manager Entry point to ManagedNetworkFabricManager.
+ */
+ public static void
+ fabricsUpdateMaximumSetGen(com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ Fabric resource = manager.fabrics()
+ .getByResourceGroupWithResponse("example-rg", "example-fabric", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf("environment", "staging"))
+ .withProperties(new FabricPatchableProperties().withInfrastructureServices(new PatchInfrastructureServices()
+ .withPlatformProxy(new PatchPlatformProxy().withHttpProxy("http://10.2.0.61:3128")
+ .withHttpsProxy("http://10.2.0.61:3128")
+ .withNoProxy(Arrays.asList("10.2.0.0/24", "10.2.1.0/24", "localhost")))
+ .withNtpServers(Arrays.asList("10.2.0.100", "10.2.0.101"))
+ .withDnsServers(Arrays.asList("10.2.0.50", "10.2.0.51"))))
+ .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;
+ }
+}
+```
+
### InternalNetworks_Create
```java
@@ -1107,7 +1598,7 @@ import java.util.Arrays;
*/
public final class InternalNetworksCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_Create.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_Create.json
*/
/**
* Sample code: InternalNetworks_Create_MaximumSet_Gen.
@@ -1181,7 +1672,7 @@ public final class InternalNetworksCreateSamples {
*/
public final class InternalNetworksDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_Delete.json
*/
/**
* Sample code: InternalNetworks_Delete_MaximumSet_Gen.
@@ -1204,7 +1695,7 @@ public final class InternalNetworksDeleteSamples {
*/
public final class InternalNetworksGetSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_Get.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_Get.json
*/
/**
* Sample code: InternalNetworks_Get_MaximumSet_Gen.
@@ -1228,7 +1719,7 @@ public final class InternalNetworksGetSamples {
*/
public final class InternalNetworksListByL3IsolationDomainSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_ListByL3IsolationDomain.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_ListByL3IsolationDomain.json
*/
/**
* Sample code: InternalNetworks_ListByL3IsolationDomain_MaximumSet_Gen.
@@ -1272,7 +1763,7 @@ import java.util.Arrays;
*/
public final class InternalNetworksUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_Update.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_Update.json
*/
/**
* Sample code: InternalNetworks_Update_MaximumSet_Gen.
@@ -1346,7 +1837,7 @@ import java.util.Arrays;
*/
public final class InternalNetworksUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_UpdateAdministrativeState.json
*/
/**
* Sample code: InternalNetworks_UpdateAdministrativeState_MaximumSet_Gen.
@@ -1375,7 +1866,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.InternalNetworkUpda
*/
public final class InternalNetworksUpdateBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_UpdateBfdAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_UpdateBfdAdministrativeState.json
*/
/**
* Sample code: InternalNetworks_UpdateBfdAdministrativeState.
@@ -1405,7 +1896,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.InternalNetworkUpda
*/
public final class InternalNetworksUpdateBgpAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_UpdateBgpAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_UpdateBgpAdministrativeState.json
*/
/**
* Sample code: InternalNetworks_UpdateBgpAdministrativeState_MaximumSet_Gen.
@@ -1435,7 +1926,7 @@ import java.util.Arrays;
*/
public final class InternalNetworksUpdateStaticRouteBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternalNetworks_UpdateStaticRouteBfdAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/InternalNetworks_UpdateStaticRouteBfdAdministrativeState.json
*/
/**
* Sample code: InternalNetworks_UpdateStaticRouteBfdAdministrativeState.
@@ -1468,7 +1959,7 @@ import java.util.Map;
*/
public final class InternetGatewayRulesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_Create.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_Create.json
*/
/**
* Sample code: InternetGatewayRules_Create_MaximumSet_Gen.
@@ -1515,7 +2006,7 @@ public final class InternetGatewayRulesCreateSamples {
*/
public final class InternetGatewayRulesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_Delete.json
*/
/**
* Sample code: InternetGatewayRules_Delete_MaximumSet_Gen.
@@ -1538,7 +2029,7 @@ public final class InternetGatewayRulesDeleteSamples {
*/
public final class InternetGatewayRulesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_Get.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_Get.json
*/
/**
* Sample code: InternetGatewayRules_Get_MaximumSet_Gen.
@@ -1562,7 +2053,7 @@ public final class InternetGatewayRulesGetByResourceGroupSamples {
*/
public final class InternetGatewayRulesListSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_ListBySubscription.json
*/
/**
* Sample code: InternetGatewayRules_ListBySubscription_MaximumSet_Gen.
@@ -1584,7 +2075,7 @@ public final class InternetGatewayRulesListSamples {
*/
public final class InternetGatewayRulesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_ListByResourceGroup.json
*/
/**
* Sample code: InternetGatewayRules_ListByResourceGroup_MaximumSet_Gen.
@@ -1611,7 +2102,7 @@ import java.util.Map;
*/
public final class InternetGatewayRulesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGatewayRules_Update.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGatewayRules_Update.json
*/
/**
* Sample code: InternetGatewayRules_Update_MaximumSet_Gen.
@@ -1653,7 +2144,7 @@ import java.util.Map;
*/
public final class InternetGatewaysCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_Create.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_Create.json
*/
/**
* Sample code: InternetGateways_Create_MaximumSet_Gen.
@@ -1699,7 +2190,7 @@ public final class InternetGatewaysCreateSamples {
*/
public final class InternetGatewaysDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_Delete.json
*/
/**
* Sample code: InternetGateways_Delete_MaximumSet_Gen.
@@ -1721,7 +2212,7 @@ public final class InternetGatewaysDeleteSamples {
*/
public final class InternetGatewaysGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_Get.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_Get.json
*/
/**
* Sample code: InternetGateways_Get_MaximumSet_Gen.
@@ -1744,7 +2235,7 @@ public final class InternetGatewaysGetByResourceGroupSamples {
*/
public final class InternetGatewaysListSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_ListBySubscription.json
*/
/**
* Sample code: InternetGateways_ListBySubscription_MaximumSet_Gen.
@@ -1766,7 +2257,7 @@ public final class InternetGatewaysListSamples {
*/
public final class InternetGatewaysListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_ListByResourceGroup.json
*/
/**
* Sample code: InternetGateways_ListByResourceGroup_MaximumSet_Gen.
@@ -1792,7 +2283,7 @@ import java.util.Map;
*/
public final class InternetGatewaysUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/InternetGateways_Update.json
+ * x-ms-original-file: 2026-01-15-preview/InternetGateways_Update.json
*/
/**
* Sample code: InternetGateways_Update_MaximumSet_Gen.
@@ -1840,7 +2331,7 @@ import java.util.Map;
*/
public final class IpCommunitiesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_Create.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_Create.json
*/
/**
* Sample code: IpCommunities_Create_MaximumSet_Gen.
@@ -1884,7 +2375,7 @@ public final class IpCommunitiesCreateSamples {
*/
public final class IpCommunitiesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_Delete.json
*/
/**
* Sample code: IpCommunities_Delete_MaximumSet_Gen.
@@ -1906,7 +2397,7 @@ public final class IpCommunitiesDeleteSamples {
*/
public final class IpCommunitiesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_Get.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_Get.json
*/
/**
* Sample code: IpCommunities_Get_MaximumSet_Gen.
@@ -1929,7 +2420,7 @@ public final class IpCommunitiesGetByResourceGroupSamples {
*/
public final class IpCommunitiesListSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_ListBySubscription.json
*/
/**
* Sample code: IpCommunities_ListBySubscription_MaximumSet_Gen.
@@ -1951,7 +2442,7 @@ public final class IpCommunitiesListSamples {
*/
public final class IpCommunitiesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_ListByResourceGroup.json
*/
/**
* Sample code: IpCommunities_ListByResourceGroup_MaximumSet_Gen.
@@ -1981,7 +2472,7 @@ import java.util.Map;
*/
public final class IpCommunitiesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpCommunities_Update.json
+ * x-ms-original-file: 2026-01-15-preview/IpCommunities_Update.json
*/
/**
* Sample code: IpCommunities_Update_MaximumSet_Gen.
@@ -2030,7 +2521,7 @@ import java.util.Map;
*/
public final class IpExtendedCommunitiesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_Create.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_Create.json
*/
/**
* Sample code: IpExtendedCommunities_Create_MaximumSet_Gen.
@@ -2074,7 +2565,7 @@ public final class IpExtendedCommunitiesCreateSamples {
*/
public final class IpExtendedCommunitiesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_Delete.json
*/
/**
* Sample code: IpExtendedCommunities_Delete_MaximumSet_Gen.
@@ -2097,7 +2588,7 @@ public final class IpExtendedCommunitiesDeleteSamples {
*/
public final class IpExtendedCommunitiesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_Get.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_Get.json
*/
/**
* Sample code: IpExtendedCommunities_Get_MaximumSet_Gen.
@@ -2121,7 +2612,7 @@ public final class IpExtendedCommunitiesGetByResourceGroupSamples {
*/
public final class IpExtendedCommunitiesListSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_ListBySubscription.json
*/
/**
* Sample code: IpExtendedCommunities_ListBySubscription_MaximumSet_Gen.
@@ -2143,7 +2634,7 @@ public final class IpExtendedCommunitiesListSamples {
*/
public final class IpExtendedCommunitiesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_ListByResourceGroup.json
*/
/**
* Sample code: IpExtendedCommunities_ListByResourceGroup_MaximumSet_Gen.
@@ -2172,7 +2663,7 @@ import java.util.Map;
*/
public final class IpExtendedCommunitiesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpExtendedCommunities_Update.json
+ * x-ms-original-file: 2026-01-15-preview/IpExtendedCommunities_Update.json
*/
/**
* Sample code: IpExtendedCommunities_Update_MaximumSet_Gen.
@@ -2224,7 +2715,7 @@ import java.util.Map;
*/
public final class IpPrefixesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_Create.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_Create.json
*/
/**
* Sample code: IpPrefixes_Create_MaximumSet_Gen.
@@ -2269,7 +2760,7 @@ public final class IpPrefixesCreateSamples {
*/
public final class IpPrefixesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_Delete.json
*/
/**
* Sample code: IpPrefixes_Delete_MaximumSet_Gen.
@@ -2291,7 +2782,7 @@ public final class IpPrefixesDeleteSamples {
*/
public final class IpPrefixesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_Get.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_Get.json
*/
/**
* Sample code: IpPrefixes_Get_MaximumSet_Gen.
@@ -2314,7 +2805,7 @@ public final class IpPrefixesGetByResourceGroupSamples {
*/
public final class IpPrefixesListSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_ListBySubscription.json
*/
/**
* Sample code: IpPrefixes_ListBySubscription_MaximumSet_Gen.
@@ -2336,7 +2827,7 @@ public final class IpPrefixesListSamples {
*/
public final class IpPrefixesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_ListByResourceGroup.json
*/
/**
* Sample code: IpPrefixes_ListByResourceGroup_MaximumSet_Gen.
@@ -2366,7 +2857,7 @@ import java.util.Map;
*/
public final class IpPrefixesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/IpPrefixes_Update.json
+ * x-ms-original-file: 2026-01-15-preview/IpPrefixes_Update.json
*/
/**
* Sample code: IpPrefixes_Update_MaximumSet_Gen.
@@ -2411,7 +2902,7 @@ public final class IpPrefixesUpdateSamples {
*/
public final class L2IsolationDomainsCommitConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_CommitConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_CommitConfiguration.json
*/
/**
* Sample code: L2IsolationDomains_CommitConfiguration_MaximumSet_Gen.
@@ -2441,7 +2932,7 @@ import java.util.Map;
*/
public final class L2IsolationDomainsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_Create.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_Create.json
*/
/**
* Sample code: L2IsolationDomains_Create_MaximumSet_Gen.
@@ -2490,7 +2981,7 @@ public final class L2IsolationDomainsCreateSamples {
*/
public final class L2IsolationDomainsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_Delete.json
*/
/**
* Sample code: L2IsolationDomains_Delete_MaximumSet_Gen.
@@ -2512,7 +3003,7 @@ public final class L2IsolationDomainsDeleteSamples {
*/
public final class L2IsolationDomainsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_Get.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_Get.json
*/
/**
* Sample code: L2IsolationDomains_Get_MaximumSet_Gen.
@@ -2535,7 +3026,7 @@ public final class L2IsolationDomainsGetByResourceGroupSamples {
*/
public final class L2IsolationDomainsListSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_ListBySubscription.json
*/
/**
* Sample code: L2IsolationDomains_ListBySubscription_MaximumSet_Gen.
@@ -2557,7 +3048,7 @@ public final class L2IsolationDomainsListSamples {
*/
public final class L2IsolationDomainsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_ListByResourceGroup.json
*/
/**
* Sample code: L2IsolationDomains_ListByResourceGroup_MaximumSet_Gen.
@@ -2586,7 +3077,7 @@ import java.util.Map;
*/
public final class L2IsolationDomainsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_Update.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_Update.json
*/
/**
* Sample code: L2IsolationDomains_Update_MaximumSet_Gen.
@@ -2635,7 +3126,7 @@ import java.util.Arrays;
*/
public final class L2IsolationDomainsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_UpdateAdministrativeState.json
*/
/**
* Sample code: L2IsolationDomains_UpdateAdministrativeState_MaximumSet_Gen.
@@ -2660,7 +3151,7 @@ public final class L2IsolationDomainsUpdateAdministrativeStateSamples {
*/
public final class L2IsolationDomainsValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/L2IsolationDomains_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/L2IsolationDomains_ValidateConfiguration.json
*/
/**
* Sample code: L2IsolationDomains_ValidateConfiguration_MaximumSet_Gen.
@@ -2683,7 +3174,7 @@ public final class L2IsolationDomainsValidateConfigurationSamples {
*/
public final class L3IsolationDomainsCommitConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_CommitConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_CommitConfiguration.json
*/
/**
* Sample code: L3IsolationDomains_CommitConfiguration_MaximumSet_Gen.
@@ -2722,7 +3213,7 @@ import java.util.Map;
*/
public final class L3IsolationDomainsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_Create.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_Create.json
*/
/**
* Sample code: L3IsolationDomains_Create_MaximumSet_Gen.
@@ -2784,7 +3275,7 @@ public final class L3IsolationDomainsCreateSamples {
*/
public final class L3IsolationDomainsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_Delete.json
*/
/**
* Sample code: L3IsolationDomains_Delete_MaximumSet_Gen.
@@ -2806,7 +3297,7 @@ public final class L3IsolationDomainsDeleteSamples {
*/
public final class L3IsolationDomainsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_Get.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_Get.json
*/
/**
* Sample code: L3IsolationDomains_Get_MaximumSet_Gen.
@@ -2829,7 +3320,7 @@ public final class L3IsolationDomainsGetByResourceGroupSamples {
*/
public final class L3IsolationDomainsListSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_ListBySubscription.json
*/
/**
* Sample code: L3IsolationDomains_ListBySubscription_MaximumSet_Gen.
@@ -2851,7 +3342,7 @@ public final class L3IsolationDomainsListSamples {
*/
public final class L3IsolationDomainsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_ListByResourceGroup.json
*/
/**
* Sample code: L3IsolationDomains_ListByResourceGroup_MaximumSet_Gen.
@@ -2891,7 +3382,7 @@ import java.util.Map;
*/
public final class L3IsolationDomainsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_Update.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_Update.json
*/
/**
* Sample code: L3IsolationDomains_Update_MaximumSet_Gen.
@@ -2956,7 +3447,7 @@ import java.util.Arrays;
*/
public final class L3IsolationDomainsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_UpdateAdministrativeState.json
*/
/**
* Sample code: L3IsolationDomains_UpdateAdministrativeState_MaximumSet_Gen.
@@ -2981,7 +3472,7 @@ public final class L3IsolationDomainsUpdateAdministrativeStateSamples {
*/
public final class L3IsolationDomainsValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/L3IsolationDomains_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/L3IsolationDomains_ValidateConfiguration.json
*/
/**
* Sample code: L3IsolationDomains_ValidateConfiguration_MaximumSet_Gen.
@@ -3012,7 +3503,7 @@ import java.util.Map;
*/
public final class NeighborGroupsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_Create.json
*/
/**
* Sample code: NeighborGroups_Create_MaximumSet_Gen.
@@ -3058,7 +3549,7 @@ public final class NeighborGroupsCreateSamples {
*/
public final class NeighborGroupsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_Delete.json
*/
/**
* Sample code: NeighborGroups_Delete_MaximumSet_Gen.
@@ -3080,7 +3571,7 @@ public final class NeighborGroupsDeleteSamples {
*/
public final class NeighborGroupsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_Get.json
*/
/**
* Sample code: NeighborGroups_Get_MaximumSet_Gen.
@@ -3103,7 +3594,7 @@ public final class NeighborGroupsGetByResourceGroupSamples {
*/
public final class NeighborGroupsListSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_ListBySubscription.json
*/
/**
* Sample code: NeighborGroups_ListBySubscription_MaximumSet_Gen.
@@ -3125,7 +3616,7 @@ public final class NeighborGroupsListSamples {
*/
public final class NeighborGroupsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_ListByResourceGroup.json
*/
/**
* Sample code: NeighborGroups_ListByResourceGroup_MaximumSet_Gen.
@@ -3147,7 +3638,7 @@ public final class NeighborGroupsListByResourceGroupSamples {
*/
public final class NeighborGroupsResyncSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_Resync.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_Resync.json
*/
/**
* Sample code: NeighborGroups_Resync.
@@ -3178,7 +3669,7 @@ import java.util.Map;
*/
public final class NeighborGroupsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NeighborGroups_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NeighborGroups_Update.json
*/
/**
* Sample code: NeighborGroups_Update_MaximumSet_Gen.
@@ -3222,6 +3713,7 @@ public final class NeighborGroupsUpdateSamples {
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -3230,7 +3722,7 @@ import java.util.Map;
*/
public final class NetworkBootstrapDevicesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Create.json
*/
/**
* Sample code: NetworkBootstrapDevices_Create_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3250,6 +3742,8 @@ public final class NetworkBootstrapDevicesCreateSamples {
.withAnnotation("annotation")
.withHostName("NFA-Device")
.withSerialNumber("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX")
+ .withControlPlaneAcls(Arrays.asList(
+ "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/accessControlLists/example-acl"))
.withNetworkDeviceSku("DeviceSku")
.create();
}
@@ -3276,7 +3770,7 @@ public final class NetworkBootstrapDevicesCreateSamples {
*/
public final class NetworkBootstrapDevicesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Delete.json
*/
/**
* Sample code: NetworkBootstrapDevices_Delete_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3299,7 +3793,7 @@ public final class NetworkBootstrapDevicesDeleteSamples {
*/
public final class NetworkBootstrapDevicesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Get.json
*/
/**
* Sample code: NetworkBootstrapDevices_Get_MaximumSet - generated by [MaximumSet] rule - generated by [MaximumSet]
@@ -3323,7 +3817,7 @@ public final class NetworkBootstrapDevicesGetByResourceGroupSamples {
*/
public final class NetworkBootstrapDevicesListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_ListBySubscription.json
*/
/**
* Sample code: NetworkBootstrapDevices_ListBySubscription.
@@ -3345,7 +3839,7 @@ public final class NetworkBootstrapDevicesListSamples {
*/
public final class NetworkBootstrapDevicesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_ListByResourceGroup.json
*/
/**
* Sample code: NetworkBootstrapDevices_ListByResourceGroup_MaximumSet - generated by [MaximumSet] rule - generated
@@ -3369,7 +3863,7 @@ public final class NetworkBootstrapDevicesListByResourceGroupSamples {
*/
public final class NetworkBootstrapDevicesRebootSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Reboot.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Reboot.json
*/
/**
* Sample code: NetworkBootstrapDevices_Reboot_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3392,7 +3886,7 @@ public final class NetworkBootstrapDevicesRebootSamples {
*/
public final class NetworkBootstrapDevicesRefreshConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_RefreshConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_RefreshConfiguration.json
*/
/**
* Sample code: NetworkBootstrapDevices_RefreshConfiguration_MaximumSet - generated by [MaximumSet] rule - generated
@@ -3417,7 +3911,7 @@ public final class NetworkBootstrapDevicesRefreshConfigurationSamples {
*/
public final class NetworkBootstrapDevicesResyncPasswordsSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_ResyncPasswords.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_ResyncPasswords.json
*/
/**
* Sample code: Resync the latest passwords to the Network Bootstrap Device. - generated by [MaximumSet] rule -
@@ -3441,6 +3935,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdent
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkBootstrapDevice;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -3449,7 +3944,7 @@ import java.util.Map;
*/
public final class NetworkBootstrapDevicesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Update.json
*/
/**
* Sample code: NetworkBootstrapDevices_Update_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3469,6 +3964,8 @@ public final class NetworkBootstrapDevicesUpdateSamples {
.withAnnotation("annotation")
.withHostName("NFA-Device")
.withSerialNumber("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX")
+ .withControlPlaneAcls(Arrays.asList(
+ "/subscriptions/xxxxxx/resourceGroups/resourcegroupname/providers/Microsoft.ManagedNetworkFabric/accessControlLists/example-acl"))
.apply();
}
@@ -3498,7 +3995,7 @@ import java.util.Arrays;
*/
public final class NetworkBootstrapDevicesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkBootstrapDevices_UpdateAdministrativeState_MaximumSet - generated by [MaximumSet] rule -
@@ -3529,7 +4026,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.UpdateVersion;
*/
public final class NetworkBootstrapDevicesUpgradeSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapDevices_Upgrade.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapDevices_Upgrade.json
*/
/**
* Sample code: NetworkBootstrapDevices_Upgrade_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3554,7 +4051,7 @@ public final class NetworkBootstrapDevicesUpgradeSamples {
*/
public final class NetworkBootstrapInterfacesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_Create.json
*/
/**
* Sample code: NetworkBootstrapInterfaces_Create_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3568,7 +4065,6 @@ public final class NetworkBootstrapInterfacesCreateSamples {
.define("example-interface")
.withExistingNetworkBootstrapDevice("example-rg", "example-device")
.withAdditionalDescription("additionalDescription")
- .withSerialNumber("Vendor;DCS-7280XXX-24;12.05;JPE2111XXXX")
.withAnnotation("annotation")
.create();
}
@@ -3583,7 +4079,7 @@ public final class NetworkBootstrapInterfacesCreateSamples {
*/
public final class NetworkBootstrapInterfacesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_Delete.json
*/
/**
* Sample code: NetworkBootstrapInterfaces_Delete_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3607,7 +4103,7 @@ public final class NetworkBootstrapInterfacesDeleteSamples {
*/
public final class NetworkBootstrapInterfacesGetSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_Get.json
*/
/**
* Sample code: NetworkBootstrapInterfaces_Get_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3631,7 +4127,7 @@ public final class NetworkBootstrapInterfacesGetSamples {
*/
public final class NetworkBootstrapInterfacesListByNetworkBootstrapDeviceSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_ListByNetworkBootstrapDevice.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_ListByNetworkBootstrapDevice.json
*/
/**
* Sample code: NetworkBootstrapInterfaces_ListByNetworkBootstrapDevice_MaximumSet - generated by [MaximumSet] rule
@@ -3658,7 +4154,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.NetworkBootstrapInt
*/
public final class NetworkBootstrapInterfacesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_Update.json
*/
/**
* Sample code: NetworkBootstrapInterfaces_Update_MaximumSet - generated by [MaximumSet] rule - generated by
@@ -3671,10 +4167,7 @@ public final class NetworkBootstrapInterfacesUpdateSamples {
NetworkBootstrapInterface resource = manager.networkBootstrapInterfaces()
.getWithResponse("example-rg", "example-device", "example-interface", com.azure.core.util.Context.NONE)
.getValue();
- resource.update()
- .withSerialNumber("Vendor;Model;HardwareRevisionId;SerialNumber")
- .withAnnotation("annotation")
- .apply();
+ resource.update().withAnnotation("annotation").apply();
}
}
```
@@ -3691,15 +4184,17 @@ import java.util.Arrays;
*/
public final class NetworkBootstrapInterfacesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkBootstrapInterfaces_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkBootstrapInterfaces_UpdateAdministrativeState.json
*/
/**
- * Sample code: NetworkBootstrapInterfaces_UpdateAdministrativeState_MaximumSet - generated by [MaximumSet] rule.
+ * Sample code: NetworkBootstrapInterfaces_UpdateAdministrativeState_MaximumSet - generated by [MaximumSet] rule -
+ * generated by [MaximumSet] rule.
*
* @param manager Entry point to ManagedNetworkFabricManager.
*/
- public static void networkBootstrapInterfacesUpdateAdministrativeStateMaximumSetGeneratedByMaximumSetRule(
- com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
+ public static void
+ networkBootstrapInterfacesUpdateAdministrativeStateMaximumSetGeneratedByMaximumSetRuleGeneratedByMaximumSetRule(
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
manager.networkBootstrapInterfaces()
.updateAdministrativeState("example-rg", "example-device", "example-interface",
new UpdateAdministrativeState().withResourceIds(Arrays.asList("")).withState(EnableDisableState.ENABLE),
@@ -3716,7 +4211,7 @@ public final class NetworkBootstrapInterfacesUpdateAdministrativeStateSamples {
*/
public final class NetworkDeviceSkusGetSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDeviceSkus_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDeviceSkus_Get.json
*/
/**
* Sample code: NetworkDeviceSkus_Get_MaximumSet_Gen.
@@ -3738,7 +4233,7 @@ public final class NetworkDeviceSkusGetSamples {
*/
public final class NetworkDeviceSkusListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDeviceSkus_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDeviceSkus_ListBySubscription.json
*/
/**
* Sample code: NetworkDeviceSkus_ListBySubscription_MaximumSet_Gen.
@@ -3768,7 +4263,7 @@ import java.util.Map;
*/
public final class NetworkDevicesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Create.json
*/
/**
* Sample code: NetworkDevices_Create_MaximumSet_Gen.
@@ -3819,7 +4314,7 @@ public final class NetworkDevicesCreateSamples {
*/
public final class NetworkDevicesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Delete.json
*/
/**
* Sample code: NetworkDevices_Delete_MaximumSet_Gen.
@@ -3841,7 +4336,7 @@ public final class NetworkDevicesDeleteSamples {
*/
public final class NetworkDevicesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Get.json
*/
/**
* Sample code: NetworkDevices_Get_MaximumSet_Gen.
@@ -3864,7 +4359,7 @@ public final class NetworkDevicesGetByResourceGroupSamples {
*/
public final class NetworkDevicesListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ListBySubscription.json
*/
/**
* Sample code: NetworkDevices_ListBySubscription_MaximumSet_Gen.
@@ -3886,7 +4381,7 @@ public final class NetworkDevicesListSamples {
*/
public final class NetworkDevicesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ListByResourceGroup.json
*/
/**
* Sample code: NetworkDevices_ListByResourceGroup_MaximumSet_Gen.
@@ -3911,7 +4406,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.RebootType;
*/
public final class NetworkDevicesRebootSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Reboot.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Reboot.json
*/
/**
* Sample code: NetworkDevices_Reboot_MaximumSet_Gen.
@@ -3936,7 +4431,7 @@ public final class NetworkDevicesRebootSamples {
*/
public final class NetworkDevicesRefreshConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_RefreshConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_RefreshConfiguration.json
*/
/**
* Sample code: NetworkDevices_RefreshConfiguration_MaximumSet_Gen.
@@ -3958,7 +4453,7 @@ public final class NetworkDevicesRefreshConfigurationSamples {
*/
public final class NetworkDevicesResyncCertificatesSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ResyncCertificates.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ResyncCertificates.json
*/
/**
* Sample code: Successful certificate resync.
@@ -3971,7 +4466,7 @@ public final class NetworkDevicesResyncCertificatesSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ResyncCertificates_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ResyncCertificates_Error.json
*/
/**
* Sample code: Error while performing certificate resync.
@@ -3993,7 +4488,7 @@ public final class NetworkDevicesResyncCertificatesSamples {
*/
public final class NetworkDevicesResyncPasswordsSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ResyncPasswords.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ResyncPasswords.json
*/
/**
* Sample code: Successful password resync.
@@ -4006,7 +4501,7 @@ public final class NetworkDevicesResyncPasswordsSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_ResyncPasswords_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_ResyncPasswords_Error.json
*/
/**
* Sample code: Error while performing password resync.
@@ -4030,7 +4525,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.DeviceRoCommand;
*/
public final class NetworkDevicesRunRoCommandSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_RunRoCommand.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_RunRoCommand.json
*/
/**
* Sample code: NetworkDevices_RunRoCommand_MaximumSet_Gen.
@@ -4056,7 +4551,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.DeviceRwCommand;
*/
public final class NetworkDevicesRunRwCommandSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_RunRwCommand.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_RunRwCommand.json
*/
/**
* Sample code: NetworkDevices_RunRwCommand_MaximumSet_Gen.
@@ -4091,7 +4586,7 @@ import java.util.Map;
*/
public final class NetworkDevicesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Update.json
*/
/**
* Sample code: NetworkDevices_Update_MaximumSet_Gen.
@@ -4145,7 +4640,7 @@ import java.util.Arrays;
*/
public final class NetworkDevicesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkDevices_UpdateAdministrativeState_MaximumSet_Gen.
@@ -4173,7 +4668,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.NetworkDeviceUpgrad
*/
public final class NetworkDevicesUpgradeSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkDevices_Upgrade.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkDevices_Upgrade.json
*/
/**
* Sample code: NetworkDevices_Upgrade_MaximumSet_Gen - generated by [MaximumSet] rule.
@@ -4200,6 +4695,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdent
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.managednetworkfabric.models.NfcSku;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
+import com.azure.resourcemanager.managednetworkfabric.models.VmProfile;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
@@ -4209,7 +4705,7 @@ import java.util.Map;
*/
public final class NetworkFabricControllersCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_Create.json
*/
/**
* Sample code: NetworkFabricControllers_Create_MaximumSet_Gen.
@@ -4240,6 +4736,7 @@ public final class NetworkFabricControllersCreateSamples {
.withIpv4AddressSpace("172.253.0.0/19")
.withIpv6AddressSpace("::/60")
.withNfcSku(NfcSku.STANDARD)
+ .withVmProfile(new VmProfile().withVmSkuName("Standard_D4s_v3"))
.create();
}
@@ -4265,7 +4762,7 @@ public final class NetworkFabricControllersCreateSamples {
*/
public final class NetworkFabricControllersDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_Delete.json
*/
/**
* Sample code: NetworkFabricControllers_Delete_MaximumSet_Gen.
@@ -4288,7 +4785,7 @@ public final class NetworkFabricControllersDeleteSamples {
*/
public final class NetworkFabricControllersGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_Get.json
*/
/**
* Sample code: NetworkFabricControllers_Get_MaximumSet_Gen.
@@ -4312,7 +4809,7 @@ public final class NetworkFabricControllersGetByResourceGroupSamples {
*/
public final class NetworkFabricControllersListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_ListBySubscription.json
*/
/**
* Sample code: NetworkFabricControllers_ListBySubscription_MaximumSet_Gen.
@@ -4334,7 +4831,7 @@ public final class NetworkFabricControllersListSamples {
*/
public final class NetworkFabricControllersListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_ListByResourceGroup.json
*/
/**
* Sample code: NetworkFabricControllers_ListByResourceGroup_MaximumSet_Gen.
@@ -4365,7 +4862,7 @@ import java.util.Map;
*/
public final class NetworkFabricControllersUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricControllers_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricControllers_Update.json
*/
/**
* Sample code: NetworkFabricControllers_Update_MaximumSet_Gen.
@@ -4414,7 +4911,7 @@ public final class NetworkFabricControllersUpdateSamples {
*/
public final class NetworkFabricSkusGetSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricSkus_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricSkus_Get.json
*/
/**
* Sample code: NetworkFabricSkus_Get_MaximumSet_Gen.
@@ -4423,7 +4920,7 @@ public final class NetworkFabricSkusGetSamples {
*/
public static void networkFabricSkusGetMaximumSetGen(
com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
- manager.networkFabricSkus().getWithResponse("example-fabricsku", com.azure.core.util.Context.NONE);
+ manager.networkFabricSkus().getWithResponse("wxample-fabricsku", com.azure.core.util.Context.NONE);
}
}
```
@@ -4436,7 +4933,7 @@ public final class NetworkFabricSkusGetSamples {
*/
public final class NetworkFabricSkusListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabricSkus_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabricSkus_ListBySubscription.json
*/
/**
* Sample code: NetworkFabricSkus_ListBySubscription_MaximumSet_Gen.
@@ -4458,7 +4955,7 @@ public final class NetworkFabricSkusListSamples {
*/
public final class NetworkFabricsArmConfigurationDiffSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ArmConfigurationDiff.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ArmConfigurationDiff.json
*/
/**
* Sample code: NetworkFabrics_ArmConfigurationDiff_MaximumSet.
@@ -4482,7 +4979,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.CommitBatchStatusRe
*/
public final class NetworkFabricsCommitBatchStatusSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_CommitBatchStatus.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_CommitBatchStatus.json
*/
/**
* Sample code: NetworkFabrics_CommitBatchStatus_MaximumSet.
@@ -4507,7 +5004,7 @@ public final class NetworkFabricsCommitBatchStatusSamples {
*/
public final class NetworkFabricsCommitConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_CommitConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_CommitConfiguration.json
*/
/**
* Sample code: NetworkFabrics_CommitConfiguration_MaximumSet_Gen.
@@ -4534,11 +5031,15 @@ import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdent
import com.azure.resourcemanager.managednetworkfabric.models.ManagementNetworkConfigurationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.NNIDerivedUniqueRouteDistinguisherConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.PeeringOption;
+import com.azure.resourcemanager.managednetworkfabric.models.PostUpgradeProfileProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.PreUpgradeProfileProperties;
import com.azure.resourcemanager.managednetworkfabric.models.RouteTargetInformation;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretArchiveSettings;
import com.azure.resourcemanager.managednetworkfabric.models.StorageAccountConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.TerminalServerConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.UpgradeProfileProperties;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.VpnConfigurationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.VpnOptionAProperties;
@@ -4552,7 +5053,7 @@ import java.util.Map;
*/
public final class NetworkFabricsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Create.json
*/
/**
* Sample code: NetworkFabrics_Create_MaximumSet_Gen.
@@ -4642,6 +5143,17 @@ public final class NetworkFabricsCreateSamples {
.withStorageArrayCount(1)
.withAuthorizedTransceiver(
new AuthorizedTransceiverProperties().withVendor("vendorX").withKey("fakeTokenPlaceholder"))
+ .withSecretArchiveSettings(new SecretArchiveSettings().withAssociatedIdentity(new IdentitySelector()
+ .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY)
+ .withUserAssignedIdentityResourceId(
+ "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/example-identity"))
+ .withVaultUri("https://myvault.vault.azure.net/"))
+ .withUpgradeProfile(Arrays.asList(new UpgradeProfileProperties()
+ .withPreUpgradeProfile(
+ new PreUpgradeProfileProperties().withMaxEnteringMaintenanceTimeoutInSeconds(300))
+ .withPostUpgradeProfile(
+ new PostUpgradeProfileProperties().withMaxExitingMaintenanceTimeoutInSeconds(3000)
+ .withMlagReloadDelayTimeoutInSeconds(900))))
.withAnnotation("annotation")
.create();
}
@@ -4668,7 +5180,7 @@ public final class NetworkFabricsCreateSamples {
*/
public final class NetworkFabricsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Delete.json
*/
/**
* Sample code: NetworkFabrics_Delete_MaximumSet_Gen.
@@ -4690,7 +5202,7 @@ public final class NetworkFabricsDeleteSamples {
*/
public final class NetworkFabricsDeprovisionSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Deprovision.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Deprovision.json
*/
/**
* Sample code: NetworkFabrics_Deprovision_MaximumSet_Gen.
@@ -4714,7 +5226,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.DiscardCommitBatchR
*/
public final class NetworkFabricsDiscardCommitBatchSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_DiscardCommitBatch.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_DiscardCommitBatch.json
*/
/**
* Sample code: NetworkFabrics_DiscardCommitBatch.
@@ -4738,7 +5250,7 @@ public final class NetworkFabricsDiscardCommitBatchSamples {
*/
public final class NetworkFabricsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Get.json
*/
/**
* Sample code: NetworkFabrics_Get_MaximumSet_Gen.
@@ -4761,7 +5273,7 @@ public final class NetworkFabricsGetByResourceGroupSamples {
*/
public final class NetworkFabricsGetTopologySamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_GetTopology.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_GetTopology.json
*/
/**
* Sample code: NetworkFabrics_GetTopology_MaximumSet_Gen.
@@ -4783,7 +5295,7 @@ public final class NetworkFabricsGetTopologySamples {
*/
public final class NetworkFabricsListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ListBySubscription.json
*/
/**
* Sample code: NetworkFabrics_ListBySubscription_MaximumSet_Gen.
@@ -4805,7 +5317,7 @@ public final class NetworkFabricsListSamples {
*/
public final class NetworkFabricsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ListByResourceGroup.json
*/
/**
* Sample code: NetworkFabrics_ListByResourceGroup_MaximumSet_Gen.
@@ -4831,7 +5343,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricLockTy
*/
public final class NetworkFabricsLockFabricSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_LockFabric.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_LockFabric.json
*/
/**
* Sample code: NetworkFabrics_LockFabric_MaximumSet.
@@ -4857,7 +5369,7 @@ public final class NetworkFabricsLockFabricSamples {
*/
public final class NetworkFabricsProvisionSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Provision.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Provision.json
*/
/**
* Sample code: NetworkFabrics_Provision_MaximumSet_Gen.
@@ -4874,12 +5386,18 @@ public final class NetworkFabricsProvisionSamples {
### NetworkFabrics_RefreshConfiguration
```java
+import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationRegenerationType;
+import com.azure.resourcemanager.managednetworkfabric.models.GenerateBaseConfiguration;
+import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricRefreshDeviceTypes;
+import com.azure.resourcemanager.managednetworkfabric.models.RefreshConfigurationRequestProperties;
+import java.util.Arrays;
+
/**
* Samples for NetworkFabrics RefreshConfiguration.
*/
public final class NetworkFabricsRefreshConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RefreshConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RefreshConfiguration.json
*/
/**
* Sample code: NetworkFabrics_RefreshConfiguration_MaximumSet_Gen.
@@ -4888,7 +5406,14 @@ public final class NetworkFabricsRefreshConfigurationSamples {
*/
public static void networkFabricsRefreshConfigurationMaximumSetGen(
com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
- manager.networkFabrics().refreshConfiguration("example-rg", "example-fabric", com.azure.core.util.Context.NONE);
+ manager.networkFabrics()
+ .refreshConfiguration("example-rg", "example-fabric",
+ new RefreshConfigurationRequestProperties()
+ .withGenerateBaseConfiguration(GenerateBaseConfiguration.DISABLED)
+ .withConfigurationRegenerationType(ConfigurationRegenerationType.fromString("Full"))
+ .withDeviceTypes(
+ Arrays.asList(NetworkFabricRefreshDeviceTypes.CE, NetworkFabricRefreshDeviceTypes.TOR)),
+ com.azure.core.util.Context.NONE);
}
}
```
@@ -4901,7 +5426,7 @@ public final class NetworkFabricsRefreshConfigurationSamples {
*/
public final class NetworkFabricsResyncCertificatesSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncCertificates.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncCertificates.json
*/
/**
* Sample code: Successful certificate resync for all Network Devices.
@@ -4914,7 +5439,7 @@ public final class NetworkFabricsResyncCertificatesSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncCertificates_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncCertificates_Error.json
*/
/**
* Sample code: Total failure to resync certificates.
@@ -4927,7 +5452,7 @@ public final class NetworkFabricsResyncCertificatesSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncCertificates_PartialSuccess.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncCertificates_PartialSuccess.json
*/
/**
* Sample code: Partial failure to resync certificates for some devices.
@@ -4949,7 +5474,7 @@ public final class NetworkFabricsResyncCertificatesSamples {
*/
public final class NetworkFabricsResyncPasswordsSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncPasswords_PartialSuccess.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncPasswords_PartialSuccess.json
*/
/**
* Sample code: Partial failure to resync passwords for some devices.
@@ -4962,7 +5487,7 @@ public final class NetworkFabricsResyncPasswordsSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncPasswords_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncPasswords_Error.json
*/
/**
* Sample code: Total failure to resync passwords.
@@ -4975,7 +5500,7 @@ public final class NetworkFabricsResyncPasswordsSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ResyncPasswords.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ResyncPasswords.json
*/
/**
* Sample code: Successful password resync for the Terminal Server and all Network Devices.
@@ -4997,7 +5522,7 @@ public final class NetworkFabricsResyncPasswordsSamples {
*/
public final class NetworkFabricsRotateCertificatesSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotateCertificates_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotateCertificates_Error.json
*/
/**
* Sample code: Total failure to rotate certificates.
@@ -5010,7 +5535,7 @@ public final class NetworkFabricsRotateCertificatesSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotateCertificates_PartialSuccess.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotateCertificates_PartialSuccess.json
*/
/**
* Sample code: Partial failure to rotate certificates for some devices.
@@ -5023,7 +5548,7 @@ public final class NetworkFabricsRotateCertificatesSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotateCertificates.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotateCertificates.json
*/
/**
* Sample code: Successful certificate rotation for all Network Devices.
@@ -5045,7 +5570,7 @@ public final class NetworkFabricsRotateCertificatesSamples {
*/
public final class NetworkFabricsRotatePasswordsSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotatePasswords.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotatePasswords.json
*/
/**
* Sample code: Successful password rotation for the Terminal Server and all Network Devices.
@@ -5058,7 +5583,7 @@ public final class NetworkFabricsRotatePasswordsSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotatePasswords_Error.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotatePasswords_Error.json
*/
/**
* Sample code: Total failure to rotate passwords.
@@ -5071,7 +5596,7 @@ public final class NetworkFabricsRotatePasswordsSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_RotatePasswords_PartialSuccess.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_RotatePasswords_PartialSuccess.json
*/
/**
* Sample code: Partial failure to rotate passwords for some devices.
@@ -5098,13 +5623,17 @@ import com.azure.resourcemanager.managednetworkfabric.models.ManagementNetworkPa
import com.azure.resourcemanager.managednetworkfabric.models.NNIDerivedUniqueRouteDistinguisherConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabric;
import com.azure.resourcemanager.managednetworkfabric.models.PeeringOption;
+import com.azure.resourcemanager.managednetworkfabric.models.PostUpgradeProfilePatchProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.PreUpgradeProfilePatchProperties;
import com.azure.resourcemanager.managednetworkfabric.models.QosConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.QosPatchProperties;
import com.azure.resourcemanager.managednetworkfabric.models.RouteTargetPatchInformation;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretArchivePatchSettings;
import com.azure.resourcemanager.managednetworkfabric.models.StorageAccountPatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.TerminalServerPatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherPatchProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.UpgradeProfilePropertiesPatchProperties;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.VpnConfigurationPatchableProperties;
import com.azure.resourcemanager.managednetworkfabric.models.VpnOptionAPatchProperties;
@@ -5118,7 +5647,7 @@ import java.util.Map;
*/
public final class NetworkFabricsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Update_QoS.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Update_QoS.json
*/
/**
* Sample code: NetworkFabrics_Update_QoS_Enable.
@@ -5136,7 +5665,7 @@ public final class NetworkFabricsUpdateSamples {
}
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Update.json
*/
/**
* Sample code: NetworkFabrics_Update_MaximumSet_Gen.
@@ -5225,6 +5754,18 @@ public final class NetworkFabricsUpdateSamples {
.withQosConfiguration(new QosPatchProperties().withQosConfigurationState(QosConfigurationState.ENABLED))
.withFeatureFlags(Arrays.asList(new FeatureFlagProperties().withFeatureFlagName("uniqueRdConfiguration")
.withFeatureFlagValue("Enabled")))
+ .withSecretArchiveSettings(new SecretArchivePatchSettings()
+ .withAssociatedIdentity(new IdentitySelectorPatch()
+ .withIdentityType(ManagedServiceIdentitySelectorType.USER_ASSIGNED_IDENTITY)
+ .withUserAssignedIdentityResourceId(
+ "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/example-identity"))
+ .withVaultUri("https://myvault.vault.azure.net/"))
+ .withUpgradeProfileForUpdate(Arrays.asList(new UpgradeProfilePropertiesPatchProperties()
+ .withPreUpgradeProfile(
+ new PreUpgradeProfilePatchProperties().withMaxEnteringMaintenanceTimeoutInSeconds(300))
+ .withPostUpgradeProfile(
+ new PostUpgradeProfilePatchProperties().withMaxExitingMaintenanceTimeoutInSeconds(3000)
+ .withMlagReloadDelayTimeoutInSeconds(900))))
.apply();
}
@@ -5254,7 +5795,7 @@ import java.util.Arrays;
*/
public final class NetworkFabricsUpdateInfraManagementBfdConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_UpdateInfraManagementBfdConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_UpdateInfraManagementBfdConfiguration.json
*/
/**
* Sample code: NetworkFabrics_UpdateInfraManagementBfdConfiguration_MaximumSet_Gen.
@@ -5283,7 +5824,7 @@ import java.util.Arrays;
*/
public final class NetworkFabricsUpdateWorkloadManagementBfdConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_UpdateWorkloadManagementBfdConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_UpdateWorkloadManagementBfdConfiguration.json
*/
/**
* Sample code: NetworkFabrics_UpdateWorkloadManagementBfdConfiguration_MaximumSet_Gen.
@@ -5311,7 +5852,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.UpgradeNetworkFabri
*/
public final class NetworkFabricsUpgradeSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_Upgrade.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_Upgrade.json
*/
/**
* Sample code: NetworkFabrics_Upgrade_MaximumSet_Gen.
@@ -5339,7 +5880,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurati
*/
public final class NetworkFabricsValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ValidateConfiguration.json
*/
/**
* Sample code: NetworkFabrics_ValidateConfiguration_MaximumSet_Gen.
@@ -5364,7 +5905,7 @@ public final class NetworkFabricsValidateConfigurationSamples {
*/
public final class NetworkFabricsViewDeviceConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkFabrics_ViewDeviceConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkFabrics_ViewDeviceConfiguration.json
*/
/**
* Sample code: NetworkFabrics_ViewDeviceConfiguration_MaximumSet.
@@ -5387,7 +5928,7 @@ public final class NetworkFabricsViewDeviceConfigurationSamples {
*/
public final class NetworkInterfacesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_Create.json
*/
/**
* Sample code: NetworkInterfaces_Create_MaximumSet_Gen.
@@ -5414,7 +5955,7 @@ public final class NetworkInterfacesCreateSamples {
*/
public final class NetworkInterfacesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_Delete.json
*/
/**
* Sample code: NetworkInterfaces_Delete_MaximumSet_Gen.
@@ -5437,7 +5978,7 @@ public final class NetworkInterfacesDeleteSamples {
*/
public final class NetworkInterfacesGetSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_Get.json
*/
/**
* Sample code: NetworkInterfaces_Get_MaximumSet_Gen.
@@ -5460,7 +6001,7 @@ public final class NetworkInterfacesGetSamples {
*/
public final class NetworkInterfacesListByNetworkDeviceSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_ListByNetworkDevice.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_ListByNetworkDevice.json
*/
/**
* Sample code: NetworkInterfaces_ListByNetworkDevice_MaximumSet_Gen.
@@ -5485,7 +6026,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.NetworkInterface;
*/
public final class NetworkInterfacesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_Update.json
*/
/**
* Sample code: NetworkInterfaces_Update_MaximumSet_Gen.
@@ -5514,7 +6055,7 @@ import java.util.Arrays;
*/
public final class NetworkInterfacesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkInterfaces_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkInterfaces_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkInterfaces_UpdateAdministrativeState_MaximumSet_Gen.
@@ -5550,7 +6091,7 @@ import java.util.Map;
*/
public final class NetworkMonitorsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_Create.json
*/
/**
* Sample code: NetworkMonitors_Create.
@@ -5609,7 +6150,7 @@ public final class NetworkMonitorsCreateSamples {
*/
public final class NetworkMonitorsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_Delete.json
*/
/**
* Sample code: NetworkMonitors_Delete_MaximumSet.
@@ -5631,7 +6172,7 @@ public final class NetworkMonitorsDeleteSamples {
*/
public final class NetworkMonitorsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_Get.json
*/
/**
* Sample code: NetworkMonitors_Get_MaximumSet.
@@ -5654,7 +6195,7 @@ public final class NetworkMonitorsGetByResourceGroupSamples {
*/
public final class NetworkMonitorsListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_ListBySubscription.json
*/
/**
* Sample code: NetworkMonitors_ListBySubscription.
@@ -5676,7 +6217,7 @@ public final class NetworkMonitorsListSamples {
*/
public final class NetworkMonitorsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_ListByResourceGroup.json
*/
/**
* Sample code: NetworkMonitors_ListByResourceGroup.
@@ -5710,7 +6251,7 @@ import java.util.Map;
*/
public final class NetworkMonitorsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_Update.json
*/
/**
* Sample code: NetworkMonitors_Update.
@@ -5772,7 +6313,7 @@ import java.util.Arrays;
*/
public final class NetworkMonitorsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkMonitors_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkMonitors_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkMonitors_UpdateAdministrativeState.
@@ -5803,7 +6344,7 @@ import java.util.Map;
*/
public final class NetworkPacketBrokersCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_Create.json
*/
/**
* Sample code: NetworkPacketBrokers_Create_MaximumSet_Gen.
@@ -5846,7 +6387,7 @@ public final class NetworkPacketBrokersCreateSamples {
*/
public final class NetworkPacketBrokersDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_Delete.json
*/
/**
* Sample code: NetworkPacketBrokers_Delete_MaximumSet_Gen.
@@ -5869,7 +6410,7 @@ public final class NetworkPacketBrokersDeleteSamples {
*/
public final class NetworkPacketBrokersGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_Get.json
*/
/**
* Sample code: NetworkPacketBrokers_Get_MaximumSet_Gen.
@@ -5893,7 +6434,7 @@ public final class NetworkPacketBrokersGetByResourceGroupSamples {
*/
public final class NetworkPacketBrokersListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_ListBySubscription.json
*/
/**
* Sample code: NetworkPacketBrokers_ListBySubscription_MaximumSet_Gen.
@@ -5915,7 +6456,7 @@ public final class NetworkPacketBrokersListSamples {
*/
public final class NetworkPacketBrokersListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_ListByResourceGroup.json
*/
/**
* Sample code: NetworkPacketBrokers_ListByResourceGroup_MaximumSet_Gen.
@@ -5935,6 +6476,7 @@ public final class NetworkPacketBrokersListByResourceGroupSamples {
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentityPatch;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentityType;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkPacketBroker;
+import com.azure.resourcemanager.managednetworkfabric.models.NetworkPacketBrokerPatchProperties;
import com.azure.resourcemanager.managednetworkfabric.models.UserAssignedIdentity;
import java.util.HashMap;
import java.util.Map;
@@ -5944,7 +6486,7 @@ import java.util.Map;
*/
public final class NetworkPacketBrokersUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkPacketBrokers_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkPacketBrokers_Update.json
*/
/**
* Sample code: NetworkPacketBrokers_Update_MaximumSet_Gen.
@@ -5959,6 +6501,8 @@ public final class NetworkPacketBrokersUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf("keyId", "fakeTokenPlaceholder"))
+ .withProperties(new NetworkPacketBrokerPatchProperties().withSourceNetworkTapRuleId(
+ "/subscriptions/1234ABCD-0A1B-1234-5678-123456ABCDEF/resourcegroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkTapRules/example-networkTapRule"))
.withIdentity(new ManagedServiceIdentityPatch().withType(ManagedServiceIdentityType.NONE)
.withUserAssignedIdentities(mapOf("key8793", new UserAssignedIdentity())))
.apply();
@@ -5990,7 +6534,7 @@ import java.util.Map;
*/
public final class NetworkRacksCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_Create.json
*/
/**
* Sample code: NetworkRacks_Create_MaximumSet_Gen.
@@ -6033,7 +6577,7 @@ public final class NetworkRacksCreateSamples {
*/
public final class NetworkRacksDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_Delete.json
*/
/**
* Sample code: NetworkRacks_Delete_MaximumSet_Gen.
@@ -6055,7 +6599,7 @@ public final class NetworkRacksDeleteSamples {
*/
public final class NetworkRacksGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_Get.json
*/
/**
* Sample code: NetworkRacks_Get_MaximumSet_Gen.
@@ -6078,7 +6622,7 @@ public final class NetworkRacksGetByResourceGroupSamples {
*/
public final class NetworkRacksListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_ListBySubscription.json
*/
/**
* Sample code: NetworkRacks_ListBySubscription_MaximumSet_Gen.
@@ -6100,7 +6644,7 @@ public final class NetworkRacksListSamples {
*/
public final class NetworkRacksListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_ListByResourceGroup.json
*/
/**
* Sample code: NetworkRacks_ListByResourceGroup_MaximumSet_Gen.
@@ -6126,7 +6670,7 @@ import java.util.Map;
*/
public final class NetworkRacksUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkRacks_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkRacks_Update.json
*/
/**
* Sample code: NetworkRacks_Update_MaximumSet_Gen.
@@ -6192,7 +6736,7 @@ import java.util.Map;
*/
public final class NetworkTapRulesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_Create.json
*/
/**
* Sample code: NetworkTapRules_Create_MaximumSet_Gen.
@@ -6278,7 +6822,7 @@ public final class NetworkTapRulesCreateSamples {
*/
public final class NetworkTapRulesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_Delete.json
*/
/**
* Sample code: NetworkTapRules_Delete_MaximumSet_Gen.
@@ -6300,7 +6844,7 @@ public final class NetworkTapRulesDeleteSamples {
*/
public final class NetworkTapRulesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_Get.json
*/
/**
* Sample code: NetworkTapRules_Get_MaximumSet_Gen.
@@ -6323,7 +6867,7 @@ public final class NetworkTapRulesGetByResourceGroupSamples {
*/
public final class NetworkTapRulesListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_ListBySubscription.json
*/
/**
* Sample code: NetworkTapRules_ListBySubscription_MaximumSet_Gen.
@@ -6345,7 +6889,7 @@ public final class NetworkTapRulesListSamples {
*/
public final class NetworkTapRulesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_ListByResourceGroup.json
*/
/**
* Sample code: NetworkTapRules_ListByResourceGroup_MaximumSet_Gen.
@@ -6367,7 +6911,7 @@ public final class NetworkTapRulesListByResourceGroupSamples {
*/
public final class NetworkTapRulesResyncSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_Resync.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_Resync.json
*/
/**
* Sample code: NetworkTapRules_Resync_MaximumSet_Gen.
@@ -6419,7 +6963,7 @@ import java.util.Map;
*/
public final class NetworkTapRulesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_Update.json
*/
/**
* Sample code: NetworkTapRules_Update_MaximumSet_Gen.
@@ -6508,7 +7052,7 @@ import java.util.Arrays;
*/
public final class NetworkTapRulesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkTapRules_UpdateAdministrativeState_MaximumSet_Gen.
@@ -6535,7 +7079,7 @@ public final class NetworkTapRulesUpdateAdministrativeStateSamples {
*/
public final class NetworkTapRulesValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTapRules_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTapRules_ValidateConfiguration.json
*/
/**
* Sample code: NetworkTapRules_ValidateConfiguration_MaximumSet_Gen.
@@ -6570,7 +7114,7 @@ import java.util.Map;
*/
public final class NetworkTapsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_Create.json
*/
/**
* Sample code: NetworkTaps_Create_MaximumSet_Gen.
@@ -6624,7 +7168,7 @@ public final class NetworkTapsCreateSamples {
*/
public final class NetworkTapsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_Delete.json
*/
/**
* Sample code: NetworkTaps_Delete_MaximumSet_Gen.
@@ -6646,7 +7190,7 @@ public final class NetworkTapsDeleteSamples {
*/
public final class NetworkTapsGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_Get.json
*/
/**
* Sample code: NetworkTaps_Get_MaximumSet_Gen.
@@ -6669,7 +7213,7 @@ public final class NetworkTapsGetByResourceGroupSamples {
*/
public final class NetworkTapsListSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_ListBySubscription.json
*/
/**
* Sample code: NetworkTaps_ListBySubscription_MaximumSet_Gen.
@@ -6691,7 +7235,7 @@ public final class NetworkTapsListSamples {
*/
public final class NetworkTapsListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_ListByResourceGroup.json
*/
/**
* Sample code: NetworkTaps_ListByResourceGroup_MaximumSet_Gen.
@@ -6713,7 +7257,7 @@ public final class NetworkTapsListByResourceGroupSamples {
*/
public final class NetworkTapsResyncSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_Resync.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_Resync.json
*/
/**
* Sample code: NetworkTaps_Resync_MaximumSet_Gen.
@@ -6748,7 +7292,7 @@ import java.util.Map;
*/
public final class NetworkTapsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_Update.json
*/
/**
* Sample code: NetworkTaps_Update_MaximumSet_Gen.
@@ -6805,7 +7349,7 @@ import java.util.Arrays;
*/
public final class NetworkTapsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkTaps_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkTaps_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkTaps_UpdateAdministrativeState_MaximumSet_Gen.
@@ -6848,7 +7392,7 @@ import java.util.Arrays;
*/
public final class NetworkToNetworkInterconnectsCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_Create.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_Create.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_Create_MaximumSet_Gen.
@@ -6918,7 +7462,7 @@ public final class NetworkToNetworkInterconnectsCreateSamples {
*/
public final class NetworkToNetworkInterconnectsDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_Delete.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_Delete_MaximumSet_Gen.
@@ -6941,7 +7485,7 @@ public final class NetworkToNetworkInterconnectsDeleteSamples {
*/
public final class NetworkToNetworkInterconnectsGetSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_Get.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_Get.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_Get_MaximumSet_Gen.
@@ -6964,7 +7508,7 @@ public final class NetworkToNetworkInterconnectsGetSamples {
*/
public final class NetworkToNetworkInterconnectsListByNetworkFabricSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_ListByNetworkFabric.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_ListByNetworkFabric.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_ListByNetworkFabric_MaximumSet_Gen.
@@ -7002,7 +7546,7 @@ import java.util.Arrays;
*/
public final class NetworkToNetworkInterconnectsUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_Update.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_Update.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_Update_MaximumSet_Gen.
@@ -7070,7 +7614,7 @@ import java.util.Arrays;
*/
public final class NetworkToNetworkInterconnectsUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_UpdateAdministrativeState.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_UpdateAdministrativeState_MaximumSet_Gen.
@@ -7081,9 +7625,7 @@ public final class NetworkToNetworkInterconnectsUpdateAdministrativeStateSamples
com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager) {
manager.networkToNetworkInterconnects()
.updateAdministrativeState("example-rg", "example-nf", "example-nni",
- new UpdateAdministrativeState().withResourceIds(Arrays.asList(
- "/subscriptions/0000ABCD-0A0B-0000-0000-000000ABCDEF/resourceGroups/example-rg/providers/Microsoft.ManagedNetworkFabric/networkFabrics/example-nf/networkToNetworkInterconnects/example-nni"))
- .withState(EnableDisableState.ENABLE),
+ new UpdateAdministrativeState().withResourceIds(Arrays.asList("")).withState(EnableDisableState.ENABLE),
com.azure.core.util.Context.NONE);
}
}
@@ -7101,7 +7643,7 @@ import com.azure.resourcemanager.managednetworkfabric.models.RouteType;
*/
public final class NetworkToNetworkInterconnectsUpdateBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_UpdateBfdAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/NetworkToNetworkInterconnects_UpdateBfdAdministrativeState.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_UpdateBfdAdministrativeState.
@@ -7129,9 +7671,10 @@ import java.util.Arrays;
/**
* Samples for NetworkToNetworkInterconnects UpdateNpbStaticRouteBfdAdministrativeState.
*/
-public final class NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStSamples {
+public final class NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/NetworkToNetworkInterconnects_UpdateNpbStaticRouteBfdAdministrativeState.json
+ * x-ms-original-file:
+ * 2026-01-15-preview/NetworkToNetworkInterconnects_UpdateNpbStaticRouteBfdAdministrativeState.json
*/
/**
* Sample code: NetworkToNetworkInterconnects_UpdateNpbStaticRouteBfdAdministrativeState.
@@ -7156,7 +7699,7 @@ public final class NetworkToNetworkInterconnectsUpdateNpbStaticRouteBfdAdministr
*/
public final class OperationsListSamples {
/*
- * x-ms-original-file: 2025-07-15/Operations_List.json
+ * x-ms-original-file: 2026-01-15-preview/Operations_List.json
*/
/**
* Sample code: Operations_List_MaximumSet_Gen.
@@ -7178,7 +7721,7 @@ public final class OperationsListSamples {
*/
public final class RoutePoliciesCommitConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_CommitConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_CommitConfiguration.json
*/
/**
* Sample code: RoutePolicies_CommitConfiguration_MaximumSet_Gen.
@@ -7216,7 +7759,7 @@ import java.util.Map;
*/
public final class RoutePoliciesCreateSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_Create.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_Create.json
*/
/**
* Sample code: RoutePolicies_Create_MaximumSet_Gen.
@@ -7285,7 +7828,7 @@ public final class RoutePoliciesCreateSamples {
*/
public final class RoutePoliciesDeleteSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_Delete.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_Delete.json
*/
/**
* Sample code: RoutePolicies_Delete_MaximumSet_Gen.
@@ -7307,7 +7850,7 @@ public final class RoutePoliciesDeleteSamples {
*/
public final class RoutePoliciesGetByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_Get.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_Get.json
*/
/**
* Sample code: RoutePolicies_Get_MaximumSet_Gen.
@@ -7330,7 +7873,7 @@ public final class RoutePoliciesGetByResourceGroupSamples {
*/
public final class RoutePoliciesListSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_ListBySubscription.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_ListBySubscription.json
*/
/**
* Sample code: RoutePolicies_ListBySubscription_MaximumSet_Gen.
@@ -7352,7 +7895,7 @@ public final class RoutePoliciesListSamples {
*/
public final class RoutePoliciesListByResourceGroupSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_ListByResourceGroup.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_ListByResourceGroup.json
*/
/**
* Sample code: RoutePolicies_ListByResourceGroup_MaximumSet_Gen.
@@ -7389,7 +7932,7 @@ import java.util.Map;
*/
public final class RoutePoliciesUpdateSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_Update.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_Update.json
*/
/**
* Sample code: RoutePolicies_Update_MaximumSet_Gen.
@@ -7459,7 +8002,7 @@ import java.util.Arrays;
*/
public final class RoutePoliciesUpdateAdministrativeStateSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_UpdateAdministrativeState.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_UpdateAdministrativeState.json
*/
/**
* Sample code: RoutePolicies_UpdateAdministrativeState_MaximumSet_Gen.
@@ -7484,7 +8027,7 @@ public final class RoutePoliciesUpdateAdministrativeStateSamples {
*/
public final class RoutePoliciesValidateConfigurationSamples {
/*
- * x-ms-original-file: 2025-07-15/RoutePolicies_ValidateConfiguration.json
+ * x-ms-original-file: 2026-01-15-preview/RoutePolicies_ValidateConfiguration.json
*/
/**
* Sample code: RoutePolicies_ValidateConfiguration_MaximumSet_Gen.
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/pom.xml b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/pom.xml
index 3ebd0a34fae2a..25ce74a1d5e8e 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/pom.xml
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for Managed Network Fabric Management
- This package contains Microsoft Azure SDK for Managed Network Fabric Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Self service experience for Azure Network Fabric API. Package api-version 2025-07-15.
+ This package contains Microsoft Azure SDK for Managed Network Fabric Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Self service experience for Azure Network Fabric API. Package api-version 2026-01-15-preview.
https://github.com/Azure/azure-sdk-for-java
@@ -45,6 +45,7 @@
UTF-8
0
0
+ true
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/ManagedNetworkFabricManager.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/ManagedNetworkFabricManager.java
index 2011a02ae3086..6d43a94a6f1f4 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/ManagedNetworkFabricManager.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/ManagedNetworkFabricManager.java
@@ -26,7 +26,9 @@
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.managednetworkfabric.fluent.ManagedNetworkFabricManagementClient;
import com.azure.resourcemanager.managednetworkfabric.implementation.AccessControlListsImpl;
+import com.azure.resourcemanager.managednetworkfabric.implementation.EdgeConnectorsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.ExternalNetworksImpl;
+import com.azure.resourcemanager.managednetworkfabric.implementation.FabricsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.InternalNetworksImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.InternetGatewayRulesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.InternetGatewaysImpl;
@@ -54,7 +56,9 @@
import com.azure.resourcemanager.managednetworkfabric.implementation.OperationsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.RoutePoliciesImpl;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlLists;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectors;
import com.azure.resourcemanager.managednetworkfabric.models.ExternalNetworks;
+import com.azure.resourcemanager.managednetworkfabric.models.Fabrics;
import com.azure.resourcemanager.managednetworkfabric.models.InternalNetworks;
import com.azure.resourcemanager.managednetworkfabric.models.InternetGatewayRules;
import com.azure.resourcemanager.managednetworkfabric.models.InternetGateways;
@@ -147,6 +151,10 @@ public final class ManagedNetworkFabricManager {
private NetworkBootstrapInterfaces networkBootstrapInterfaces;
+ private EdgeConnectors edgeConnectors;
+
+ private Fabrics fabrics;
+
private final ManagedNetworkFabricManagementClient clientObject;
private ManagedNetworkFabricManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -690,6 +698,30 @@ public NetworkBootstrapInterfaces networkBootstrapInterfaces() {
return networkBootstrapInterfaces;
}
+ /**
+ * Gets the resource collection API of EdgeConnectors. It manages EdgeConnector.
+ *
+ * @return Resource collection API of EdgeConnectors.
+ */
+ public EdgeConnectors edgeConnectors() {
+ if (this.edgeConnectors == null) {
+ this.edgeConnectors = new EdgeConnectorsImpl(clientObject.getEdgeConnectors(), this);
+ }
+ return edgeConnectors;
+ }
+
+ /**
+ * Gets the resource collection API of Fabrics. It manages Fabric.
+ *
+ * @return Resource collection API of Fabrics.
+ */
+ public Fabrics fabrics() {
+ if (this.fabrics == null) {
+ this.fabrics = new FabricsImpl(clientObject.getFabrics(), this);
+ }
+ return fabrics;
+ }
+
/**
* Gets wrapped service client ManagedNetworkFabricManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/AccessControlListsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/AccessControlListsClient.java
index bc361ccb8aa6b..57e80895cd60d 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/AccessControlListsClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/AccessControlListsClient.java
@@ -14,7 +14,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.AccessControlListInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListPatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -404,7 +404,7 @@ CommonPostActionResponseForStateUpdateInner resync(String resourceGroupName, Str
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String accessControlListName);
/**
@@ -419,7 +419,7 @@ CommonPostActionResponseForStateUpdateInner resync(String resourceGroupName, Str
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String accessControlListName, Context context);
/**
@@ -433,7 +433,7 @@ CommonPostActionResponseForStateUpdateInner resync(String resourceGroupName, Str
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String accessControlListName);
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String accessControlListName);
/**
* Implements the operation to the underlying resources.
@@ -447,6 +447,6 @@ CommonPostActionResponseForStateUpdateInner resync(String resourceGroupName, Str
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String accessControlListName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String accessControlListName,
Context context);
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/EdgeConnectorsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/EdgeConnectorsClient.java
new file mode 100644
index 0000000000000..c39c66604afed
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/EdgeConnectorsClient.java
@@ -0,0 +1,277 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.EdgeConnectorInner;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorPatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeConnectorsClient.
+ */
+public interface EdgeConnectorsClient {
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @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 specified EdgeConnector along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String edgeConnectorName,
+ Context context);
+
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @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 specified EdgeConnector.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeConnectorInner getByResourceGroup(String resourceGroupName, String edgeConnectorName);
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeConnectorInner> beginCreate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorInner body);
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeConnectorInner> beginCreate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorInner body, Context context);
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeConnectorInner create(String resourceGroupName, String edgeConnectorName, EdgeConnectorInner body);
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeConnectorInner create(String resourceGroupName, String edgeConnectorName, EdgeConnectorInner body,
+ Context context);
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeConnectorInner> beginUpdate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorPatch body);
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EdgeConnectorInner> beginUpdate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorPatch body, Context context);
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeConnectorInner update(String resourceGroupName, String edgeConnectorName, EdgeConnectorPatch body);
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EdgeConnectorInner update(String resourceGroupName, String edgeConnectorName, EdgeConnectorPatch body,
+ Context context);
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeConnectorName);
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String edgeConnectorName, Context context);
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String edgeConnectorName);
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String edgeConnectorName, Context context);
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @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 EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists EdgeConnectors by 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 the response of a EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @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 EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/FabricsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/FabricsClient.java
new file mode 100644
index 0000000000000..16a001a52ebad
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/FabricsClient.java
@@ -0,0 +1,270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.FabricInner;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricPatch;
+
+/**
+ * An instance of this class provides access to all the operations defined in FabricsClient.
+ */
+public interface FabricsClient {
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @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 specified Fabric along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String fabricName, Context context);
+
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @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 specified Fabric.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FabricInner getByResourceGroup(String resourceGroupName, String fabricName);
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FabricInner> beginCreate(String resourceGroupName, String fabricName,
+ FabricInner body);
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FabricInner> beginCreate(String resourceGroupName, String fabricName,
+ FabricInner body, Context context);
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FabricInner create(String resourceGroupName, String fabricName, FabricInner body);
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FabricInner create(String resourceGroupName, String fabricName, FabricInner body, Context context);
+
+ /**
+ * Updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Fabric properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FabricInner> beginUpdate(String resourceGroupName, String fabricName,
+ FabricPatch body);
+
+ /**
+ * Updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Fabric properties to update.
+ * @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 represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, FabricInner> beginUpdate(String resourceGroupName, String fabricName,
+ FabricPatch body, Context context);
+
+ /**
+ * Updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Fabric properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return represents a physical network deployment hosting infrastructure network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FabricInner update(String resourceGroupName, String fabricName, FabricPatch body);
+
+ /**
+ * Updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Fabric properties to update.
+ * @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 represents a physical network deployment hosting infrastructure network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ FabricInner update(String resourceGroupName, String fabricName, FabricPatch body, Context context);
+
+ /**
+ * Deletes the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String fabricName);
+
+ /**
+ * Deletes the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String fabricName, Context context);
+
+ /**
+ * Deletes the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String fabricName);
+
+ /**
+ * Deletes the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String fabricName, Context context);
+
+ /**
+ * Lists Fabrics by resource group.
+ *
+ * @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 Fabric list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Lists Fabrics by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @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 Fabric list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * Lists Fabrics by 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 the response of a Fabric list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists Fabrics by subscription.
+ *
+ * @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 Fabric list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L2IsolationDomainsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L2IsolationDomainsClient.java
index a0238fe0c964a..ef404b82335d0 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L2IsolationDomainsClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L2IsolationDomainsClient.java
@@ -14,7 +14,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.L2IsolationDomainInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.L2IsolationDomainPatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -351,7 +351,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String l2IsolationDomainName);
/**
@@ -366,7 +366,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String l2IsolationDomainName, Context context);
/**
@@ -380,7 +380,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String l2IsolationDomainName);
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String l2IsolationDomainName);
/**
* Validates the configuration of the resources.
@@ -394,7 +394,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String l2IsolationDomainName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String l2IsolationDomainName,
Context context);
/**
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L3IsolationDomainsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L3IsolationDomainsClient.java
index 9e47515d958a6..c9cda6a9dbd19 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L3IsolationDomainsClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/L3IsolationDomainsClient.java
@@ -14,7 +14,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.L3IsolationDomainInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.L3IsolationDomainPatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -355,7 +355,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String l3IsolationDomainName);
/**
@@ -370,7 +370,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String l3IsolationDomainName, Context context);
/**
@@ -384,7 +384,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String l3IsolationDomainName);
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String l3IsolationDomainName);
/**
* Validates the configuration of the resources.
@@ -398,7 +398,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String l3IsolationDomainName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String l3IsolationDomainName,
Context context);
/**
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/ManagedNetworkFabricManagementClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/ManagedNetworkFabricManagementClient.java
index 83504c087e976..5a35994cdb38d 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/ManagedNetworkFabricManagementClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/ManagedNetworkFabricManagementClient.java
@@ -234,4 +234,18 @@ public interface ManagedNetworkFabricManagementClient {
* @return the NetworkBootstrapInterfacesClient object.
*/
NetworkBootstrapInterfacesClient getNetworkBootstrapInterfaces();
+
+ /**
+ * Gets the EdgeConnectorsClient object to access its operations.
+ *
+ * @return the EdgeConnectorsClient object.
+ */
+ EdgeConnectorsClient getEdgeConnectors();
+
+ /**
+ * Gets the FabricsClient object to access its operations.
+ *
+ * @return the FabricsClient object.
+ */
+ FabricsClient getFabrics();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkFabricsClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkFabricsClient.java
index 41e98d71b5eed..afed9bb29d0d6 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkFabricsClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkFabricsClient.java
@@ -23,13 +23,14 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkFabricRotatePasswordsResponseInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.OperationStatusResultInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.ViewDeviceConfigurationOperationResponseInner;
import com.azure.resourcemanager.managednetworkfabric.models.CommitBatchStatusRequest;
import com.azure.resourcemanager.managednetworkfabric.models.CommitConfigurationRequest;
import com.azure.resourcemanager.managednetworkfabric.models.DiscardCommitBatchRequest;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricLockRequest;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricPatch;
+import com.azure.resourcemanager.managednetworkfabric.models.RefreshConfigurationRequestProperties;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.UpgradeNetworkFabricProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationProperties;
@@ -480,6 +481,7 @@ OperationStatusResultInner upgrade(String resourceGroupName, String networkFabri
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkFabricName Name of the Network Fabric.
+ * @param body Request payload.
* @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.
@@ -487,8 +489,9 @@ OperationStatusResultInner upgrade(String resourceGroupName, String networkFabri
* @return the {@link SyncPoller} for polling of the current status of an async operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, OperationStatusResultInner>
- beginRefreshConfiguration(String resourceGroupName, String networkFabricName, Context context);
+ SyncPoller, OperationStatusResultInner> beginRefreshConfiguration(
+ String resourceGroupName, String networkFabricName, RefreshConfigurationRequestProperties body,
+ Context context);
/**
* Refreshes the configuration of the underlying resources in the given Network Fabric instance.
@@ -508,6 +511,7 @@ OperationStatusResultInner upgrade(String resourceGroupName, String networkFabri
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param networkFabricName Name of the Network Fabric.
+ * @param body Request payload.
* @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.
@@ -516,7 +520,7 @@ OperationStatusResultInner upgrade(String resourceGroupName, String networkFabri
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OperationStatusResultInner refreshConfiguration(String resourceGroupName, String networkFabricName,
- Context context);
+ RefreshConfigurationRequestProperties body, Context context);
/**
* Updates the Workload Management BFD Configuration of the underlying resources in the given Network Fabric
@@ -662,7 +666,7 @@ UpdateAdministrativeStateResponseInner updateInfraManagementBfdConfiguration(Str
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String networkFabricName,
ValidateConfigurationProperties body);
@@ -679,7 +683,7 @@ UpdateAdministrativeStateResponseInner updateInfraManagementBfdConfiguration(Str
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String networkFabricName,
ValidateConfigurationProperties body, Context context);
@@ -695,7 +699,7 @@ UpdateAdministrativeStateResponseInner updateInfraManagementBfdConfiguration(Str
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String networkFabricName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String networkFabricName,
ValidateConfigurationProperties body);
/**
@@ -711,7 +715,7 @@ ValidateConfigurationResponseInner validateConfiguration(String resourceGroupNam
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String networkFabricName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String networkFabricName,
ValidateConfigurationProperties body, Context context);
/**
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkTapRulesClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkTapRulesClient.java
index 4535193990221..2c754789ce2d6 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkTapRulesClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/NetworkTapRulesClient.java
@@ -14,7 +14,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkTapRuleInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.NetworkTapRuleResyncResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkTapRulePatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -403,7 +403,7 @@ CommonPostActionResponseForStateUpdateInner updateAdministrativeState(String res
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String networkTapRuleName);
/**
@@ -418,7 +418,7 @@ CommonPostActionResponseForStateUpdateInner updateAdministrativeState(String res
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String networkTapRuleName, Context context);
/**
@@ -432,7 +432,7 @@ CommonPostActionResponseForStateUpdateInner updateAdministrativeState(String res
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String networkTapRuleName);
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String networkTapRuleName);
/**
* Implements the operation to the underlying resources.
@@ -446,6 +446,6 @@ CommonPostActionResponseForStateUpdateInner updateAdministrativeState(String res
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String networkTapRuleName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String networkTapRuleName,
Context context);
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/RoutePoliciesClient.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/RoutePoliciesClient.java
index e5f95a00bb498..755012f4909ec 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/RoutePoliciesClient.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/RoutePoliciesClient.java
@@ -14,7 +14,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.RoutePolicyInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.RoutePolicyPatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -344,7 +344,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String routePolicyName);
/**
@@ -359,7 +359,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ValidateConfigurationResponseInner>
+ SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String routePolicyName, Context context);
/**
@@ -373,7 +373,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String routePolicyName);
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String routePolicyName);
/**
* Validates the configuration of the resources.
@@ -387,7 +387,7 @@ UpdateAdministrativeStateResponseInner updateAdministrativeState(String resource
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName, String routePolicyName,
+ ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName, String routePolicyName,
Context context);
/**
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/EdgeConnectorInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/EdgeConnectorInner.java
new file mode 100644
index 0000000000000..8c248d17034d5
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/EdgeConnectorInner.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.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.managednetworkfabric.models.EdgeConnectorProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * EdgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is connected to
+ * Azure.
+ */
+@Fluent
+public final class EdgeConnectorInner extends Resource {
+ /*
+ * EdgeConnector properties.
+ */
+ private EdgeConnectorProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of EdgeConnectorInner class.
+ */
+ public EdgeConnectorInner() {
+ }
+
+ /**
+ * Get the properties property: EdgeConnector properties.
+ *
+ * @return the properties value.
+ */
+ public EdgeConnectorProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: EdgeConnector properties.
+ *
+ * @param properties the properties value to set.
+ * @return the EdgeConnectorInner object itself.
+ */
+ public EdgeConnectorInner withProperties(EdgeConnectorProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeConnectorInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public EdgeConnectorInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EdgeConnectorInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EdgeConnectorInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EdgeConnectorInner.
+ */
+ public static EdgeConnectorInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EdgeConnectorInner deserializedEdgeConnectorInner = new EdgeConnectorInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEdgeConnectorInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEdgeConnectorInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEdgeConnectorInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedEdgeConnectorInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedEdgeConnectorInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedEdgeConnectorInner.properties = EdgeConnectorProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEdgeConnectorInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEdgeConnectorInner;
+ });
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/FabricInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/FabricInner.java
new file mode 100644
index 0000000000000..4f7b01f72d33b
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/FabricInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.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.managednetworkfabric.models.FabricProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * Represents a physical network deployment hosting infrastructure network configuration.
+ */
+@Fluent
+public final class FabricInner extends Resource {
+ /*
+ * Fabric properties.
+ */
+ private FabricProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of FabricInner class.
+ */
+ public FabricInner() {
+ }
+
+ /**
+ * Get the properties property: Fabric properties.
+ *
+ * @return the properties value.
+ */
+ public FabricProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Fabric properties.
+ *
+ * @param properties the properties value to set.
+ * @return the FabricInner object itself.
+ */
+ public FabricInner withProperties(FabricProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * 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.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FabricInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public FabricInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("location", location());
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of FabricInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of FabricInner if the JsonReader was pointing to an instance of it, or null if it was
+ * pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the FabricInner.
+ */
+ public static FabricInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ FabricInner deserializedFabricInner = new FabricInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedFabricInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedFabricInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedFabricInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedFabricInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedFabricInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedFabricInner.properties = FabricProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedFabricInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedFabricInner;
+ });
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupInner.java
index c531687617386..804bc4962acbd 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupInner.java
@@ -10,6 +10,7 @@
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
@@ -246,6 +247,15 @@ public ConfigurationState configurationState() {
return this.innerProperties() == null ? null : this.innerProperties().configurationState();
}
+ /**
+ * Get the administrativeState property: Administrative state of the resource.
+ *
+ * @return the administrativeState value.
+ */
+ public AdministrativeState administrativeState() {
+ return this.innerProperties() == null ? null : this.innerProperties().administrativeState();
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupProperties.java
index c093a4a6e4aa6..8bbaa627d542a 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NeighborGroupProperties.java
@@ -9,6 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.NeighborGroupDestination;
@@ -61,6 +62,11 @@ public final class NeighborGroupProperties implements JsonSerializable controlPlaneAcls() {
+ return this.innerProperties() == null ? null : this.innerProperties().controlPlaneAcls();
+ }
+
+ /**
+ * Set the controlPlaneAcls property: Control Plane Access Control List ARM resource IDs.
+ *
+ * @param controlPlaneAcls the controlPlaneAcls value to set.
+ * @return the NetworkBootstrapDeviceInner object itself.
+ */
+ public NetworkBootstrapDeviceInner withControlPlaneAcls(List controlPlaneAcls) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkBootstrapDeviceProperties();
+ }
+ this.innerProperties().withControlPlaneAcls(controlPlaneAcls);
+ return this;
+ }
+
/**
* Get the version property: Current version of the device as defined in SKU.
*
@@ -328,6 +354,25 @@ public ConfigurationState configurationState() {
return this.innerProperties() == null ? null : this.innerProperties().configurationState();
}
+ /**
+ * Get the operationalState property: Operational state of networkBootstrapDevice indicating if the device is
+ * reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
+ /**
+ * Get the secretRotationStatus property: Secret rotation status for the terminal server's secrets.
+ *
+ * @return the secretRotationStatus value.
+ */
+ public List secretRotationStatus() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretRotationStatus();
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDevicePatchProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDevicePatchProperties.java
index 3876a144f36fa..717e94d9455d0 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDevicePatchProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDevicePatchProperties.java
@@ -10,6 +10,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
+import java.util.List;
/**
* Network Bootstrap Device Patch properties.
@@ -32,6 +33,11 @@ public final class NetworkBootstrapDevicePatchProperties
*/
private String serialNumber;
+ /*
+ * Control Plane Access Control List ARM resource IDs.
+ */
+ private List controlPlaneAcls;
+
/**
* Creates an instance of NetworkBootstrapDevicePatchProperties class.
*/
@@ -100,6 +106,26 @@ public NetworkBootstrapDevicePatchProperties withSerialNumber(String serialNumbe
return this;
}
+ /**
+ * Get the controlPlaneAcls property: Control Plane Access Control List ARM resource IDs.
+ *
+ * @return the controlPlaneAcls value.
+ */
+ public List controlPlaneAcls() {
+ return this.controlPlaneAcls;
+ }
+
+ /**
+ * Set the controlPlaneAcls property: Control Plane Access Control List ARM resource IDs.
+ *
+ * @param controlPlaneAcls the controlPlaneAcls value to set.
+ * @return the NetworkBootstrapDevicePatchProperties object itself.
+ */
+ public NetworkBootstrapDevicePatchProperties withControlPlaneAcls(List controlPlaneAcls) {
+ this.controlPlaneAcls = controlPlaneAcls;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -109,6 +135,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("annotation", this.annotation);
jsonWriter.writeStringField("hostName", this.hostName);
jsonWriter.writeStringField("serialNumber", this.serialNumber);
+ jsonWriter.writeArrayField("controlPlaneAcls", this.controlPlaneAcls,
+ (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -134,6 +162,9 @@ public static NetworkBootstrapDevicePatchProperties fromJson(JsonReader jsonRead
deserializedNetworkBootstrapDevicePatchProperties.hostName = reader.getString();
} else if ("serialNumber".equals(fieldName)) {
deserializedNetworkBootstrapDevicePatchProperties.serialNumber = reader.getString();
+ } else if ("controlPlaneAcls".equals(fieldName)) {
+ List controlPlaneAcls = reader.readArray(reader1 -> reader1.getString());
+ deserializedNetworkBootstrapDevicePatchProperties.controlPlaneAcls = controlPlaneAcls;
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDeviceProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDeviceProperties.java
index 3991acea4403c..9f1f6d92ffa7c 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDeviceProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapDeviceProperties.java
@@ -11,8 +11,11 @@
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretRotationStatus;
import java.io.IOException;
+import java.util.List;
/**
* Network Bootstrap Device Properties defines the properties of the resource.
@@ -34,6 +37,11 @@ public final class NetworkBootstrapDeviceProperties implements JsonSerializable<
*/
private String serialNumber;
+ /*
+ * Control Plane Access Control List ARM resource IDs.
+ */
+ private List controlPlaneAcls;
+
/*
* Current version of the device as defined in SKU.
*/
@@ -89,6 +97,16 @@ public final class NetworkBootstrapDeviceProperties implements JsonSerializable<
*/
private ConfigurationState configurationState;
+ /*
+ * Operational state of networkBootstrapDevice indicating if the device is reachable and services are available.
+ */
+ private OperationalState operationalState;
+
+ /*
+ * Secret rotation status for the terminal server's secrets.
+ */
+ private List secretRotationStatus;
+
/**
* Creates an instance of NetworkBootstrapDeviceProperties class.
*/
@@ -157,6 +175,26 @@ public NetworkBootstrapDeviceProperties withSerialNumber(String serialNumber) {
return this;
}
+ /**
+ * Get the controlPlaneAcls property: Control Plane Access Control List ARM resource IDs.
+ *
+ * @return the controlPlaneAcls value.
+ */
+ public List controlPlaneAcls() {
+ return this.controlPlaneAcls;
+ }
+
+ /**
+ * Set the controlPlaneAcls property: Control Plane Access Control List ARM resource IDs.
+ *
+ * @param controlPlaneAcls the controlPlaneAcls value to set.
+ * @return the NetworkBootstrapDeviceProperties object itself.
+ */
+ public NetworkBootstrapDeviceProperties withControlPlaneAcls(List controlPlaneAcls) {
+ this.controlPlaneAcls = controlPlaneAcls;
+ return this;
+ }
+
/**
* Get the version property: Current version of the device as defined in SKU.
*
@@ -267,6 +305,25 @@ public ConfigurationState configurationState() {
return this.configurationState;
}
+ /**
+ * Get the operationalState property: Operational state of networkBootstrapDevice indicating if the device is
+ * reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.operationalState;
+ }
+
+ /**
+ * Get the secretRotationStatus property: Secret rotation status for the terminal server's secrets.
+ *
+ * @return the secretRotationStatus value.
+ */
+ public List secretRotationStatus() {
+ return this.secretRotationStatus;
+ }
+
/**
* {@inheritDoc}
*/
@@ -276,6 +333,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("annotation", this.annotation);
jsonWriter.writeStringField("hostName", this.hostName);
jsonWriter.writeStringField("serialNumber", this.serialNumber);
+ jsonWriter.writeArrayField("controlPlaneAcls", this.controlPlaneAcls,
+ (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("networkDeviceSku", this.networkDeviceSku);
return jsonWriter.writeEndObject();
}
@@ -302,6 +361,9 @@ public static NetworkBootstrapDeviceProperties fromJson(JsonReader jsonReader) t
deserializedNetworkBootstrapDeviceProperties.hostName = reader.getString();
} else if ("serialNumber".equals(fieldName)) {
deserializedNetworkBootstrapDeviceProperties.serialNumber = reader.getString();
+ } else if ("controlPlaneAcls".equals(fieldName)) {
+ List controlPlaneAcls = reader.readArray(reader1 -> reader1.getString());
+ deserializedNetworkBootstrapDeviceProperties.controlPlaneAcls = controlPlaneAcls;
} else if ("version".equals(fieldName)) {
deserializedNetworkBootstrapDeviceProperties.version = reader.getString();
} else if ("networkDeviceSku".equals(fieldName)) {
@@ -327,6 +389,13 @@ public static NetworkBootstrapDeviceProperties fromJson(JsonReader jsonReader) t
} else if ("configurationState".equals(fieldName)) {
deserializedNetworkBootstrapDeviceProperties.configurationState
= ConfigurationState.fromString(reader.getString());
+ } else if ("operationalState".equals(fieldName)) {
+ deserializedNetworkBootstrapDeviceProperties.operationalState
+ = OperationalState.fromString(reader.getString());
+ } else if ("secretRotationStatus".equals(fieldName)) {
+ List secretRotationStatus
+ = reader.readArray(reader1 -> SecretRotationStatus.fromJson(reader1));
+ deserializedNetworkBootstrapDeviceProperties.secretRotationStatus = secretRotationStatus;
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceInner.java
index 5ac848745767f..333f573dde600 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceInner.java
@@ -13,6 +13,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.AdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.InterfaceType;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import java.io.IOException;
@@ -229,6 +230,16 @@ public NetworkBootstrapInterfaceInner withSerialNumber(String serialNumber) {
return this;
}
+ /**
+ * Get the operationalState property: Operational state of networkBootstrapInterface indicating if the interface is
+ * reachable.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
/**
* Get the annotation property: Switch configuration description.
*
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceProperties.java
index c8010e02eea2f..b795435cae1a2 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkBootstrapInterfaceProperties.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.AnnotationResource;
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.InterfaceType;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import java.io.IOException;
@@ -75,6 +76,11 @@ public final class NetworkBootstrapInterfaceProperties extends AnnotationResourc
*/
private String serialNumber;
+ /*
+ * Operational state of networkBootstrapInterface indicating if the interface is reachable
+ */
+ private OperationalState operationalState;
+
/**
* Creates an instance of NetworkBootstrapInterfaceProperties class.
*/
@@ -204,6 +210,16 @@ public NetworkBootstrapInterfaceProperties withSerialNumber(String serialNumber)
return this;
}
+ /**
+ * Get the operationalState property: Operational state of networkBootstrapInterface indicating if the interface is
+ * reachable.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.operationalState;
+ }
+
/**
* {@inheritDoc}
*/
@@ -269,6 +285,9 @@ public static NetworkBootstrapInterfaceProperties fromJson(JsonReader jsonReader
deserializedNetworkBootstrapInterfaceProperties.ipv6Address = reader.getString();
} else if ("serialNumber".equals(fieldName)) {
deserializedNetworkBootstrapInterfaceProperties.serialNumber = reader.getString();
+ } else if ("operationalState".equals(fieldName)) {
+ deserializedNetworkBootstrapInterfaceProperties.operationalState
+ = OperationalState.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceInner.java
index 0afc9f71c5519..a2706c67a1651 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceInner.java
@@ -17,6 +17,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkDeviceRole;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.SecretRotationStatus;
import java.io.IOException;
@@ -359,6 +360,16 @@ public AdministrativeState administrativeState() {
return this.innerProperties() == null ? null : this.innerProperties().administrativeState();
}
+ /**
+ * Get the operationalState property: Operational state of networkDevice indicating if the device is reachable and
+ * services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
/**
* Get the secretRotationStatus property: Secret rotation status for the device's secrets.
*
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceProperties.java
index a83bba23fac5c..ae2e4825b3bff 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkDeviceProperties.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.IdentitySelector;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkDeviceRole;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.SecretRotationStatus;
import java.io.IOException;
@@ -101,6 +102,11 @@ public final class NetworkDeviceProperties implements JsonSerializable secretRotationStatus
= reader.readArray(reader1 -> SecretRotationStatus.fromJson(reader1));
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerInner.java
index 59b869c35dc38..98cff8e13f49b 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerInner.java
@@ -17,7 +17,9 @@
import com.azure.resourcemanager.managednetworkfabric.models.ManagedResourceGroupConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.NfcSku;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
+import com.azure.resourcemanager.managednetworkfabric.models.VmProfile;
import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -406,6 +408,39 @@ public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Get the operationalState property: Operational state of networkFabricController indicating if the resources of
+ * the controller are reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
+ /**
+ * Get the vmProfile property: The VM profile configuration for the NFC's associated compute (VM) resources.
+ *
+ * @return the vmProfile value.
+ */
+ public VmProfile vmProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().vmProfile();
+ }
+
+ /**
+ * Set the vmProfile property: The VM profile configuration for the NFC's associated compute (VM) resources.
+ *
+ * @param vmProfile the vmProfile value to set.
+ * @return the NetworkFabricControllerInner object itself.
+ */
+ public NetworkFabricControllerInner withVmProfile(VmProfile vmProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkFabricControllerProperties();
+ }
+ this.innerProperties().withVmProfile(vmProfile);
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerProperties.java
index 7ce12358f4c32..2116f1a079269 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricControllerProperties.java
@@ -15,7 +15,9 @@
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedResourceGroupConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.NfcSku;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
+import com.azure.resourcemanager.managednetworkfabric.models.VmProfile;
import java.io.IOException;
import java.util.List;
@@ -98,6 +100,17 @@ public final class NetworkFabricControllerProperties implements JsonSerializable
*/
private ProvisioningState provisioningState;
+ /*
+ * Operational state of networkFabricController indicating if the resources of the controller are reachable and
+ * services are available.
+ */
+ private OperationalState operationalState;
+
+ /*
+ * The VM profile configuration for the NFC's associated compute (VM) resources.
+ */
+ private VmProfile vmProfile;
+
/**
* Creates an instance of NetworkFabricControllerProperties class.
*/
@@ -337,6 +350,36 @@ public ProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Get the operationalState property: Operational state of networkFabricController indicating if the resources of
+ * the controller are reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.operationalState;
+ }
+
+ /**
+ * Get the vmProfile property: The VM profile configuration for the NFC's associated compute (VM) resources.
+ *
+ * @return the vmProfile value.
+ */
+ public VmProfile vmProfile() {
+ return this.vmProfile;
+ }
+
+ /**
+ * Set the vmProfile property: The VM profile configuration for the NFC's associated compute (VM) resources.
+ *
+ * @param vmProfile the vmProfile value to set.
+ * @return the NetworkFabricControllerProperties object itself.
+ */
+ public NetworkFabricControllerProperties withVmProfile(VmProfile vmProfile) {
+ this.vmProfile = vmProfile;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -356,6 +399,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("ipv4AddressSpace", this.ipv4AddressSpace);
jsonWriter.writeStringField("ipv6AddressSpace", this.ipv6AddressSpace);
jsonWriter.writeStringField("nfcSku", this.nfcSku == null ? null : this.nfcSku.toString());
+ jsonWriter.writeJsonField("vmProfile", this.vmProfile);
return jsonWriter.writeEndObject();
}
@@ -417,6 +461,11 @@ public static NetworkFabricControllerProperties fromJson(JsonReader jsonReader)
} else if ("provisioningState".equals(fieldName)) {
deserializedNetworkFabricControllerProperties.provisioningState
= ProvisioningState.fromString(reader.getString());
+ } else if ("operationalState".equals(fieldName)) {
+ deserializedNetworkFabricControllerProperties.operationalState
+ = OperationalState.fromString(reader.getString());
+ } else if ("vmProfile".equals(fieldName)) {
+ deserializedNetworkFabricControllerProperties.vmProfile = VmProfile.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricInner.java
index 74b38f461981c..2f48ec02653c4 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricInner.java
@@ -18,12 +18,15 @@
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
import com.azure.resourcemanager.managednetworkfabric.models.ManagementNetworkConfigurationProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.QosProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretArchiveSettings;
import com.azure.resourcemanager.managednetworkfabric.models.SecretRotationSummary;
import com.azure.resourcemanager.managednetworkfabric.models.StorageAccountConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.TerminalServerConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.UpgradeProfileProperties;
import java.io.IOException;
import java.util.List;
import java.util.Map;
@@ -386,6 +389,16 @@ public NetworkFabricInner withFabricAsn(long fabricAsn) {
return this;
}
+ /**
+ * Get the networkBootstrapDeviceId property: Azure resource ID for the NetworkBootstrapDevice belonging to this
+ * Network Fabric.
+ *
+ * @return the networkBootstrapDeviceId value.
+ */
+ public String networkBootstrapDeviceId() {
+ return this.innerProperties() == null ? null : this.innerProperties().networkBootstrapDeviceId();
+ }
+
/**
* Get the terminalServerConfiguration property: Network and credentials configuration currently applied to terminal
* server.
@@ -680,6 +693,16 @@ public AdministrativeState administrativeState() {
return this.innerProperties() == null ? null : this.innerProperties().administrativeState();
}
+ /**
+ * Get the operationalState property: Operational state of networkFabric indicating if the resources of the fabric
+ * are reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
/**
* Get the qosConfiguration property: NetworkFabric QoS Configuration.
*
@@ -703,6 +726,56 @@ public NetworkFabricInner withQosConfiguration(QosProperties qosConfiguration) {
return this;
}
+ /**
+ * Get the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @return the secretArchiveSettings value.
+ */
+ public SecretArchiveSettings secretArchiveSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().secretArchiveSettings();
+ }
+
+ /**
+ * Set the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @param secretArchiveSettings the secretArchiveSettings value to set.
+ * @return the NetworkFabricInner object itself.
+ */
+ public NetworkFabricInner withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkFabricProperties();
+ }
+ this.innerProperties().withSecretArchiveSettings(secretArchiveSettings);
+ return this;
+ }
+
+ /**
+ * Get the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @return the upgradeProfile value.
+ */
+ public List upgradeProfile() {
+ return this.innerProperties() == null ? null : this.innerProperties().upgradeProfile();
+ }
+
+ /**
+ * Set the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @param upgradeProfile the upgradeProfile value to set.
+ * @return the NetworkFabricInner object itself.
+ */
+ public NetworkFabricInner withUpgradeProfile(List upgradeProfile) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkFabricProperties();
+ }
+ this.innerProperties().withUpgradeProfile(upgradeProfile);
+ return this;
+ }
+
/**
* Get the annotation property: Switch configuration description.
*
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricPatchProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricPatchProperties.java
index c1f5eb90c1e20..8f0326e398826 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricPatchProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricPatchProperties.java
@@ -13,9 +13,11 @@
import com.azure.resourcemanager.managednetworkfabric.models.FeatureFlagProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagementNetworkPatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.QosPatchProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretArchivePatchSettings;
import com.azure.resourcemanager.managednetworkfabric.models.StorageAccountPatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.TerminalServerPatchConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherPatchProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.UpgradeProfilePropertiesPatchProperties;
import java.io.IOException;
import java.util.List;
@@ -104,6 +106,16 @@ public final class NetworkFabricPatchProperties implements JsonSerializable upgradeProfile;
+
/**
* Creates an instance of NetworkFabricPatchProperties class.
*/
@@ -437,6 +449,51 @@ public AuthorizedTransceiverPatchProperties authorizedTransceiver() {
return this;
}
+ /**
+ * Get the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @return the secretArchiveSettings value.
+ */
+ public SecretArchivePatchSettings secretArchiveSettings() {
+ return this.secretArchiveSettings;
+ }
+
+ /**
+ * Set the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @param secretArchiveSettings the secretArchiveSettings value to set.
+ * @return the NetworkFabricPatchProperties object itself.
+ */
+ public NetworkFabricPatchProperties withSecretArchiveSettings(SecretArchivePatchSettings secretArchiveSettings) {
+ this.secretArchiveSettings = secretArchiveSettings;
+ return this;
+ }
+
+ /**
+ * Get the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @return the upgradeProfile value.
+ */
+ public List upgradeProfile() {
+ return this.upgradeProfile;
+ }
+
+ /**
+ * Set the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @param upgradeProfile the upgradeProfile value to set.
+ * @return the NetworkFabricPatchProperties object itself.
+ */
+ public NetworkFabricPatchProperties
+ withUpgradeProfile(List upgradeProfile) {
+ this.upgradeProfile = upgradeProfile;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -461,6 +518,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeJsonField("qosConfiguration", this.qosConfiguration);
jsonWriter.writeArrayField("featureFlags", this.featureFlags, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("authorizedTransceiver", this.authorizedTransceiver);
+ jsonWriter.writeJsonField("secretArchiveSettings", this.secretArchiveSettings);
+ jsonWriter.writeArrayField("upgradeProfile", this.upgradeProfile,
+ (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -522,6 +582,13 @@ public static NetworkFabricPatchProperties fromJson(JsonReader jsonReader) throw
} else if ("authorizedTransceiver".equals(fieldName)) {
deserializedNetworkFabricPatchProperties.authorizedTransceiver
= AuthorizedTransceiverPatchProperties.fromJson(reader);
+ } else if ("secretArchiveSettings".equals(fieldName)) {
+ deserializedNetworkFabricPatchProperties.secretArchiveSettings
+ = SecretArchivePatchSettings.fromJson(reader);
+ } else if ("upgradeProfile".equals(fieldName)) {
+ List upgradeProfile
+ = reader.readArray(reader1 -> UpgradeProfilePropertiesPatchProperties.fromJson(reader1));
+ deserializedNetworkFabricPatchProperties.upgradeProfile = upgradeProfile;
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricProperties.java
index 2cdccbb1f2059..cb35fd1e02917 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkFabricProperties.java
@@ -16,12 +16,15 @@
import com.azure.resourcemanager.managednetworkfabric.models.FeatureFlagProperties;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagementNetworkConfigurationProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.QosProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.SecretArchiveSettings;
import com.azure.resourcemanager.managednetworkfabric.models.SecretRotationSummary;
import com.azure.resourcemanager.managednetworkfabric.models.StorageAccountConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.TerminalServerConfiguration;
import com.azure.resourcemanager.managednetworkfabric.models.UniqueRouteDistinguisherProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.UpgradeProfileProperties;
import java.io.IOException;
import java.util.List;
@@ -87,6 +90,11 @@ public final class NetworkFabricProperties extends AnnotationResource {
*/
private long fabricAsn;
+ /*
+ * Azure resource ID for the NetworkBootstrapDevice belonging to this Network Fabric.
+ */
+ private String networkBootstrapDeviceId;
+
/*
* Network and credentials configuration currently applied to terminal server.
*/
@@ -179,11 +187,27 @@ public final class NetworkFabricProperties extends AnnotationResource {
*/
private AdministrativeState administrativeState;
+ /*
+ * Operational state of networkFabric indicating if the resources of the fabric are reachable and services are
+ * available.
+ */
+ private OperationalState operationalState;
+
/*
* NetworkFabric QoS Configuration
*/
private QosProperties qosConfiguration;
+ /*
+ * The settings for a customer secret archive that may be used to hold copies of credentials for the Network Fabric.
+ */
+ private SecretArchiveSettings secretArchiveSettings;
+
+ /*
+ * The upgrade profile to be used by devices in the network fabric during device operations
+ */
+ private List upgradeProfile;
+
/**
* Creates an instance of NetworkFabricProperties class.
*/
@@ -395,6 +419,16 @@ public NetworkFabricProperties withFabricAsn(long fabricAsn) {
return this;
}
+ /**
+ * Get the networkBootstrapDeviceId property: Azure resource ID for the NetworkBootstrapDevice belonging to this
+ * Network Fabric.
+ *
+ * @return the networkBootstrapDeviceId value.
+ */
+ public String networkBootstrapDeviceId() {
+ return this.networkBootstrapDeviceId;
+ }
+
/**
* Get the terminalServerConfiguration property: Network and credentials configuration currently applied to terminal
* server.
@@ -663,6 +697,16 @@ public AdministrativeState administrativeState() {
return this.administrativeState;
}
+ /**
+ * Get the operationalState property: Operational state of networkFabric indicating if the resources of the fabric
+ * are reachable and services are available.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.operationalState;
+ }
+
/**
* Get the qosConfiguration property: NetworkFabric QoS Configuration.
*
@@ -683,6 +727,50 @@ public NetworkFabricProperties withQosConfiguration(QosProperties qosConfigurati
return this;
}
+ /**
+ * Get the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @return the secretArchiveSettings value.
+ */
+ public SecretArchiveSettings secretArchiveSettings() {
+ return this.secretArchiveSettings;
+ }
+
+ /**
+ * Set the secretArchiveSettings property: The settings for a customer secret archive that may be used to hold
+ * copies of credentials for the Network Fabric.
+ *
+ * @param secretArchiveSettings the secretArchiveSettings value to set.
+ * @return the NetworkFabricProperties object itself.
+ */
+ public NetworkFabricProperties withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) {
+ this.secretArchiveSettings = secretArchiveSettings;
+ return this;
+ }
+
+ /**
+ * Get the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @return the upgradeProfile value.
+ */
+ public List upgradeProfile() {
+ return this.upgradeProfile;
+ }
+
+ /**
+ * Set the upgradeProfile property: The upgrade profile to be used by devices in the network fabric during device
+ * operations.
+ *
+ * @param upgradeProfile the upgradeProfile value to set.
+ * @return the NetworkFabricProperties object itself.
+ */
+ public NetworkFabricProperties withUpgradeProfile(List upgradeProfile) {
+ this.upgradeProfile = upgradeProfile;
+ return this;
+ }
+
/**
* {@inheritDoc}
*/
@@ -720,6 +808,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeNumberField("storageArrayCount", this.storageArrayCount);
jsonWriter.writeJsonField("authorizedTransceiver", this.authorizedTransceiver);
jsonWriter.writeJsonField("qosConfiguration", this.qosConfiguration);
+ jsonWriter.writeJsonField("secretArchiveSettings", this.secretArchiveSettings);
+ jsonWriter.writeArrayField("upgradeProfile", this.upgradeProfile,
+ (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -773,6 +864,8 @@ public static NetworkFabricProperties fromJson(JsonReader jsonReader) throws IOE
deserializedNetworkFabricProperties.rackCount = reader.getNullable(JsonReader::getInt);
} else if ("ipv6Prefix".equals(fieldName)) {
deserializedNetworkFabricProperties.ipv6Prefix = reader.getString();
+ } else if ("networkBootstrapDeviceId".equals(fieldName)) {
+ deserializedNetworkFabricProperties.networkBootstrapDeviceId = reader.getString();
} else if ("racks".equals(fieldName)) {
List racks = reader.readArray(reader1 -> reader1.getString());
deserializedNetworkFabricProperties.racks = racks;
@@ -818,8 +911,17 @@ public static NetworkFabricProperties fromJson(JsonReader jsonReader) throws IOE
} else if ("administrativeState".equals(fieldName)) {
deserializedNetworkFabricProperties.administrativeState
= AdministrativeState.fromString(reader.getString());
+ } else if ("operationalState".equals(fieldName)) {
+ deserializedNetworkFabricProperties.operationalState
+ = OperationalState.fromString(reader.getString());
} else if ("qosConfiguration".equals(fieldName)) {
deserializedNetworkFabricProperties.qosConfiguration = QosProperties.fromJson(reader);
+ } else if ("secretArchiveSettings".equals(fieldName)) {
+ deserializedNetworkFabricProperties.secretArchiveSettings = SecretArchiveSettings.fromJson(reader);
+ } else if ("upgradeProfile".equals(fieldName)) {
+ List upgradeProfile
+ = reader.readArray(reader1 -> UpgradeProfileProperties.fromJson(reader1));
+ deserializedNetworkFabricProperties.upgradeProfile = upgradeProfile;
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceInner.java
index f02f163901264..9af3890985400 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceInner.java
@@ -15,6 +15,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.InterfaceType;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
import com.azure.resourcemanager.managednetworkfabric.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import java.io.IOException;
@@ -249,6 +250,16 @@ public ConfigurationState configurationState() {
return this.innerProperties() == null ? null : this.innerProperties().configurationState();
}
+ /**
+ * Get the operationalState property: Operational state of networkInterface indicating if the interface is
+ * reachable.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.innerProperties() == null ? null : this.innerProperties().operationalState();
+ }
+
/**
* Get the annotation property: Switch configuration description.
*
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceProperties.java
index 255ba549da901..14eefd5448518 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkInterfaceProperties.java
@@ -13,6 +13,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.ConfigurationState;
import com.azure.resourcemanager.managednetworkfabric.models.InterfaceType;
import com.azure.resourcemanager.managednetworkfabric.models.LastOperationProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.OperationalState;
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import java.io.IOException;
@@ -81,6 +82,11 @@ public final class NetworkInterfaceProperties extends AnnotationResource {
*/
private ConfigurationState configurationState;
+ /*
+ * Operational state of networkInterface indicating if the interface is reachable
+ */
+ private OperationalState operationalState;
+
/**
* Creates an instance of NetworkInterfaceProperties class.
*/
@@ -206,6 +212,16 @@ public ConfigurationState configurationState() {
return this.configurationState;
}
+ /**
+ * Get the operationalState property: Operational state of networkInterface indicating if the interface is
+ * reachable.
+ *
+ * @return the operationalState value.
+ */
+ public OperationalState operationalState() {
+ return this.operationalState;
+ }
+
/**
* {@inheritDoc}
*/
@@ -270,6 +286,9 @@ public static NetworkInterfaceProperties fromJson(JsonReader jsonReader) throws
} else if ("configurationState".equals(fieldName)) {
deserializedNetworkInterfaceProperties.configurationState
= ConfigurationState.fromString(reader.getString());
+ } else if ("operationalState".equals(fieldName)) {
+ deserializedNetworkInterfaceProperties.operationalState
+ = OperationalState.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerInner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerInner.java
index 0e6fcfa3feb7e..c39f10860a4e3 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerInner.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerInner.java
@@ -205,6 +205,29 @@ public List neighborGroupIds() {
return this.innerProperties() == null ? null : this.innerProperties().neighborGroupIds();
}
+ /**
+ * Get the sourceNetworkTapRuleId property: ARM resource ID of the source Network Tap Rule.
+ *
+ * @return the sourceNetworkTapRuleId value.
+ */
+ public String sourceNetworkTapRuleId() {
+ return this.innerProperties() == null ? null : this.innerProperties().sourceNetworkTapRuleId();
+ }
+
+ /**
+ * Set the sourceNetworkTapRuleId property: ARM resource ID of the source Network Tap Rule.
+ *
+ * @param sourceNetworkTapRuleId the sourceNetworkTapRuleId value to set.
+ * @return the NetworkPacketBrokerInner object itself.
+ */
+ public NetworkPacketBrokerInner withSourceNetworkTapRuleId(String sourceNetworkTapRuleId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new NetworkPacketBrokerProperties();
+ }
+ this.innerProperties().withSourceNetworkTapRuleId(sourceNetworkTapRuleId);
+ return this;
+ }
+
/**
* Get the lastOperation property: Details of the last operation performed on the resource.
*
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerProperties.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerProperties.java
index d07e04af8f22a..edf818006db4a 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerProperties.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/NetworkPacketBrokerProperties.java
@@ -45,6 +45,11 @@ public final class NetworkPacketBrokerProperties implements JsonSerializable neighborGroupIds;
+ /*
+ * ARM resource ID of the source Network Tap Rule.
+ */
+ private String sourceNetworkTapRuleId;
+
/*
* Details of the last operation performed on the resource
*/
@@ -123,6 +128,26 @@ public List neighborGroupIds() {
return this.neighborGroupIds;
}
+ /**
+ * Get the sourceNetworkTapRuleId property: ARM resource ID of the source Network Tap Rule.
+ *
+ * @return the sourceNetworkTapRuleId value.
+ */
+ public String sourceNetworkTapRuleId() {
+ return this.sourceNetworkTapRuleId;
+ }
+
+ /**
+ * Set the sourceNetworkTapRuleId property: ARM resource ID of the source Network Tap Rule.
+ *
+ * @param sourceNetworkTapRuleId the sourceNetworkTapRuleId value to set.
+ * @return the NetworkPacketBrokerProperties object itself.
+ */
+ public NetworkPacketBrokerProperties withSourceNetworkTapRuleId(String sourceNetworkTapRuleId) {
+ this.sourceNetworkTapRuleId = sourceNetworkTapRuleId;
+ return this;
+ }
+
/**
* Get the lastOperation property: Details of the last operation performed on the resource.
*
@@ -157,6 +182,7 @@ public ConfigurationState configurationState() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("networkFabricId", this.networkFabricId);
+ jsonWriter.writeStringField("sourceNetworkTapRuleId", this.sourceNetworkTapRuleId);
return jsonWriter.writeEndObject();
}
@@ -191,6 +217,8 @@ public static NetworkPacketBrokerProperties fromJson(JsonReader jsonReader) thro
} else if ("neighborGroupIds".equals(fieldName)) {
List neighborGroupIds = reader.readArray(reader1 -> reader1.getString());
deserializedNetworkPacketBrokerProperties.neighborGroupIds = neighborGroupIds;
+ } else if ("sourceNetworkTapRuleId".equals(fieldName)) {
+ deserializedNetworkPacketBrokerProperties.sourceNetworkTapRuleId = reader.getString();
} else if ("lastOperation".equals(fieldName)) {
deserializedNetworkPacketBrokerProperties.lastOperation = LastOperationProperties.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/ValidateConfigurationResponseV2Inner.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/ValidateConfigurationResponseV2Inner.java
new file mode 100644
index 0000000000000..406f348694472
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/fluent/models/ValidateConfigurationResponseV2Inner.java
@@ -0,0 +1,244 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationResponseProperties;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * The response of the action validate configuration.
+ */
+@Immutable
+public final class ValidateConfigurationResponseV2Inner
+ implements JsonSerializable {
+ /*
+ * Fully qualified ID for the async operation.
+ */
+ private String id;
+
+ /*
+ * Name of the async operation.
+ */
+ private String name;
+
+ /*
+ * Operation status.
+ */
+ private String status;
+
+ /*
+ * Percent of the operation that is complete.
+ */
+ private Double percentComplete;
+
+ /*
+ * The start time of the operation.
+ */
+ private OffsetDateTime startTime;
+
+ /*
+ * The end time of the operation.
+ */
+ private OffsetDateTime endTime;
+
+ /*
+ * The operations list.
+ */
+ private List operations;
+
+ /*
+ * If present, details of the operation error.
+ */
+ private ManagementError error;
+
+ /*
+ * Fully qualified ID of the resource against which the original async operation was started.
+ */
+ private String resourceId;
+
+ /*
+ * Network Device Run Rw Command Response properties.
+ */
+ private ValidateConfigurationResponseProperties properties;
+
+ /**
+ * Creates an instance of ValidateConfigurationResponseV2Inner class.
+ */
+ private ValidateConfigurationResponseV2Inner() {
+ }
+
+ /**
+ * Get the id property: Fully qualified ID for the async operation.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: Name of the async operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the percentComplete property: Percent of the operation that is complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Double percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * Get the startTime property: The start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: The end time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Get the operations property: The operations list.
+ *
+ * @return the operations value.
+ */
+ public List operations() {
+ return this.operations;
+ }
+
+ /**
+ * Get the error property: If present, details of the operation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
+ * started.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * Get the properties property: Network Device Run Rw Command Response properties.
+ *
+ * @return the properties value.
+ */
+ public ValidateConfigurationResponseProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("status", this.status);
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeNumberField("percentComplete", this.percentComplete);
+ jsonWriter.writeStringField("startTime",
+ this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime));
+ jsonWriter.writeStringField("endTime",
+ this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
+ jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("error", this.error);
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ValidateConfigurationResponseV2Inner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ValidateConfigurationResponseV2Inner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the ValidateConfigurationResponseV2Inner.
+ */
+ public static ValidateConfigurationResponseV2Inner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ValidateConfigurationResponseV2Inner deserializedValidateConfigurationResponseV2Inner
+ = new ValidateConfigurationResponseV2Inner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("status".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.status = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.name = reader.getString();
+ } else if ("percentComplete".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.percentComplete
+ = reader.getNullable(JsonReader::getDouble);
+ } else if ("startTime".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.startTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endTime".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.endTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("operations".equals(fieldName)) {
+ List operations
+ = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1));
+ deserializedValidateConfigurationResponseV2Inner.operations = operations;
+ } else if ("error".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.error = ManagementError.fromJson(reader);
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.resourceId = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedValidateConfigurationResponseV2Inner.properties
+ = ValidateConfigurationResponseProperties.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedValidateConfigurationResponseV2Inner;
+ });
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListImpl.java
index acb2651b9e4ae..8fe028778df55 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListImpl.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListImpl.java
@@ -29,7 +29,7 @@
import com.azure.resourcemanager.managednetworkfabric.models.ProvisioningState;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeStateResponse;
-import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationResponse;
+import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationResponseV2;
import java.time.OffsetDateTime;
import java.util.Collections;
import java.util.List;
@@ -268,11 +268,11 @@ public CommonPostActionResponseForStateUpdate resync(Context context) {
return serviceManager.accessControlLists().resync(resourceGroupName, accessControlListName, context);
}
- public ValidateConfigurationResponse validateConfiguration() {
+ public ValidateConfigurationResponseV2 validateConfiguration() {
return serviceManager.accessControlLists().validateConfiguration(resourceGroupName, accessControlListName);
}
- public ValidateConfigurationResponse validateConfiguration(Context context) {
+ public ValidateConfigurationResponseV2 validateConfiguration(Context context) {
return serviceManager.accessControlLists()
.validateConfiguration(resourceGroupName, accessControlListName, context);
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsClientImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsClientImpl.java
index d966b82d6a259..ecd4d04eb9a8b 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsClientImpl.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsClientImpl.java
@@ -38,7 +38,7 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.AccessControlListInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.implementation.models.AccessControlListsListResult;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlListPatch;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
@@ -1488,13 +1488,13 @@ private Response validateConfigurationWithResponse(String resourceGr
* @return the {@link PollerFlux} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ValidateConfigurationResponseInner>
+ private PollerFlux, ValidateConfigurationResponseV2Inner>
beginValidateConfigurationAsync(String resourceGroupName, String accessControlListName) {
Mono>> mono
= validateConfigurationWithResponseAsync(resourceGroupName, accessControlListName);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), ValidateConfigurationResponseInner.class,
- ValidateConfigurationResponseInner.class, this.client.getContext());
+ return this.client.getLroResult(
+ mono, this.client.getHttpPipeline(), ValidateConfigurationResponseV2Inner.class,
+ ValidateConfigurationResponseV2Inner.class, this.client.getContext());
}
/**
@@ -1508,11 +1508,12 @@ private Response validateConfigurationWithResponse(String resourceGr
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ValidateConfigurationResponseInner>
+ public SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String accessControlListName) {
Response response = validateConfigurationWithResponse(resourceGroupName, accessControlListName);
- return this.client.getLroResult(
- response, ValidateConfigurationResponseInner.class, ValidateConfigurationResponseInner.class, Context.NONE);
+ return this.client.getLroResult(
+ response, ValidateConfigurationResponseV2Inner.class, ValidateConfigurationResponseV2Inner.class,
+ Context.NONE);
}
/**
@@ -1527,12 +1528,12 @@ private Response validateConfigurationWithResponse(String resourceGr
* @return the {@link SyncPoller} for polling of the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ValidateConfigurationResponseInner>
+ public SyncPoller, ValidateConfigurationResponseV2Inner>
beginValidateConfiguration(String resourceGroupName, String accessControlListName, Context context) {
Response response
= validateConfigurationWithResponse(resourceGroupName, accessControlListName, context);
- return this.client.getLroResult(
- response, ValidateConfigurationResponseInner.class, ValidateConfigurationResponseInner.class, context);
+ return this.client.getLroResult(
+ response, ValidateConfigurationResponseV2Inner.class, ValidateConfigurationResponseV2Inner.class, context);
}
/**
@@ -1546,7 +1547,7 @@ private Response validateConfigurationWithResponse(String resourceGr
* @return the response of the action validate configuration on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono validateConfigurationAsync(String resourceGroupName,
+ private Mono validateConfigurationAsync(String resourceGroupName,
String accessControlListName) {
return beginValidateConfigurationAsync(resourceGroupName, accessControlListName).last()
.flatMap(this.client::getLroFinalResultOrError);
@@ -1563,7 +1564,7 @@ private Mono validateConfigurationAsync(Stri
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName,
+ public ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName,
String accessControlListName) {
return beginValidateConfiguration(resourceGroupName, accessControlListName).getFinalResult();
}
@@ -1580,7 +1581,7 @@ public ValidateConfigurationResponseInner validateConfiguration(String resourceG
* @return the response of the action validate configuration.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ValidateConfigurationResponseInner validateConfiguration(String resourceGroupName,
+ public ValidateConfigurationResponseV2Inner validateConfiguration(String resourceGroupName,
String accessControlListName, Context context) {
return beginValidateConfiguration(resourceGroupName, accessControlListName, context).getFinalResult();
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsImpl.java
index dcc5ffc358510..8c9b12a27d4a6 100644
--- a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsImpl.java
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/AccessControlListsImpl.java
@@ -13,13 +13,13 @@
import com.azure.resourcemanager.managednetworkfabric.fluent.models.AccessControlListInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.CommonPostActionResponseForStateUpdateInner;
import com.azure.resourcemanager.managednetworkfabric.fluent.models.UpdateAdministrativeStateResponseInner;
-import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseInner;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.ValidateConfigurationResponseV2Inner;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlList;
import com.azure.resourcemanager.managednetworkfabric.models.AccessControlLists;
import com.azure.resourcemanager.managednetworkfabric.models.CommonPostActionResponseForStateUpdate;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeState;
import com.azure.resourcemanager.managednetworkfabric.models.UpdateAdministrativeStateResponse;
-import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationResponse;
+import com.azure.resourcemanager.managednetworkfabric.models.ValidateConfigurationResponseV2;
public final class AccessControlListsImpl implements AccessControlLists {
private static final ClientLogger LOGGER = new ClientLogger(AccessControlListsImpl.class);
@@ -124,22 +124,23 @@ public CommonPostActionResponseForStateUpdate resync(String resourceGroupName, S
}
}
- public ValidateConfigurationResponse validateConfiguration(String resourceGroupName, String accessControlListName) {
- ValidateConfigurationResponseInner inner
+ public ValidateConfigurationResponseV2 validateConfiguration(String resourceGroupName,
+ String accessControlListName) {
+ ValidateConfigurationResponseV2Inner inner
= this.serviceClient().validateConfiguration(resourceGroupName, accessControlListName);
if (inner != null) {
- return new ValidateConfigurationResponseImpl(inner, this.manager());
+ return new ValidateConfigurationResponseV2Impl(inner, this.manager());
} else {
return null;
}
}
- public ValidateConfigurationResponse validateConfiguration(String resourceGroupName, String accessControlListName,
+ public ValidateConfigurationResponseV2 validateConfiguration(String resourceGroupName, String accessControlListName,
Context context) {
- ValidateConfigurationResponseInner inner
+ ValidateConfigurationResponseV2Inner inner
= this.serviceClient().validateConfiguration(resourceGroupName, accessControlListName, context);
if (inner != null) {
- return new ValidateConfigurationResponseImpl(inner, this.manager());
+ return new ValidateConfigurationResponseV2Impl(inner, this.manager());
} else {
return null;
}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorImpl.java
new file mode 100644
index 0000000000000..82ace75de07ab
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorImpl.java
@@ -0,0 +1,184 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.EdgeConnectorInner;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnector;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorPatch;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorPatchableProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class EdgeConnectorImpl implements EdgeConnector, EdgeConnector.Definition, EdgeConnector.Update {
+ private EdgeConnectorInner innerObject;
+
+ private final com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public EdgeConnectorProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public EdgeConnectorInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String edgeConnectorName;
+
+ private EdgeConnectorPatch updateBody;
+
+ public EdgeConnectorImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public EdgeConnector create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .create(resourceGroupName, edgeConnectorName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public EdgeConnector create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .create(resourceGroupName, edgeConnectorName, this.innerModel(), context);
+ return this;
+ }
+
+ EdgeConnectorImpl(String name,
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
+ this.innerObject = new EdgeConnectorInner();
+ this.serviceManager = serviceManager;
+ this.edgeConnectorName = name;
+ }
+
+ public EdgeConnectorImpl update() {
+ this.updateBody = new EdgeConnectorPatch();
+ return this;
+ }
+
+ public EdgeConnector apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .update(resourceGroupName, edgeConnectorName, updateBody, Context.NONE);
+ return this;
+ }
+
+ public EdgeConnector apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .update(resourceGroupName, edgeConnectorName, updateBody, context);
+ return this;
+ }
+
+ EdgeConnectorImpl(EdgeConnectorInner innerObject,
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.edgeConnectorName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "edgeConnectors");
+ }
+
+ public EdgeConnector refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public EdgeConnector refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getEdgeConnectors()
+ .getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, context)
+ .getValue();
+ return this;
+ }
+
+ public EdgeConnectorImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public EdgeConnectorImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public EdgeConnectorImpl withProperties(EdgeConnectorProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public EdgeConnectorImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public EdgeConnectorImpl withProperties(EdgeConnectorPatchableProperties properties) {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsClientImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsClientImpl.java
new file mode 100644
index 0000000000000..6c4db7ec205a5
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsClientImpl.java
@@ -0,0 +1,1116 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.managednetworkfabric.fluent.EdgeConnectorsClient;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.EdgeConnectorInner;
+import com.azure.resourcemanager.managednetworkfabric.implementation.models.EdgeConnectorListResult;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectorPatch;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in EdgeConnectorsClient.
+ */
+public final class EdgeConnectorsClientImpl implements EdgeConnectorsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final EdgeConnectorsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ManagedNetworkFabricManagementClientImpl client;
+
+ /**
+ * Initializes an instance of EdgeConnectorsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ EdgeConnectorsClientImpl(ManagedNetworkFabricManagementClientImpl client) {
+ this.service
+ = RestProxy.create(EdgeConnectorsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ManagedNetworkFabricManagementClientEdgeConnectors to be used by the
+ * proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ManagedNetworkFabricManagementClientEdgeConnectors")
+ public interface EdgeConnectorsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") EdgeConnectorInner body,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") EdgeConnectorInner body,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") EdgeConnectorPatch body,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") EdgeConnectorPatch body,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors/{edgeConnectorName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName,
+ @PathParam("edgeConnectorName") String edgeConnectorName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/edgeConnectors")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @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 listByResourceGroupNextSync(
+ @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)
+ Mono> listBySubscriptionNext(
+ @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 listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified EdgeConnector along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String edgeConnectorName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified EdgeConnector on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String edgeConnectorName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, edgeConnectorName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified EdgeConnector along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName,
+ String edgeConnectorName, Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, accept, context);
+ }
+
+ /**
+ * Gets the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified EdgeConnector.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeConnectorInner getByResourceGroup(String resourceGroupName, String edgeConnectorName) {
+ return getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body,
+ Context.NONE);
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorInner body, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body, context);
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeConnectorInner> beginCreateAsync(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorInner body) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, edgeConnectorName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ EdgeConnectorInner.class, EdgeConnectorInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeConnectorInner> beginCreate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorInner body) {
+ Response response = createWithResponse(resourceGroupName, edgeConnectorName, body);
+ return this.client.getLroResult(response, EdgeConnectorInner.class,
+ EdgeConnectorInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeConnectorInner> beginCreate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorInner body, Context context) {
+ Response response = createWithResponse(resourceGroupName, edgeConnectorName, body, context);
+ return this.client.getLroResult(response, EdgeConnectorInner.class,
+ EdgeConnectorInner.class, context);
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createAsync(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorInner body) {
+ return beginCreateAsync(resourceGroupName, edgeConnectorName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeConnectorInner create(String resourceGroupName, String edgeConnectorName, EdgeConnectorInner body) {
+ return beginCreate(resourceGroupName, edgeConnectorName, body).getFinalResult();
+ }
+
+ /**
+ * Creates or updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body Request payload.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeConnectorInner create(String resourceGroupName, String edgeConnectorName, EdgeConnectorInner body,
+ Context context) {
+ return beginCreate(resourceGroupName, edgeConnectorName, body, context).getFinalResult();
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorPatch body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorPatch body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body,
+ Context.NONE);
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorPatch body, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, contentType, accept, body, context);
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, EdgeConnectorInner> beginUpdateAsync(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorPatch body) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, edgeConnectorName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ EdgeConnectorInner.class, EdgeConnectorInner.class, this.client.getContext());
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeConnectorInner> beginUpdate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorPatch body) {
+ Response response = updateWithResponse(resourceGroupName, edgeConnectorName, body);
+ return this.client.getLroResult(response, EdgeConnectorInner.class,
+ EdgeConnectorInner.class, Context.NONE);
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of edgeConnector represents the mechanism by which a collection of
+ * on-prem infrastructure (Fabric) is connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, EdgeConnectorInner> beginUpdate(String resourceGroupName,
+ String edgeConnectorName, EdgeConnectorPatch body, Context context) {
+ Response response = updateWithResponse(resourceGroupName, edgeConnectorName, body, context);
+ return this.client.getLroResult(response, EdgeConnectorInner.class,
+ EdgeConnectorInner.class, context);
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String edgeConnectorName,
+ EdgeConnectorPatch body) {
+ return beginUpdateAsync(resourceGroupName, edgeConnectorName, body).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeConnectorInner update(String resourceGroupName, String edgeConnectorName, EdgeConnectorPatch body) {
+ return beginUpdate(resourceGroupName, edgeConnectorName, body).getFinalResult();
+ }
+
+ /**
+ * Updates an EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param body EdgeConnector properties to update.
+ * @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 edgeConnector represents the mechanism by which a collection of on-prem infrastructure (Fabric) is
+ * connected to Azure.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public EdgeConnectorInner update(String resourceGroupName, String edgeConnectorName, EdgeConnectorPatch body,
+ Context context) {
+ return beginUpdate(resourceGroupName, edgeConnectorName, body, context).getFinalResult();
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName,
+ String edgeConnectorName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeConnectorName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, Context.NONE);
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String edgeConnectorName,
+ Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, edgeConnectorName, context);
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String edgeConnectorName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, edgeConnectorName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeConnectorName) {
+ Response response = deleteWithResponse(resourceGroupName, edgeConnectorName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String edgeConnectorName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, edgeConnectorName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String edgeConnectorName) {
+ return beginDeleteAsync(resourceGroupName, edgeConnectorName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String edgeConnectorName) {
+ beginDelete(resourceGroupName, edgeConnectorName).getFinalResult();
+ }
+
+ /**
+ * Deletes the specified EdgeConnector.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param edgeConnectorName Name of the EdgeConnector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String edgeConnectorName, Context context) {
+ beginDelete(resourceGroupName, edgeConnectorName, context).getFinalResult();
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, 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()));
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) {
+ final String accept = "application/json";
+ Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * Lists EdgeConnectors by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), 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()));
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * Lists EdgeConnectors by subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, 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 the response of a EdgeConnector list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(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 the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(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 the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ 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.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a EdgeConnector list operation along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(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 the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(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 the response of a EdgeConnector list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsImpl.java
new file mode 100644
index 0000000000000..bc108a4167b2f
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/EdgeConnectorsImpl.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.managednetworkfabric.fluent.EdgeConnectorsClient;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.EdgeConnectorInner;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnector;
+import com.azure.resourcemanager.managednetworkfabric.models.EdgeConnectors;
+
+public final class EdgeConnectorsImpl implements EdgeConnectors {
+ private static final ClientLogger LOGGER = new ClientLogger(EdgeConnectorsImpl.class);
+
+ private final EdgeConnectorsClient innerClient;
+
+ private final com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager;
+
+ public EdgeConnectorsImpl(EdgeConnectorsClient innerClient,
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String edgeConnectorName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new EdgeConnectorImpl(inner.getValue(), this.manager()));
+ }
+
+ public EdgeConnector getByResourceGroup(String resourceGroupName, String edgeConnectorName) {
+ EdgeConnectorInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, edgeConnectorName);
+ if (inner != null) {
+ return new EdgeConnectorImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void deleteByResourceGroup(String resourceGroupName, String edgeConnectorName) {
+ this.serviceClient().delete(resourceGroupName, edgeConnectorName);
+ }
+
+ public void delete(String resourceGroupName, String edgeConnectorName, Context context) {
+ this.serviceClient().delete(resourceGroupName, edgeConnectorName, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeConnectorImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName, Context context) {
+ PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeConnectorImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeConnectorImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new EdgeConnectorImpl(inner1, this.manager()));
+ }
+
+ public EdgeConnector getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String edgeConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "edgeConnectors");
+ if (edgeConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeConnectors'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String edgeConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "edgeConnectors");
+ if (edgeConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeConnectors'.", id)));
+ }
+ return this.getByResourceGroupWithResponse(resourceGroupName, edgeConnectorName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String edgeConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "edgeConnectors");
+ if (edgeConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeConnectors'.", id)));
+ }
+ this.delete(resourceGroupName, edgeConnectorName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String edgeConnectorName = ResourceManagerUtils.getValueFromIdByName(id, "edgeConnectors");
+ if (edgeConnectorName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'edgeConnectors'.", id)));
+ }
+ this.delete(resourceGroupName, edgeConnectorName, context);
+ }
+
+ private EdgeConnectorsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager() {
+ return this.serviceManager;
+ }
+
+ public EdgeConnectorImpl define(String name) {
+ return new EdgeConnectorImpl(name, this.manager());
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricImpl.java
new file mode 100644
index 0000000000000..810b5403351bb
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricImpl.java
@@ -0,0 +1,182 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.FabricInner;
+import com.azure.resourcemanager.managednetworkfabric.models.Fabric;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricPatch;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricPatchableProperties;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricProperties;
+import java.util.Collections;
+import java.util.Map;
+
+public final class FabricImpl implements Fabric, Fabric.Definition, Fabric.Update {
+ private FabricInner innerObject;
+
+ private final com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public FabricProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public FabricInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String fabricName;
+
+ private FabricPatch updateBody;
+
+ public FabricImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public Fabric create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getFabrics()
+ .create(resourceGroupName, fabricName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public Fabric create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getFabrics()
+ .create(resourceGroupName, fabricName, this.innerModel(), context);
+ return this;
+ }
+
+ FabricImpl(String name, com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
+ this.innerObject = new FabricInner();
+ this.serviceManager = serviceManager;
+ this.fabricName = name;
+ }
+
+ public FabricImpl update() {
+ this.updateBody = new FabricPatch();
+ return this;
+ }
+
+ public Fabric apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getFabrics()
+ .update(resourceGroupName, fabricName, updateBody, Context.NONE);
+ return this;
+ }
+
+ public Fabric apply(Context context) {
+ this.innerObject
+ = serviceManager.serviceClient().getFabrics().update(resourceGroupName, fabricName, updateBody, context);
+ return this;
+ }
+
+ FabricImpl(FabricInner innerObject,
+ com.azure.resourcemanager.managednetworkfabric.ManagedNetworkFabricManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.fabricName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "fabrics");
+ }
+
+ public Fabric refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getFabrics()
+ .getByResourceGroupWithResponse(resourceGroupName, fabricName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Fabric refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getFabrics()
+ .getByResourceGroupWithResponse(resourceGroupName, fabricName, context)
+ .getValue();
+ return this;
+ }
+
+ public FabricImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public FabricImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public FabricImpl withProperties(FabricProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public FabricImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateBody.withTags(tags);
+ return this;
+ }
+ }
+
+ public FabricImpl withProperties(FabricPatchableProperties properties) {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricsClientImpl.java b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricsClientImpl.java
new file mode 100644
index 0000000000000..d89c6e93cd80b
--- /dev/null
+++ b/sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/src/main/java/com/azure/resourcemanager/managednetworkfabric/implementation/FabricsClientImpl.java
@@ -0,0 +1,1096 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.managednetworkfabric.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.managednetworkfabric.fluent.FabricsClient;
+import com.azure.resourcemanager.managednetworkfabric.fluent.models.FabricInner;
+import com.azure.resourcemanager.managednetworkfabric.implementation.models.FabricListResult;
+import com.azure.resourcemanager.managednetworkfabric.models.FabricPatch;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in FabricsClient.
+ */
+public final class FabricsClientImpl implements FabricsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final FabricsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ManagedNetworkFabricManagementClientImpl client;
+
+ /**
+ * Initializes an instance of FabricsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ FabricsClientImpl(ManagedNetworkFabricManagementClientImpl client) {
+ this.service = RestProxy.create(FabricsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ManagedNetworkFabricManagementClientFabrics to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ManagedNetworkFabricManagementClientFabrics")
+ public interface FabricsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> create(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FabricInner body, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FabricInner body, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FabricPatch body, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") FabricPatch body, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics/{fabricName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("fabricName") String fabricName,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/fabrics")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/fabrics")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ManagedNetworkFabric/fabrics")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @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 listByResourceGroupNextSync(
+ @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)
+ Mono> listBySubscriptionNext(
+ @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 listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Fabric along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String fabricName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, fabricName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Fabric on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String fabricName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, fabricName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Fabric along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String fabricName,
+ Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, fabricName, accept, context);
+ }
+
+ /**
+ * Gets the specified Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Fabric.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public FabricInner getByResourceGroup(String resourceGroupName, String fabricName) {
+ return getByResourceGroupWithResponse(resourceGroupName, fabricName, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure network configuration along with
+ * {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createWithResponseAsync(String resourceGroupName, String fabricName,
+ FabricInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, fabricName, contentType, accept, body, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure network configuration along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String fabricName, FabricInner body) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, fabricName, contentType, accept, body, Context.NONE);
+ }
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @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 represents a physical network deployment hosting infrastructure network configuration along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createWithResponse(String resourceGroupName, String fabricName, FabricInner body,
+ Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, fabricName, contentType, accept, body, context);
+ }
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, FabricInner> beginCreateAsync(String resourceGroupName,
+ String fabricName, FabricInner body) {
+ Mono>> mono = createWithResponseAsync(resourceGroupName, fabricName, body);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ FabricInner.class, FabricInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates a Fabric.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param fabricName Name of the Fabric.
+ * @param body Request payload.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of represents a physical network deployment hosting infrastructure
+ * network configuration.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, FabricInner> beginCreate(String resourceGroupName, String fabricName,
+ FabricInner body) {
+ Response