mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 11:15:46 +00:00
Fix trailing white space
using Invoke-ScriptAnalyzer -Fix -Path . -Recurse
This commit is contained in:
parent
2b7c1b4be3
commit
3dbfdaf038
60 changed files with 2630 additions and 2630 deletions
|
|
@ -67,15 +67,15 @@ function New-NetboxDCIMDevice {
|
||||||
# if ($null -ne $Device_Role) {
|
# if ($null -ne $Device_Role) {
|
||||||
# # Validate device role?
|
# # Validate device role?
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Device_Type) {
|
# if ($null -ne $Device_Type) {
|
||||||
# # Validate device type?
|
# # Validate device type?
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Face) {
|
# if ($null -ne $Face) {
|
||||||
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
||||||
# }
|
# }
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ function Set-NetboxDCIMDevice {
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Face) {
|
# if ($null -ne $Face) {
|
||||||
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
||||||
# }
|
# }
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
# $PSBoundParameters.Status = ValidateIPAMChoice -ProvidedValue $Status -VLANStatus
|
# $PSBoundParameters.Status = ValidateIPAMChoice -ProvidedValue $Status -VLANStatus
|
||||||
#
|
|
||||||
# if ($null -ne $Role) {
|
# if ($null -ne $Role) {
|
||||||
# $PSBoundParameters.Role = ValidateIPAMChoice -ProvidedValue $Role -IPAddressRole
|
# $PSBoundParameters.Role = ValidateIPAMChoice -ProvidedValue $Role -IPAddressRole
|
||||||
# }
|
# }
|
||||||
|
|
|
||||||
|
|
@ -47,12 +47,12 @@ function New-NetboxVirtualMachine {
|
||||||
)
|
)
|
||||||
|
|
||||||
# $ModelDefinition = $script:NetboxConfig.APIDefinition.definitions.WritableVirtualMachineWithConfigContext
|
# $ModelDefinition = $script:NetboxConfig.APIDefinition.definitions.WritableVirtualMachineWithConfigContext
|
||||||
#
|
|
||||||
# # Validate the status against the APIDefinition
|
# # Validate the status against the APIDefinition
|
||||||
# if ($ModelDefinition.properties.status.enum -inotcontains $Status) {
|
# if ($ModelDefinition.properties.status.enum -inotcontains $Status) {
|
||||||
# throw ("Invalid value [] for Status. Must be one of []" -f $Status, ($ModelDefinition.properties.status.enum -join ', '))
|
# throw ("Invalid value [] for Status. Must be one of []" -f $Status, ($ModelDefinition.properties.status.enum -join ', '))
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
#$PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
#$PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
||||||
|
|
||||||
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines'))
|
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines'))
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ function Set-NetboxVirtualMachine {
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
# $PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines', $Id))
|
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines', $Id))
|
||||||
|
|
||||||
Write-Verbose "Obtaining VM from ID $Id"
|
Write-Verbose "Obtaining VM from ID $Id"
|
||||||
|
|
|
||||||
|
|
@ -3316,15 +3316,15 @@ function New-NetboxDCIMDevice {
|
||||||
# if ($null -ne $Device_Role) {
|
# if ($null -ne $Device_Role) {
|
||||||
# # Validate device role?
|
# # Validate device role?
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Device_Type) {
|
# if ($null -ne $Device_Type) {
|
||||||
# # Validate device type?
|
# # Validate device type?
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Face) {
|
# if ($null -ne $Face) {
|
||||||
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
||||||
# }
|
# }
|
||||||
|
|
@ -3603,7 +3603,7 @@ function New-NetboxIPAMVLAN {
|
||||||
)
|
)
|
||||||
|
|
||||||
# $PSBoundParameters.Status = ValidateIPAMChoice -ProvidedValue $Status -VLANStatus
|
# $PSBoundParameters.Status = ValidateIPAMChoice -ProvidedValue $Status -VLANStatus
|
||||||
#
|
|
||||||
# if ($null -ne $Role) {
|
# if ($null -ne $Role) {
|
||||||
# $PSBoundParameters.Role = ValidateIPAMChoice -ProvidedValue $Role -IPAddressRole
|
# $PSBoundParameters.Role = ValidateIPAMChoice -ProvidedValue $Role -IPAddressRole
|
||||||
# }
|
# }
|
||||||
|
|
@ -3670,12 +3670,12 @@ function New-NetboxVirtualMachine {
|
||||||
)
|
)
|
||||||
|
|
||||||
# $ModelDefinition = $script:NetboxConfig.APIDefinition.definitions.WritableVirtualMachineWithConfigContext
|
# $ModelDefinition = $script:NetboxConfig.APIDefinition.definitions.WritableVirtualMachineWithConfigContext
|
||||||
#
|
|
||||||
# # Validate the status against the APIDefinition
|
# # Validate the status against the APIDefinition
|
||||||
# if ($ModelDefinition.properties.status.enum -inotcontains $Status) {
|
# if ($ModelDefinition.properties.status.enum -inotcontains $Status) {
|
||||||
# throw ("Invalid value [] for Status. Must be one of []" -f $Status, ($ModelDefinition.properties.status.enum -join ', '))
|
# throw ("Invalid value [] for Status. Must be one of []" -f $Status, ($ModelDefinition.properties.status.enum -join ', '))
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
#$PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
#$PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
||||||
|
|
||||||
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines'))
|
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines'))
|
||||||
|
|
@ -4153,7 +4153,7 @@ function Set-NetboxDCIMDevice {
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
# $PSBoundParameters.Status = ValidateDCIMChoice -ProvidedValue $Status -DeviceStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
# if ($null -ne $Face) {
|
# if ($null -ne $Face) {
|
||||||
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
# $PSBoundParameters.Face = ValidateDCIMChoice -ProvidedValue $Face -DeviceFace
|
||||||
# }
|
# }
|
||||||
|
|
@ -4767,7 +4767,7 @@ function Set-NetboxVirtualMachine {
|
||||||
# if ($null -ne $Status) {
|
# if ($null -ne $Status) {
|
||||||
# $PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
# $PSBoundParameters.Status = ValidateVirtualizationChoice -ProvidedValue $Status -VirtualMachineStatus
|
||||||
# }
|
# }
|
||||||
#
|
|
||||||
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines', $Id))
|
$Segments = [System.Collections.ArrayList]::new(@('virtualization', 'virtual-machines', $Id))
|
||||||
|
|
||||||
Write-Verbose "Obtaining VM from ID $Id"
|
Write-Verbose "Obtaining VM from ID $Id"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue