-
Notifications
You must be signed in to change notification settings - Fork 6
Cut 5118 prd03 in #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
08749cf
6c9ef0b
5a73a4f
360c247
169fd39
6f62794
07856c2
e56c2d2
c3f6953
4ef52d2
cc0c5f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,10 @@ private void SetDefaultHostEnvInPowerShellSession() | |
| apiHostValue = "api.eu"; | ||
| consoleHostValue = "console.eu"; | ||
| break; | ||
| case "IN": | ||
| apiHostValue = "api.in"; | ||
| consoleHostValue = "console.in"; | ||
| break; | ||
| case "STAGING": | ||
| apiHostValue = "api.stg01"; | ||
| consoleHostValue = "console.stg01"; | ||
|
|
@@ -53,6 +57,11 @@ private void SetDefaultHostEnvInPowerShellSession() | |
| apiHostValue = "api.eu"; | ||
| consoleHostValue = "console.eu"; | ||
| } | ||
| else if (userInputEnvValue.Contains(".in")) | ||
| { | ||
| apiHostValue = "api.in"; | ||
| consoleHostValue = "console.in"; | ||
| } | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Substring
|
||
| else if (userInputEnvValue.Contains(".stg01")) | ||
| { | ||
| apiHostValue = "api.stg01"; | ||
|
|
@@ -81,8 +90,8 @@ private void SetDefaultHostEnvInPowerShellSession() | |
| { | ||
| string defaultHostPrefix = ModuleIdentifier.SDKName == "DirectoryInsights" ? "api" : "console"; | ||
| Console.WriteLine("JumpCloud SDK Module: {0} is running in the '{1}.jumpcloud.com' host environment.", ModuleIdentifier.SDKName, defaultHostPrefix); | ||
| Console.WriteLine("'{0}.jumpcloud.com' is the standard environment; '{0}.eu.jumpcloud.com' is the EU environment.", defaultHostPrefix); | ||
| Console.WriteLine("To use the EU environment, run: $ENV:{0} = 'EU' and re-import the module.", envVarNameForDefaultHostEnv); | ||
| Console.WriteLine("'{0}.jumpcloud.com' is the standard environment; '{0}.eu.jumpcloud.com' is the EU environment; '{0}.in.jumpcloud.com' is the India environment.", defaultHostPrefix); | ||
| Console.WriteLine("To use the EU or IN environments, run: $ENV:{0} = 'EU' or 'IN' and re-import the module.", envVarNameForDefaultHostEnv); | ||
| Console.WriteLine("To use the standard environment, run: $ENV:{0} = 'STANDARD' and re-import the module.", envVarNameForDefaultHostEnv); | ||
| } | ||
|
|
||
|
|
@@ -180,8 +189,8 @@ protected async Task<HttpResponseMessage> AddAuthHeaders(HttpRequestMessage requ | |
| System.Environment.SetEnvironmentVariable("JCEnvironment", HostEnv); | ||
|
|
||
| // Translate to both formats and set parameter defaults | ||
| string apiHost = HostEnv.Contains(".eu") ? "api.eu" : (HostEnv.Contains(".stg01") ? "api.stg01" : "api"); | ||
| string consoleHost = HostEnv.Contains(".eu") ? "console.eu" : (HostEnv.Contains(".stg01") ? "console.stg01" : "console"); | ||
| string apiHost = HostEnv.Contains(".eu") ? "api.eu" : HostEnv.Contains(".in") ? "api.in" : HostEnv.Contains(".stg01") ? "api.stg01" : "api"; | ||
| string consoleHost = HostEnv.Contains(".eu") ? "console.eu" : HostEnv.Contains(".in") ? "console.in" : HostEnv.Contains(".stg01") ? "console.stg01" : "console"; | ||
| SetPSDefaultHostEnvParameterValue(apiHost, consoleHost); | ||
| } | ||
|
|
||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.