Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
!Deploy!
Browse files Browse the repository at this point in the history
  • Loading branch information
DamagedDingo committed Aug 18, 2021
1 parent df13c62 commit 85d71ed
Show file tree
Hide file tree
Showing 33 changed files with 35 additions and 32 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Format as below (Requires the '### Added' as a header or task fails)
...- Update ReadMe.MD

## [Unreleased]
### Added
- All Error handling has been chnaged to provide complete error as the API was not responding consistently.
- Write-Error -ErrorRecord $_

## [1.25] - 2021-08-18
### Added
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Find-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function Find-InsightObject {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightIcon.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-InsightIcon {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

if ($Full -eq $true) {
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObject {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.ErrorDetails.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectAttributes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectAttributes {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectByIQL.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Get-InsightObjectByIQL {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectConnectedTickets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectConnectedTickets {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectHistory.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectHistory {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectReferenceInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectReferenceInfo {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectSchema.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectSchema {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectSchemaAttributes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Get-InsightObjectSchemaAttributes {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectSchemaList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Get-InsightObjectSchemaList {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectSchemaObjectTypes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectSchemaObjectTypes {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightObjectType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightObjectTypeAttributes.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-InsightObjectTypeAttributes {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightProgressCatagoryImports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightProgressCatagoryImports {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Get-InsightStatusTypeByID.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Get-InsightStatusTypeByID {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/New-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function New-InsightObject {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/New-InsightObjectSchema.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function New-InsightObjectSchema {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/New-InsightObjectType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function New-InsightObjectType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/New-InsightObjectTypeAttribute.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function New-InsightObjectTypeAttribute {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/New-InsightStatusType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function New-InsightStatusType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Remove-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Remove-InsightObject {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Remove-InsightObjectSchema.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Remove-InsightObjectSchema {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Remove-InsightObjectType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Remove-InsightObjectType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Remove-InsightObjectTypeAttribute.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Remove-InsightObjectTypeAttribute {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Remove-InsightStatusType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function Remove-InsightStatusType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightObject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Set-InsightObject {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightObjectPosition.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Set-InsightObjectPosition {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightObjectSchema.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Set-InsightObjectSchema {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightObjectType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Set-InsightObjectType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightObjectTypeAttribute.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function Set-InsightObjectTypeAttribute {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down
2 changes: 1 addition & 1 deletion JSM.Insight/Public/Set-InsightStatusType.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Set-InsightStatusType {
}
catch {
Write-Verbose "[$($MyInvocation.MyCommand.Name)] Failed"
Write-Error -Message "$($_.Exception.Message)" -ErrorId $_.Exception.Code -Category InvalidOperation
Write-Error -ErrorRecord $_
}

$response
Expand Down

0 comments on commit 85d71ed

Please sign in to comment.