-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
63,759 additions
and
46,014 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using System.Net; | ||
using System.Net.Http; | ||
using Microsoft.Identity.Client; | ||
|
||
public class HttpFactoryWithProxy : IMsalHttpClientFactory | ||
{ | ||
private static HttpClient _httpClient; | ||
|
||
public public HttpFactoryWithProxy(string proxyURI) : this(proxyURI, null, null) | ||
{ | ||
|
||
} | ||
|
||
public HttpFactoryWithProxy(string proxyURI, string proxyUserName = null, string proxyPassword = null) | ||
{ | ||
if (_httpClient == null) | ||
{ | ||
var proxy = new WebProxy | ||
{ | ||
Address = new Uri(proxyURI), | ||
BypassProxyOnLocal = false, | ||
UseDefaultCredentials = false, | ||
Credentials = new NetworkCredential( | ||
userName: proxyUserName, | ||
password: proxyPassword) | ||
}; | ||
|
||
var httpClientHandler = new HttpClientHandler | ||
{ | ||
Proxy = proxy, | ||
}; | ||
|
||
_httpClient = new HttpClient(handler: httpClientHandler); | ||
} | ||
} | ||
|
||
public HttpClient GetHttpClient() | ||
{ | ||
return _httpClient; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
Documentation/ObjectInfo/#microsoft.graph.windowsDriverUpdateProfile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
[ | ||
{ | ||
"nameResourceKey": "TableHeaders.policyType", | ||
"descriptionResourceKey": "", | ||
"entityKey": "WindowsDriverUpdateProfile.Subtitle.automatic", | ||
"dataType": 200, | ||
"booleanActions": 0, | ||
"category": 1000, | ||
"Condition": { | ||
"Expressions": [ | ||
{ | ||
"property": "approvalType", | ||
"value": "automatic" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"nameResourceKey": "TableHeaders.policyType", | ||
"descriptionResourceKey": "", | ||
"entityKey": "WindowsDriverUpdateProfile.Subtitle.manual", | ||
"dataType": 200, | ||
"booleanActions": 0, | ||
"category": 1000, | ||
"Condition": { | ||
"Expressions": [ | ||
{ | ||
"property": "approvalType", | ||
"value": "manual" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"nameResourceKey": "WindowsDriverUpdateProfile.Details.ApprovalMethod.label", | ||
"descriptionResourceKey": "", | ||
"entityKey": "approvalType", | ||
"dataType": 16, | ||
"booleanActions": 0, | ||
"category": "TableHeaders.settings", | ||
"options": [ | ||
{ | ||
"nameResourceKey": "WindowsDriverUpdateProfile.ApprovalMethod.automatic", | ||
"value": "automatic" | ||
}, | ||
{ | ||
"nameResourceKey": "WindowsDriverUpdateProfile.ApprovalMethod.manual", | ||
"value": "manual" | ||
} | ||
] | ||
}, | ||
{ | ||
"nameResourceKey": "WindowsDriverUpdateProfile.Details.DeploymentDeferralInDays.label", | ||
"descriptionResourceKey": "", | ||
"entityKey": "deploymentDeferralInDays", | ||
"formatStringKey": "WindowsDriverUpdateProfile.Details.DeploymentDeferralInDays.value", | ||
"dataType": 108, | ||
"booleanActions": 0, | ||
"category": "TableHeaders.settings", | ||
"Condition": { | ||
"Expressions": [ | ||
{ | ||
"property": "approvalType", | ||
"value": "automatic" | ||
} | ||
] | ||
} | ||
} | ||
] |
Oops, something went wrong.