11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
3- // Code generated by Microsoft (R) AutoRest Code Generator.
3+ // Code generated by Microsoft (R) TypeSpec Code Generator.
44
55package com .azure .resourcemanager .managednetworkfabric ;
66
2222import com .azure .core .http .policy .UserAgentPolicy ;
2323import com .azure .core .management .profile .AzureProfile ;
2424import com .azure .core .util .Configuration ;
25+ import com .azure .core .util .CoreUtils ;
2526import com .azure .core .util .logging .ClientLogger ;
26- import com .azure .resourcemanager .managednetworkfabric .fluent .AzureNetworkFabricManagementServiceApi ;
27+ import com .azure .resourcemanager .managednetworkfabric .fluent .ManagedNetworkFabricManagementClient ;
2728import com .azure .resourcemanager .managednetworkfabric .implementation .AccessControlListsImpl ;
28- import com .azure .resourcemanager .managednetworkfabric .implementation .AzureNetworkFabricManagementServiceApiBuilder ;
2929import com .azure .resourcemanager .managednetworkfabric .implementation .ExternalNetworksImpl ;
3030import com .azure .resourcemanager .managednetworkfabric .implementation .InternalNetworksImpl ;
3131import com .azure .resourcemanager .managednetworkfabric .implementation .InternetGatewayRulesImpl ;
3535import com .azure .resourcemanager .managednetworkfabric .implementation .IpPrefixesImpl ;
3636import com .azure .resourcemanager .managednetworkfabric .implementation .L2IsolationDomainsImpl ;
3737import com .azure .resourcemanager .managednetworkfabric .implementation .L3IsolationDomainsImpl ;
38+ import com .azure .resourcemanager .managednetworkfabric .implementation .ManagedNetworkFabricManagementClientBuilder ;
3839import com .azure .resourcemanager .managednetworkfabric .implementation .NeighborGroupsImpl ;
40+ import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkBootstrapDevicesImpl ;
41+ import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkBootstrapInterfacesImpl ;
3942import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkDeviceSkusImpl ;
4043import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkDevicesImpl ;
4144import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkFabricControllersImpl ;
4245import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkFabricSkusImpl ;
4346import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkFabricsImpl ;
4447import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkInterfacesImpl ;
48+ import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkMonitorsImpl ;
4549import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkPacketBrokersImpl ;
4650import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkRacksImpl ;
4751import com .azure .resourcemanager .managednetworkfabric .implementation .NetworkTapRulesImpl ;
6064import com .azure .resourcemanager .managednetworkfabric .models .L2IsolationDomains ;
6165import com .azure .resourcemanager .managednetworkfabric .models .L3IsolationDomains ;
6266import com .azure .resourcemanager .managednetworkfabric .models .NeighborGroups ;
67+ import com .azure .resourcemanager .managednetworkfabric .models .NetworkBootstrapDevices ;
68+ import com .azure .resourcemanager .managednetworkfabric .models .NetworkBootstrapInterfaces ;
6369import com .azure .resourcemanager .managednetworkfabric .models .NetworkDeviceSkus ;
6470import com .azure .resourcemanager .managednetworkfabric .models .NetworkDevices ;
6571import com .azure .resourcemanager .managednetworkfabric .models .NetworkFabricControllers ;
6672import com .azure .resourcemanager .managednetworkfabric .models .NetworkFabricSkus ;
6773import com .azure .resourcemanager .managednetworkfabric .models .NetworkFabrics ;
6874import com .azure .resourcemanager .managednetworkfabric .models .NetworkInterfaces ;
75+ import com .azure .resourcemanager .managednetworkfabric .models .NetworkMonitors ;
6976import com .azure .resourcemanager .managednetworkfabric .models .NetworkPacketBrokers ;
7077import com .azure .resourcemanager .managednetworkfabric .models .NetworkRacks ;
7178import com .azure .resourcemanager .managednetworkfabric .models .NetworkTapRules ;
7784import java .time .temporal .ChronoUnit ;
7885import java .util .ArrayList ;
7986import java .util .List ;
87+ import java .util .Map ;
8088import java .util .Objects ;
8189import java .util .stream .Collectors ;
8290
8593 * Self service experience for Azure Network Fabric API.
8694 */
8795public final class ManagedNetworkFabricManager {
88- private AccessControlLists accessControlLists ;
96+ private Operations operations ;
8997
90- private InternetGateways internetGateways ;
98+ private AccessControlLists accessControlLists ;
9199
92100 private InternetGatewayRules internetGatewayRules ;
93101
102+ private InternetGateways internetGateways ;
103+
94104 private IpCommunities ipCommunities ;
95105
96106 private IpExtendedCommunities ipExtendedCommunities ;
@@ -129,16 +139,20 @@ public final class ManagedNetworkFabricManager {
129139
130140 private NetworkTaps networkTaps ;
131141
132- private Operations operations ;
133-
134142 private RoutePolicies routePolicies ;
135143
136- private final AzureNetworkFabricManagementServiceApi clientObject ;
144+ private NetworkMonitors networkMonitors ;
145+
146+ private NetworkBootstrapDevices networkBootstrapDevices ;
147+
148+ private NetworkBootstrapInterfaces networkBootstrapInterfaces ;
149+
150+ private final ManagedNetworkFabricManagementClient clientObject ;
137151
138152 private ManagedNetworkFabricManager (HttpPipeline httpPipeline , AzureProfile profile , Duration defaultPollInterval ) {
139153 Objects .requireNonNull (httpPipeline , "'httpPipeline' cannot be null." );
140154 Objects .requireNonNull (profile , "'profile' cannot be null." );
141- this .clientObject = new AzureNetworkFabricManagementServiceApiBuilder ().pipeline (httpPipeline )
155+ this .clientObject = new ManagedNetworkFabricManagementClientBuilder ().pipeline (httpPipeline )
142156 .endpoint (profile .getEnvironment ().getResourceManagerEndpoint ())
143157 .subscriptionId (profile .getSubscriptionId ())
144158 .defaultPollInterval (defaultPollInterval )
@@ -185,6 +199,9 @@ public static Configurable configure() {
185199 */
186200 public static final class Configurable {
187201 private static final ClientLogger LOGGER = new ClientLogger (Configurable .class );
202+ private static final String SDK_VERSION = "version" ;
203+ private static final Map <String , String > PROPERTIES
204+ = CoreUtils .getProperties ("azure-resourcemanager-managednetworkfabric.properties" );
188205
189206 private HttpClient httpClient ;
190207 private HttpLogOptions httpLogOptions ;
@@ -292,12 +309,14 @@ public ManagedNetworkFabricManager authenticate(TokenCredential credential, Azur
292309 Objects .requireNonNull (credential , "'credential' cannot be null." );
293310 Objects .requireNonNull (profile , "'profile' cannot be null." );
294311
312+ String clientVersion = PROPERTIES .getOrDefault (SDK_VERSION , "UnknownVersion" );
313+
295314 StringBuilder userAgentBuilder = new StringBuilder ();
296315 userAgentBuilder .append ("azsdk-java" )
297316 .append ("-" )
298317 .append ("com.azure.resourcemanager.managednetworkfabric" )
299318 .append ("/" )
300- .append ("1.1.0" );
319+ .append (clientVersion );
301320 if (!Configuration .getGlobalConfiguration ().get ("AZURE_TELEMETRY_DISABLED" , false )) {
302321 userAgentBuilder .append (" (" )
303322 .append (Configuration .getGlobalConfiguration ().get ("java.version" ))
@@ -344,27 +363,27 @@ public ManagedNetworkFabricManager authenticate(TokenCredential credential, Azur
344363 }
345364
346365 /**
347- * Gets the resource collection API of AccessControlLists. It manages AccessControlList .
366+ * Gets the resource collection API of Operations .
348367 *
349- * @return Resource collection API of AccessControlLists .
368+ * @return Resource collection API of Operations .
350369 */
351- public AccessControlLists accessControlLists () {
352- if (this .accessControlLists == null ) {
353- this .accessControlLists = new AccessControlListsImpl (clientObject .getAccessControlLists (), this );
370+ public Operations operations () {
371+ if (this .operations == null ) {
372+ this .operations = new OperationsImpl (clientObject .getOperations (), this );
354373 }
355- return accessControlLists ;
374+ return operations ;
356375 }
357376
358377 /**
359- * Gets the resource collection API of InternetGateways . It manages InternetGateway .
378+ * Gets the resource collection API of AccessControlLists . It manages AccessControlList .
360379 *
361- * @return Resource collection API of InternetGateways .
380+ * @return Resource collection API of AccessControlLists .
362381 */
363- public InternetGateways internetGateways () {
364- if (this .internetGateways == null ) {
365- this .internetGateways = new InternetGatewaysImpl (clientObject .getInternetGateways (), this );
382+ public AccessControlLists accessControlLists () {
383+ if (this .accessControlLists == null ) {
384+ this .accessControlLists = new AccessControlListsImpl (clientObject .getAccessControlLists (), this );
366385 }
367- return internetGateways ;
386+ return accessControlLists ;
368387 }
369388
370389 /**
@@ -379,6 +398,18 @@ public InternetGatewayRules internetGatewayRules() {
379398 return internetGatewayRules ;
380399 }
381400
401+ /**
402+ * Gets the resource collection API of InternetGateways. It manages InternetGateway.
403+ *
404+ * @return Resource collection API of InternetGateways.
405+ */
406+ public InternetGateways internetGateways () {
407+ if (this .internetGateways == null ) {
408+ this .internetGateways = new InternetGatewaysImpl (clientObject .getInternetGateways (), this );
409+ }
410+ return internetGateways ;
411+ }
412+
382413 /**
383414 * Gets the resource collection API of IpCommunities. It manages IpCommunity.
384415 *
@@ -609,18 +640,6 @@ public NetworkTaps networkTaps() {
609640 return networkTaps ;
610641 }
611642
612- /**
613- * Gets the resource collection API of Operations.
614- *
615- * @return Resource collection API of Operations.
616- */
617- public Operations operations () {
618- if (this .operations == null ) {
619- this .operations = new OperationsImpl (clientObject .getOperations (), this );
620- }
621- return operations ;
622- }
623-
624643 /**
625644 * Gets the resource collection API of RoutePolicies. It manages RoutePolicy.
626645 *
@@ -634,12 +653,50 @@ public RoutePolicies routePolicies() {
634653 }
635654
636655 /**
637- * Gets wrapped service client AzureNetworkFabricManagementServiceApi providing direct access to the underlying
656+ * Gets the resource collection API of NetworkMonitors. It manages NetworkMonitor.
657+ *
658+ * @return Resource collection API of NetworkMonitors.
659+ */
660+ public NetworkMonitors networkMonitors () {
661+ if (this .networkMonitors == null ) {
662+ this .networkMonitors = new NetworkMonitorsImpl (clientObject .getNetworkMonitors (), this );
663+ }
664+ return networkMonitors ;
665+ }
666+
667+ /**
668+ * Gets the resource collection API of NetworkBootstrapDevices. It manages NetworkBootstrapDevice.
669+ *
670+ * @return Resource collection API of NetworkBootstrapDevices.
671+ */
672+ public NetworkBootstrapDevices networkBootstrapDevices () {
673+ if (this .networkBootstrapDevices == null ) {
674+ this .networkBootstrapDevices
675+ = new NetworkBootstrapDevicesImpl (clientObject .getNetworkBootstrapDevices (), this );
676+ }
677+ return networkBootstrapDevices ;
678+ }
679+
680+ /**
681+ * Gets the resource collection API of NetworkBootstrapInterfaces. It manages NetworkBootstrapInterface.
682+ *
683+ * @return Resource collection API of NetworkBootstrapInterfaces.
684+ */
685+ public NetworkBootstrapInterfaces networkBootstrapInterfaces () {
686+ if (this .networkBootstrapInterfaces == null ) {
687+ this .networkBootstrapInterfaces
688+ = new NetworkBootstrapInterfacesImpl (clientObject .getNetworkBootstrapInterfaces (), this );
689+ }
690+ return networkBootstrapInterfaces ;
691+ }
692+
693+ /**
694+ * Gets wrapped service client ManagedNetworkFabricManagementClient providing direct access to the underlying
638695 * auto-generated API implementation, based on Azure REST API.
639696 *
640- * @return Wrapped service client AzureNetworkFabricManagementServiceApi .
697+ * @return Wrapped service client ManagedNetworkFabricManagementClient .
641698 */
642- public AzureNetworkFabricManagementServiceApi serviceClient () {
699+ public ManagedNetworkFabricManagementClient serviceClient () {
643700 return this .clientObject ;
644701 }
645702}
0 commit comments