Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.35k stars 1.98k forks source link

Virutal VWAN Objects are not seen under com.azure.resourcemanager.network.models packe #41434

Open gdmurali opened 2 months ago

gdmurali commented 2 months ago

Query/Question Wanted to know if vWAN support is present in Azure Java SDK under resourcemanager-network package using Fluent models only. I can't see support for it under com.azure.resourcemanager.network.models package can see it under com.azure.resourcemanager.network.fluent.models.

Classes like VirutalHub, VpnSite are none of Virtual WAN Objects are present here in network.models package but present as VirtualHubInner, VpnSiteInner under com.azure.resourcemanager.network.fluent.models

Is support yet to come ? Or it will not be added at all

Any sample code to create VpnSite, VPNConnection etc.. using fluent SDK library ?

Package details:-

com.azure.resourcemanager azure-resourcemanager-network 2.41.0
github-actions[bot] commented 2 months ago

Thank you for your feedback. Tagging and routing to the team member best able to assist.

weidongxu-microsoft commented 2 months ago

@gdmurali

Interfaces in com.azure.resourcemanager.network.models package contains handwritten convenience API to create the resource. We haven't written the VpnSite and VpnConnection. Let me know which resource you plan to use, and dev would prioritize them.


These resources can still be create via serviceClient. You can find the Java sample code on REST API ref pages. E.g. https://learn.microsoft.com/rest/api/virtualwan/vpn-sites/create-or-update?view=rest-virtualwan-2024-01-01&tabs=Java

Note that you probably need to modify the code/values of the sample to meet your need.

gdmurali commented 2 months ago

@gdmurali

Interfaces in com.azure.resourcemanager.network.models package contains handwritten convenience API to create the resource. We haven't written the VpnSite and VpnConnection. Let me know which resource you plan to use, and dev would prioritize them.

These resources can still be create via serviceClient. You can find the Java sample code on REST API ref pages. E.g. https://learn.microsoft.com/rest/api/virtualwan/vpn-sites/create-or-update?view=rest-virtualwan-2024-01-01&tabs=Java

Note that you probably need to modify the code/values of the sample to meet your need.

VpnSite VpnConnection vpnSitesConfigurations().download configuration

are some of resources CRUD we are looking at. This helps in automation of Tunnel creation between CPE and vWAN HUB

XiaofeiCao commented 2 months ago

@v-hongli1 PR for reference: https://github.com/Azure/azure-sdk-for-java/pull/28936

You could first confirm which interfaces/APIs to include, and how we use these APIs, then a PR.