ARP Connector Source creation field options

Hi,

I am creating an ARP connector for Azure Analysis Service, where I have two different connection options:

  1. Using Service Principal.
  2. Using Azure Username and Password based OAuth Scheme.

I want the user to select any one of the options and connect. I am looking for something like how we have for Azure Storage source, where upon selection of either of the option from ‘Shared Access Key’ or ‘Azure Active Directory’ the subsequent fields are updated.

As I only have controls from the (@) annotations I specify from the Conf.java , are there any other extra controls I can use to achieve this ? If yes, is there any documentaion on this, with a few examples may be ?

TIA,
Farhan.