public StoreRestClients(AuthenticationBase authSession, AdlClient.Models.StoreAccountRef account)
 {
     this.Account                      = account;
     this.FileSystemClient             = new DataLakeStoreFileSystemManagementClient(authSession.AdlCreds);
     this.AccountClient                = new DataLakeStoreAccountManagementClient(authSession.ArmCreds);
     this.AccountClient.SubscriptionId = account.SubscriptionId;
 }
 public StoreClient(Authentication auth, AdlClient.Models.StoreAccountRef account) :
     base(auth)
 {
     this.RestClients = new AdlClient.Rest.StoreRestClients(auth, account);
     this.FileSystem  = new AdlClient.Commands.FileSystemCommands(account, this.RestClients);
     this.Account     = new AdlClient.Commands.StoreAccountCommands(account, this.RestClients);
 }
示例#3
0
 public StoreRestClients(Authentication authSession, AdlClient.Models.StoreAccountRef account)
 {
     this.Account              = account;
     this.FileSystemRest       = new StoreFileSystemRestWrapper(authSession.ADLCreds);
     this.StoreAccountMgmtRest = new StoreManagementRestWrapper(account.SubscriptionId, authSession.ARMCreds);
     this.AADclient            = new Microsoft.Azure.Graph.RBAC.GraphRbacManagementClient(authSession.AADCreds);
     this.AADclient.TenantID   = authSession.Tenant;
 }
        public void Initialize()
        {
            if (this.init == false)
            {
                string tenant = "microsoft.onmicrosoft.com";
                this.Authentication = new AdlClient.InteractiveAuthentication(tenant);
                Authentication.Authenticate();

                this.SubscriptionId = "ace74b35-b0de-428b-a1d9-55459d7a6e30";
                this.ResourceGroup  = "adlclienttest";

                var adla_account = new AdlClient.Models.AnalyticsAccountRef(this.SubscriptionId, this.ResourceGroup, "adlclientqa");
                var adls_account = new AdlClient.Models.StoreAccountRef(this.SubscriptionId, this.ResourceGroup, "adlclientqa");

                this.AzureClient     = new AdlClient.AzureClient(this.Authentication);
                this.StoreClient     = new AdlClient.StoreClient(this.Authentication, adls_account);
                this.AnalyticsClient = new AdlClient.AnalyticsClient(this.Authentication, adla_account);

                this.init = true;
            }
        }
 public StoreRestClients(Authentication authSession, AdlClient.Models.StoreAccountRef account)
 {
     this.Account              = account;
     this.FileSystemRest       = new StoreFileSystemRestWrapper(authSession.Credentials);
     this.StoreAccountMgmtRest = new StoreManagementRestWrapper(account.SubscriptionId, authSession.Credentials);
 }
示例#6
0
 internal StoreAccountCommands(AdlClient.Models.StoreAccountRef account, AdlClient.Rest.StoreRestClients restclients)
 {
     this.Account     = account;
     this.RestClients = restclients;
 }
 public bool Exists(AdlClient.Models.StoreAccountRef account)
 {
     return(this.RestClient.Account.Exists(account.ResourceGroup, account.Name));
 }
 public void Delete(AdlClient.Models.StoreAccountRef account)
 {
     this.RestClient.Account.Delete(account.ResourceGroup, account.Name);
 }
 public void Update(AdlClient.Models.StoreAccountRef account, MSADLS.Models.DataLakeStoreAccountUpdateParameters parameters)
 {
     this.RestClient.Account.Update(account.ResourceGroup, account.Name, parameters);
 }
 public MSADLS.Models.DataLakeStoreAccount GetAccount(AdlClient.Models.StoreAccountRef account)
 {
     return(this.RestClient.Account.Get(account.ResourceGroup, account.Name));
 }
示例#11
0
        public bool AccountExsists(AdlClient.Models.StoreAccountRef account)
        {
            var client = _get_account_mgmt_client(account.SubscriptionId);

            return(client.Account.Exists(account.ResourceGroup, account.Name));
        }