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;
 }
Exemplo n.º 2
0
        private DataLakeStoreAccountManagementClient _get_account_mgmt_client(string subid)
        {
            var client = new MSADLS.DataLakeStoreAccountManagementClient(this.Authentication.ArmCreds);

            client.SubscriptionId = subid;
            return(client);
        }
 public StoreManagementRestWrapper(string sub, Microsoft.Rest.ServiceClientCredentials creds)
 {
     this.RestClient = new DataLakeStoreAccountManagementClient(creds);
     this.RestClient.SubscriptionId = sub;
 }