Skip to content

Commit

Permalink
Change module version to 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aguzev committed May 3, 2023
1 parent ccf0347 commit bbdd2ae
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Version number of this module.

ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'

# Supported PSEditions
#CompatiblePSEditions = @("Desktop", "Core")
Expand Down Expand Up @@ -71,11 +71,11 @@ ProcessorArchitecture = ''
RequiredModules = @(
@{
ModuleName = 'PureStoragePowerShellToolkit.DatabaseTools'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
},
@{
ModuleName = 'PureStoragePowerShellToolkit.FlashArray'
Moduleversion = '3.0.0.3'
Moduleversion = '3.0.1'
}
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RootModule = 'PureStoragePowerShellToolkit.DatabaseTools.psm1'

# Version number of this module.

ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'

# Supported PSEditions
#CompatiblePSEditions = @("Desktop", "Core")
Expand Down Expand Up @@ -71,11 +71,11 @@ ProcessorArchitecture = ''
RequiredModules = @(
@{
ModuleName = 'PureStoragePowerShellToolkit.FlashArray'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
},
@{
ModuleName = 'dbatools'
ModuleVersion = '1.0.173'
ModuleVersion = '1.1.146'
}
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
===========================================================================
Release version: 3.0.0
Release version: 3.0.1
Revision information: Refer to the changelog.md file
---------------------------------------------------------------------------
Maintained by: FlashArray Integrations and Evangelsigm Team @ Pure Storage
Expand All @@ -20,7 +20,7 @@
#>

#Requires -Version 5
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.0.3' }
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' }
#Requires -Modules @{ ModuleName='dbatools'; ModuleVersion='1.0.173' }

#region Helper functions
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
===========================================================================
Release version: 3.0.0
Release version: 3.0.1
Revision information: Refer to the changelog.md file
---------------------------------------------------------------------------
Maintained by: FlashArray Integrations and Evangelsigm Team @ Pure Storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RootModule = 'PureStoragePowerShellToolkit.FlashArray.psm1'

# Version number of this module.

ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'

# Supported PSEditions
#CompatiblePSEditions = @("Desktop", "Core")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
===========================================================================
Release version: 3.0.0
Release version: 3.0.1
Revision information: Refer to the changelog.md file
---------------------------------------------------------------------------
Maintained by: FlashArray Integrations and Evangelsigm Team @ Pure Storage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ RootModule = 'PureStoragePowerShellToolkit.WindowsAdministration.psm1'

# Version number of this module.

ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'

# Supported PSEditions
#CompatiblePSEditions = @("Desktop", "Core")
Expand Down Expand Up @@ -71,7 +71,7 @@ ProcessorArchitecture = ''
RequiredModules = @(
@{
ModuleName = 'PureStoragePowerShellToolkit.FlashArray'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
}
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#
===========================================================================
Release version: 3.0.0
Release version: 3.0.1
Revision information: Refer to the changelog.md file
---------------------------------------------------------------------------
Maintained by: FlashArray Integrations and Evangelsigm Team @ Pure Storage
Expand All @@ -20,25 +20,25 @@
#>

#Requires -Version 5
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.0.3' }

#region Helper functions

function Convert-UnitOfSize {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
[AllowNull()]
$Value,
$To = 1GB,
$From = 1,
$Decimals = 2
)

process {
return [math]::Round($Value * $From / $To, $Decimals)
}
}
#Requires -Modules @{ ModuleName='PureStoragePowerShellToolkit.FlashArray'; ModuleVersion='3.0.1' }

#region Helper functions

function Convert-UnitOfSize {
[CmdletBinding()]
param (
[Parameter(Mandatory, ValueFromPipeline, ValueFromPipelineByPropertyName)]
[AllowNull()]
$Value,
$To = 1GB,
$From = 1,
$Decimals = 2
)

process {
return [math]::Round($Value * $From / $To, $Decimals)
}
}

function Write-Color {
[CmdletBinding()]
Expand Down Expand Up @@ -111,89 +111,89 @@ function Write-Color {
}
}

#endregion Helper functions

function Get-Pfa2SerialNumbers() {
<#
.SYNOPSIS
Retrieves FlashArray disk serial numbers connected to the host.
.DESCRIPTION
Cmdlet retrieves disk serial numbers that are associated to Pure FlashArrays.
.PARAMETER CimSession
Optional. A CimSession or computer name. CIM session may be reused.
.INPUTS
CimSession is optional.
.OUTPUTS
Outputs serial numbers of FlashArrays devices.
.EXAMPLE
Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to the host.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession 'myComputer'
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
.EXAMPLE
$session = New-CimSession 'myComputer' -Credential (Get-Credential)
Get-Pfa2SerialNumbers -CimSession $session
Get-Pfa2HostBusAdapter -CimSession $session
Returns serial number information on Pure FlashArray disk devices and host bus adapter
with previously created CIM session.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential $Creds)
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'
with credentials stored in variable $Creds.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential (Get-Secret admin))
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'
with credentials stored in a secret vault.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential (Get-Credential))
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'. Asks for credentials.
.EXAMPLE
'myComputer' | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
.EXAMPLE
$session = New-CimSession 'myComputer' -Credential (Get-Credential)
$session | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices with previously created CIM session.
.EXAMPLE
'myComputer01', 'myComputer02' | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer01' and 'myComputer02' with current credentials.
.EXAMPLE
$prod = [pscustomobject]@{Caption = 'Prod Server'; CimSession = 'myComputer'}
$prod | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
#>

[CmdletBinding()]
Param (
[Parameter(ValueFromPipeline, ValueFromPipelineByPropertyName)]
[ValidateNotNull()]
[CimSession]$CimSession
)

process {
Get-Disk -FriendlyName 'PURE FlashArray*' @PSBoundParameters | Select-Object PSComputerName, Number, SerialNumber
}
}
#endregion Helper functions

function Get-Pfa2SerialNumbers() {
<#
.SYNOPSIS
Retrieves FlashArray disk serial numbers connected to the host.
.DESCRIPTION
Cmdlet retrieves disk serial numbers that are associated to Pure FlashArrays.
.PARAMETER CimSession
Optional. A CimSession or computer name. CIM session may be reused.
.INPUTS
CimSession is optional.
.OUTPUTS
Outputs serial numbers of FlashArrays devices.
.EXAMPLE
Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to the host.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession 'myComputer'
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
.EXAMPLE
$session = New-CimSession 'myComputer' -Credential (Get-Credential)
Get-Pfa2SerialNumbers -CimSession $session
Get-Pfa2HostBusAdapter -CimSession $session
Returns serial number information on Pure FlashArray disk devices and host bus adapter
with previously created CIM session.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential $Creds)
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'
with credentials stored in variable $Creds.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential (Get-Secret admin))
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'
with credentials stored in a secret vault.
.EXAMPLE
Get-Pfa2SerialNumbers -CimSession (New-CimSession 'myComputer' -Credential (Get-Credential))
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer'. Asks for credentials.
.EXAMPLE
'myComputer' | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
.EXAMPLE
$session = New-CimSession 'myComputer' -Credential (Get-Credential)
$session | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices with previously created CIM session.
.EXAMPLE
'myComputer01', 'myComputer02' | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer01' and 'myComputer02' with current credentials.
.EXAMPLE
$prod = [pscustomobject]@{Caption = 'Prod Server'; CimSession = 'myComputer'}
$prod | Get-Pfa2SerialNumbers
Returns serial number information on Pure FlashArray disk devices connected to 'myComputer' with current credentials.
#>

[CmdletBinding()]
Param (
[Parameter(ValueFromPipeline, ValueFromPipelineByPropertyName)]
[ValidateNotNull()]
[CimSession]$CimSession
)

process {
Get-Disk -FriendlyName 'PURE FlashArray*' @PSBoundParameters | Select-Object PSComputerName, Number, SerialNumber
}
}

function Get-Pfa2HostBusAdapter() {
<#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Version number of this module.

ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'

# Supported PSEditions
#CompatiblePSEditions = @("Desktop", "Core")
Expand Down Expand Up @@ -71,15 +71,15 @@ ProcessorArchitecture = ''
RequiredModules = @(
@{
ModuleName = 'PureStoragePowerShellToolkit.Core'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
},
@{
ModuleName = 'PureStoragePowerShellToolkit.WindowsAdministration'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
},
@{
ModuleName = 'PureStoragePowerShellToolkit.Exchange'
ModuleVersion = '3.0.0.3'
ModuleVersion = '3.0.1'
}
)

Expand Down

0 comments on commit bbdd2ae

Please sign in to comment.