-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update CHANGELOG.md * Update about_IdentityCommand.help.txt Update help * Update IdentityCommand.psd1 Update Icon * ADD Get-IDUserRole initial commit of new function. * 📝 🌐 UPDATE Help * ADD Get-IDAnalyticsDataset Initial commit of new command * ADD Get-IDTenantCname Initial commit of new function * ADD Get-IDDownloadUrl initial commit of function * 💚 FIX Get-IDDownloadUrl.Tests Invoke correct command * ADD Get-IDUserIdentifier initial commit of new command * Update Get-IDUserIdentifier.Tests.ps1 * ADD Invoke-IDSqlcmd Initial Commit of new function * Update CHANGELOG.md * Update CHANGELOG.md
- Loading branch information
Showing
25 changed files
with
1,932 additions
and
8 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
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
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,21 @@ | ||
# .ExternalHelp IdentityCommand-help.xml | ||
function Get-IDAnalyticsDataset { | ||
[CmdletBinding()] | ||
param( ) | ||
|
||
BEGIN { | ||
|
||
$URI = "$Script:tenant_url/analytics/services/v1.0/dataset" | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
#Send Request | ||
Invoke-IDRestMethod -Uri $URI -Method GET | ||
|
||
}#process | ||
|
||
END {}#end | ||
|
||
} |
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,21 @@ | ||
# .ExternalHelp IdentityCommand-help.xml | ||
function Get-IDDownloadUrl { | ||
[CmdletBinding()] | ||
param( ) | ||
|
||
BEGIN { | ||
|
||
$URI = "$Script:tenant_url/Core/GetDownloadUrls" | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
#Send Request | ||
Invoke-IDRestMethod -Uri $URI -Method POST | ||
|
||
}#process | ||
|
||
END {}#end | ||
|
||
} |
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,21 @@ | ||
# .ExternalHelp IdentityCommand-help.xml | ||
function Get-IDTenantCname { | ||
[CmdletBinding()] | ||
param( ) | ||
|
||
BEGIN { | ||
|
||
$URI = "$Script:tenant_url/TenantCnames/UiGet" | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
#Send Request | ||
Invoke-IDRestMethod -Uri $URI -Method POST | ||
|
||
}#process | ||
|
||
END {}#end | ||
|
||
} |
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,21 @@ | ||
# .ExternalHelp IdentityCommand-help.xml | ||
function Get-IDUserIdentifier { | ||
[CmdletBinding()] | ||
param( ) | ||
|
||
BEGIN { | ||
|
||
$URI = "$Script:tenant_url/UserIdentifiers/Get" | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
#Send Request | ||
Invoke-IDRestMethod -Uri $URI -Method POST | ||
|
||
}#process | ||
|
||
END {}#end | ||
|
||
} |
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,72 @@ | ||
# .ExternalHelp IdentityCommand-help.xml | ||
function Get-IDUserRole { | ||
[CmdletBinding()] | ||
param( | ||
[parameter( | ||
Mandatory = $true, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[Alias('Uuid')] | ||
[String]$ID, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$Limit, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$PageNumber, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$PageSize, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateRange(-1, 0)] | ||
[int]$Caching, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[string]$SortBy | ||
) | ||
|
||
BEGIN { | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
$URLParameters = $PSBoundParameters | Get-Parameter -ParametersToKeep ID | ||
$BoundParameters = $PSBoundParameters | Get-Parameter -ParametersToRemove ID | ||
|
||
$URI = "$Script:tenant_url/UserMgmt/GetUsersRolesAndAdministrativeRights?$($URLParameters | ConvertTo-QueryString)" | ||
|
||
$Body = @{'Args' = $BoundParameters } | ConvertTo-Json | ||
|
||
#Send Request | ||
$result = Invoke-IDRestMethod -Uri $URI -Method POST -Body $Body | ||
|
||
if ($null -ne $result) { | ||
$result | ||
} | ||
|
||
}#process | ||
|
||
END { }#end | ||
|
||
} |
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,76 @@ | ||
function Invoke-IDSqlcmd { | ||
[CmdletBinding()] | ||
param( | ||
[parameter( | ||
Mandatory = $true, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[String]$Script, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$Limit, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$PageNumber, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateNotNullOrEmpty()] | ||
[int]$PageSize, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[ValidateRange(-1, 0)] | ||
[int]$Caching, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[bool]$Direction, | ||
|
||
[parameter( | ||
Mandatory = $false, | ||
ValueFromPipelinebyPropertyName = $true | ||
)] | ||
[string]$SortBy | ||
) | ||
|
||
BEGIN { | ||
|
||
}#begin | ||
|
||
PROCESS { | ||
|
||
$URI = "$Script:tenant_url/Redrock/query" | ||
|
||
#Create request body with Script & args properties | ||
$Cmd = $PSBoundParameters | Get-Parameter -ParametersToKeep Script | ||
$Cmd.Add('args', $($PSBoundParameters | Get-Parameter -ParametersToRemove Script)) | ||
$Body = $Cmd | ConvertTo-Json | ||
|
||
#Send Request | ||
$result = Invoke-IDRestMethod -Uri $URI -Method POST -Body $Body | ||
|
||
if ($null -ne $result) { | ||
$result.Results.Row | ||
} | ||
|
||
}#process | ||
|
||
END { }#end | ||
|
||
} |
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
Oops, something went wrong.