Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ com.azure.resourcemanager:azure-resourcemanager-selfhelp;1.0.0;1.1.0-beta.7
com.azure.resourcemanager:azure-resourcemanager-networkcloud;2.1.0;2.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-cosmosdbforpostgresql;1.0.0;1.1.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-managementgroups;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;1.1.0;1.2.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;1.1.0;1.2.0
com.azure.resourcemanager:azure-resourcemanager-iotfirmwaredefense;2.0.0;2.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-quantum;1.0.0-beta.3;1.0.0-beta.4
com.azure.resourcemanager:azure-resourcemanager-chaos;1.3.0;1.4.0-beta.1
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -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 tag package-2023-06-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 2025-07-15. 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

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-managednetworkfabric</artifactId>
<version>1.2.0-beta.1</version>
<version>1.2.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
ManagedNetworkFabricManager manager = ManagedNetworkFabricManager
.authenticate(credential, profile);
```

The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.

See [Authentication][authenticate] for more options.

Expand Down Expand Up @@ -142,5 +142,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/


4,214 changes: 2,863 additions & 1,351 deletions sdk/managednetworkfabric/azure-resourcemanager-managednetworkfabric/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
Expand All @@ -14,11 +14,11 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-managednetworkfabric</artifactId>
<version>1.2.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;current} -->
<version>1.2.0</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-managednetworkfabric;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Managed Network Fabric Management</name>
<description>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 tag package-2023-06-15.</description>
<description>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.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,8 +45,6 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<spotless.skip>false</spotless.skip>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.managednetworkfabric;

Expand All @@ -22,10 +22,10 @@
import com.azure.core.http.policy.UserAgentPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.managednetworkfabric.fluent.AzureNetworkFabricManagementServiceApi;
import com.azure.resourcemanager.managednetworkfabric.fluent.ManagedNetworkFabricManagementClient;
import com.azure.resourcemanager.managednetworkfabric.implementation.AccessControlListsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.AzureNetworkFabricManagementServiceApiBuilder;
import com.azure.resourcemanager.managednetworkfabric.implementation.ExternalNetworksImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.InternalNetworksImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.InternetGatewayRulesImpl;
Expand All @@ -35,13 +35,17 @@
import com.azure.resourcemanager.managednetworkfabric.implementation.IpPrefixesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.L2IsolationDomainsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.L3IsolationDomainsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.ManagedNetworkFabricManagementClientBuilder;
import com.azure.resourcemanager.managednetworkfabric.implementation.NeighborGroupsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkBootstrapDevicesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkBootstrapInterfacesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkDeviceSkusImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkDevicesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkFabricControllersImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkFabricSkusImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkFabricsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkInterfacesImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkMonitorsImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkPacketBrokersImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkRacksImpl;
import com.azure.resourcemanager.managednetworkfabric.implementation.NetworkTapRulesImpl;
Expand All @@ -60,12 +64,15 @@
import com.azure.resourcemanager.managednetworkfabric.models.L2IsolationDomains;
import com.azure.resourcemanager.managednetworkfabric.models.L3IsolationDomains;
import com.azure.resourcemanager.managednetworkfabric.models.NeighborGroups;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkBootstrapDevices;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkBootstrapInterfaces;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkDeviceSkus;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkDevices;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricControllers;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabricSkus;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkFabrics;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkInterfaces;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkMonitors;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkPacketBrokers;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkRacks;
import com.azure.resourcemanager.managednetworkfabric.models.NetworkTapRules;
Expand All @@ -77,6 +84,7 @@
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

Expand All @@ -85,12 +93,14 @@
* Self service experience for Azure Network Fabric API.
*/
public final class ManagedNetworkFabricManager {
private AccessControlLists accessControlLists;
private Operations operations;

private InternetGateways internetGateways;
private AccessControlLists accessControlLists;

private InternetGatewayRules internetGatewayRules;

private InternetGateways internetGateways;

private IpCommunities ipCommunities;

private IpExtendedCommunities ipExtendedCommunities;
Expand Down Expand Up @@ -129,16 +139,20 @@ public final class ManagedNetworkFabricManager {

private NetworkTaps networkTaps;

private Operations operations;

private RoutePolicies routePolicies;

private final AzureNetworkFabricManagementServiceApi clientObject;
private NetworkMonitors networkMonitors;

private NetworkBootstrapDevices networkBootstrapDevices;

private NetworkBootstrapInterfaces networkBootstrapInterfaces;

private final ManagedNetworkFabricManagementClient clientObject;

private ManagedNetworkFabricManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new AzureNetworkFabricManagementServiceApiBuilder().pipeline(httpPipeline)
this.clientObject = new ManagedNetworkFabricManagementClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
Expand Down Expand Up @@ -185,6 +199,9 @@ public static Configurable configure() {
*/
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
private static final String SDK_VERSION = "version";
private static final Map<String, String> PROPERTIES
= CoreUtils.getProperties("azure-resourcemanager-managednetworkfabric.properties");

private HttpClient httpClient;
private HttpLogOptions httpLogOptions;
Expand Down Expand Up @@ -292,12 +309,14 @@ public ManagedNetworkFabricManager authenticate(TokenCredential credential, Azur
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.managednetworkfabric")
.append("/")
.append("1.1.0");
.append(clientVersion);
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down Expand Up @@ -344,27 +363,27 @@ public ManagedNetworkFabricManager authenticate(TokenCredential credential, Azur
}

/**
* Gets the resource collection API of AccessControlLists. It manages AccessControlList.
* Gets the resource collection API of Operations.
*
* @return Resource collection API of AccessControlLists.
* @return Resource collection API of Operations.
*/
public AccessControlLists accessControlLists() {
if (this.accessControlLists == null) {
this.accessControlLists = new AccessControlListsImpl(clientObject.getAccessControlLists(), this);
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return accessControlLists;
return operations;
}

/**
* Gets the resource collection API of InternetGateways. It manages InternetGateway.
* Gets the resource collection API of AccessControlLists. It manages AccessControlList.
*
* @return Resource collection API of InternetGateways.
* @return Resource collection API of AccessControlLists.
*/
public InternetGateways internetGateways() {
if (this.internetGateways == null) {
this.internetGateways = new InternetGatewaysImpl(clientObject.getInternetGateways(), this);
public AccessControlLists accessControlLists() {
if (this.accessControlLists == null) {
this.accessControlLists = new AccessControlListsImpl(clientObject.getAccessControlLists(), this);
}
return internetGateways;
return accessControlLists;
}

/**
Expand All @@ -379,6 +398,18 @@ public InternetGatewayRules internetGatewayRules() {
return internetGatewayRules;
}

/**
* Gets the resource collection API of InternetGateways. It manages InternetGateway.
*
* @return Resource collection API of InternetGateways.
*/
public InternetGateways internetGateways() {
if (this.internetGateways == null) {
this.internetGateways = new InternetGatewaysImpl(clientObject.getInternetGateways(), this);
}
return internetGateways;
}

/**
* Gets the resource collection API of IpCommunities. It manages IpCommunity.
*
Expand Down Expand Up @@ -609,18 +640,6 @@ public NetworkTaps networkTaps() {
return networkTaps;
}

/**
* Gets the resource collection API of Operations.
*
* @return Resource collection API of Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/**
* Gets the resource collection API of RoutePolicies. It manages RoutePolicy.
*
Expand All @@ -634,12 +653,50 @@ public RoutePolicies routePolicies() {
}

/**
* Gets wrapped service client AzureNetworkFabricManagementServiceApi providing direct access to the underlying
* Gets the resource collection API of NetworkMonitors. It manages NetworkMonitor.
*
* @return Resource collection API of NetworkMonitors.
*/
public NetworkMonitors networkMonitors() {
if (this.networkMonitors == null) {
this.networkMonitors = new NetworkMonitorsImpl(clientObject.getNetworkMonitors(), this);
}
return networkMonitors;
}

/**
* Gets the resource collection API of NetworkBootstrapDevices. It manages NetworkBootstrapDevice.
*
* @return Resource collection API of NetworkBootstrapDevices.
*/
public NetworkBootstrapDevices networkBootstrapDevices() {
if (this.networkBootstrapDevices == null) {
this.networkBootstrapDevices
= new NetworkBootstrapDevicesImpl(clientObject.getNetworkBootstrapDevices(), this);
}
return networkBootstrapDevices;
}

/**
* Gets the resource collection API of NetworkBootstrapInterfaces. It manages NetworkBootstrapInterface.
*
* @return Resource collection API of NetworkBootstrapInterfaces.
*/
public NetworkBootstrapInterfaces networkBootstrapInterfaces() {
if (this.networkBootstrapInterfaces == null) {
this.networkBootstrapInterfaces
= new NetworkBootstrapInterfacesImpl(clientObject.getNetworkBootstrapInterfaces(), this);
}
return networkBootstrapInterfaces;
}

/**
* Gets wrapped service client ManagedNetworkFabricManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*
* @return Wrapped service client AzureNetworkFabricManagementServiceApi.
* @return Wrapped service client ManagedNetworkFabricManagementClient.
*/
public AzureNetworkFabricManagementServiceApi serviceClient() {
public ManagedNetworkFabricManagementClient serviceClient() {
return this.clientObject;
}
}
Loading
Loading