AzureML.ManagementSDK.SetApiUrl C# (CSharp) Method

SetApiUrl() private method

private SetApiUrl ( string location ) : void
location string
return void
        private void SetApiUrl(string location)
        {
            string key = string.Empty;
            switch (location.ToLower())
            {
                case "south central us":
                    key = "";
                    SetAPIEndpoints(key, ".net");
                    break;
                case "west europe":
                    key = "europewest.";
                    SetAPIEndpoints(key, ".net");
                    break;
                case "southeast asia":
                    key = "asiasoutheast.";
                    SetAPIEndpoints(key, ".net");
                    break;
                case "japan east":
                    key = "japaneast.";
                    SetAPIEndpoints(key, ".net");
                    break;
                case "germany central":
                    key = "germanycentral.";
                    SetAPIEndpoints(key, ".de");
                    break;
                case "integration test":
                    key = "";
                    SetAPIEndpoints(key, "-int.net");
                    break;
                default:
                    throw new Exception("Unsupported location: " + location);
            }                                 
        }