Skip to content

Commit 86aa4ce

Browse files
committed
Pascal case complete
naming best practices to pascal case
1 parent f916bf4 commit 86aa4ce

File tree

7 files changed

+225
-212
lines changed

7 files changed

+225
-212
lines changed

PureStorage.FlashArray.VMware.Configuration/PureStorage.FlashArray.VMware.Configuration.psm1

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@ function New-PfaConnection {
4343
Param(
4444

4545
[Parameter(Position=0,mandatory=$true)]
46-
[string]$endpoint,
46+
[string]$Endpoint,
4747

4848
[Parameter(Position=1,ValueFromPipeline=$True,mandatory=$true)]
49-
[System.Management.Automation.PSCredential]$credentials,
49+
[System.Management.Automation.PSCredential]$Credentials,
5050

5151
[Parameter(ParameterSetName='Primary',Mandatory = $true)]
52-
[switch]$defaultArray,
52+
[switch]$DefaultArray,
5353

5454
[Parameter(ParameterSetName='Non-Primary',Mandatory = $true)]
55-
[switch]$nonDefaultArray,
55+
[switch]$NonDefaultArray,
5656

5757
[Parameter(Position=3)]
58-
[switch]$ignoreCertificateError
58+
[switch]$IgnoreCertificateError
5959
)
6060
Begin {
6161
$ErrorActionPreference = "stop"
@@ -134,23 +134,23 @@ function Get-PfaDatastore {
134134
[Parameter(ParameterSetName='Cluster',Position=0,ValueFromPipeline=$True)]
135135
[Parameter(ParameterSetName='Host',Position=0,ValueFromPipeline=$True)]
136136
[Parameter(ParameterSetName='All',Position=0,ValueFromPipeline=$True)]
137-
[PurePowerShell.PureArray]$flasharray,
137+
[PurePowerShell.PureArray]$Flasharray,
138138

139139
[Parameter(ParameterSetName='Cluster',Position=1)]
140140
[Parameter(ParameterSetName='Host',Position=1)]
141141
[Parameter(ParameterSetName='All',Position=1)]
142-
[switch]$vvol,
142+
[switch]$Vvol,
143143

144144
[Parameter(ParameterSetName='Cluster',Position=2)]
145145
[Parameter(ParameterSetName='Host',Position=2)]
146146
[Parameter(ParameterSetName='All',Position=2)]
147-
[switch]$vmfs,
147+
[switch]$Vmfs,
148148

149149
[Parameter(ParameterSetName='Cluster',ValueFromPipeline=$True)]
150-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$cluster,
150+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$Cluster,
151151

152152
[Parameter(ParameterSetName='Host',ValueFromPipeline=$True)]
153-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$esxi
153+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$Esxi
154154
)
155155
if ($null -ne $esxi)
156156
{
@@ -241,7 +241,7 @@ will not be liable for any damage or loss to the system.
241241
Param(
242242

243243
[Parameter(Position=0,ValueFromPipeline=$True)]
244-
[PurePowerShell.PureArray[]]$flasharrays,
244+
[PurePowerShell.PureArray[]]$Flasharrays,
245245

246246
[Parameter(Position=1,mandatory=$true,ValueFromPipeline=$True)]
247247
[ValidateScript({
@@ -253,7 +253,7 @@ Param(
253253
$true
254254
}
255255
})]
256-
[VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore]$datastore
256+
[VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.Datastore]$Datastore
257257
)
258258
if ($null -eq $flasharrays)
259259
{
@@ -336,10 +336,10 @@ function Get-PfaConnectionFromArrayId {
336336
[CmdletBinding()]
337337
Param(
338338
[Parameter(Position=0,ValueFromPipeline=$True)]
339-
[PurePowerShell.PureArray[]]$flasharrays,
339+
[PurePowerShell.PureArray[]]$Flasharrays,
340340

341341
[Parameter(Position=1,mandatory=$true)]
342-
[string]$arrayId
342+
[string]$ArrayId
343343
)
344344
if ($null -eq $flasharrays)
345345
{
@@ -387,7 +387,7 @@ function New-PfaRestSession {
387387
[CmdletBinding()]
388388
Param(
389389
[Parameter(Position=0,ValueFromPipeline=$True)]
390-
[PurePowerShell.PureArray]$flasharray
390+
[PurePowerShell.PureArray]$Flasharray
391391
)
392392
#Connect to FlashArray
393393
if ($null -eq $flasharray)
@@ -454,10 +454,10 @@ function Remove-PfaRestSession {
454454
[CmdletBinding()]
455455
Param(
456456
[Parameter(Position=0,ValueFromPipeline=$True,mandatory=$true)]
457-
[Microsoft.PowerShell.Commands.WebRequestSession]$faSession,
457+
[Microsoft.PowerShell.Commands.WebRequestSession]$FaSession,
458458

459459
[Parameter(Position=1,ValueFromPipeline=$True,mandatory=$true)]
460-
[PurePowerShell.PureArray]$flasharray
460+
[PurePowerShell.PureArray]$Flasharray
461461
)
462462
if ($null -eq $flasharray)
463463
{
@@ -537,17 +537,17 @@ function New-PfaHostFromVmHost {
537537
Param(
538538
[Parameter(ParameterSetName='iSCSI',Position=0,mandatory=$true)]
539539
[Parameter(ParameterSetName='FC',Position=0,mandatory=$true)]
540-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$esxi,
540+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$Esxi,
541541

542542
[Parameter(ParameterSetName='iSCSI',Position=1,ValueFromPipeline=$True)]
543543
[Parameter(ParameterSetName='FC',Position=1,ValueFromPipeline=$True)]
544-
[PurePowerShell.PureArray[]]$flasharray,
544+
[PurePowerShell.PureArray[]]$Flasharray,
545545

546546
[Parameter(ParameterSetName='iSCSI',mandatory=$true)]
547-
[switch]$iscsi,
547+
[switch]$Iscsi,
548548

549549
[Parameter(ParameterSetName='FC',mandatory=$true)]
550-
[switch]$fc
550+
[switch]$Fc
551551
)
552552
Begin {
553553
$vmHosts = @()
@@ -700,10 +700,10 @@ function Get-PfaHostFromVmHost {
700700
[CmdletBinding()]
701701
Param(
702702
[Parameter(Position=0,mandatory=$true,ValueFromPipeline=$True)]
703-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$esxi,
703+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$Esxi,
704704

705705
[Parameter(Position=1,ValueFromPipeline=$True)]
706-
[PurePowerShell.PureArray]$flasharray
706+
[PurePowerShell.PureArray]$Flasharray
707707
)
708708
if ($null -eq $flasharray)
709709
{
@@ -804,10 +804,10 @@ function Get-PfaHostGroupfromVcCluster {
804804
[CmdletBinding()]
805805
Param(
806806
[Parameter(Position=0,mandatory=$true,ValueFromPipeline=$True)]
807-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$cluster,
807+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$Cluster,
808808

809809
[Parameter(Position=1,ValueFromPipeline=$True)]
810-
[PurePowerShell.PureArray]$flasharray
810+
[PurePowerShell.PureArray]$Flasharray
811811
)
812812
if ($null -eq $flasharray)
813813
{
@@ -897,17 +897,17 @@ function New-PfaHostGroupfromVcCluster {
897897
Param(
898898
[Parameter(ParameterSetName='iSCSI',Position=0,mandatory=$true)]
899899
[Parameter(ParameterSetName='FC',Position=0,mandatory=$true)]
900-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$cluster,
900+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$Cluster,
901901

902902
[Parameter(ParameterSetName='iSCSI',Position=1,ValueFromPipeline=$True)]
903903
[Parameter(ParameterSetName='FC',Position=1,ValueFromPipeline=$True)]
904-
[PurePowerShell.PureArray[]]$flasharray,
904+
[PurePowerShell.PureArray[]]$Flasharray,
905905

906906
[Parameter(ParameterSetName='iSCSI',mandatory=$true)]
907-
[switch]$iscsi,
907+
[switch]$Iscsi,
908908

909909
[Parameter(ParameterSetName='FC',mandatory=$true)]
910-
[switch]$fc
910+
[switch]$Fc
911911
)
912912
Begin {
913913
$pfaHostGroups = @()
@@ -1099,10 +1099,10 @@ function Set-VmHostPfaiSCSI{
10991099
[CmdletBinding()]
11001100
Param(
11011101
[Parameter(Position=0,mandatory=$true)]
1102-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$esxi,
1102+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VMHost]$Esxi,
11031103

11041104
[Parameter(Position=1,ValueFromPipeline=$True)]
1105-
[PurePowerShell.PureArray[]]$flasharray
1105+
[PurePowerShell.PureArray[]]$Flasharray
11061106
)
11071107
Begin {
11081108
$allESXitargets = @()
@@ -1220,10 +1220,10 @@ function Set-ClusterPfaiSCSI {
12201220
[CmdletBinding()]
12211221
Param(
12221222
[Parameter(Position=0,mandatory=$true)]
1223-
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$cluster,
1223+
[VMware.VimAutomation.ViCore.Types.V1.Inventory.Cluster]$Cluster,
12241224

12251225
[Parameter(Position=1,ValueFromPipeline=$True)]
1226-
[PurePowerShell.PureArray[]]$flasharray
1226+
[PurePowerShell.PureArray[]]$Flasharray
12271227
)
12281228
Begin {
12291229
$allEsxiiSCSItargets = @()
@@ -1305,25 +1305,25 @@ function Initialize-PfaVcfWorkloadDomain {
13051305
Param(
13061306

13071307
[Parameter(Position=0,mandatory=$true)]
1308-
[string[]]$esxiHosts,
1308+
[string[]]$EsxiHosts,
13091309

13101310
[Parameter(Position=1,ValueFromPipeline=$True,mandatory=$true)]
1311-
[System.Management.Automation.PSCredential]$credentials,
1311+
[System.Management.Automation.PSCredential]$Credentials,
13121312

13131313
[Parameter(Position=1,ValueFromPipeline=$True)]
1314-
[PurePowerShell.PureArray]$flasharray,
1314+
[PurePowerShell.PureArray]$Flasharray,
13151315

13161316
[Parameter(Position=2,mandatory=$true)]
1317-
[string]$datastoreName,
1317+
[string]$DatastoreName,
13181318

13191319
[Parameter(Position=3)]
1320-
[int]$sizeInGB,
1320+
[int]$SizeInGB,
13211321

13221322
[Parameter(Position=4)]
1323-
[int]$sizeInTB,
1323+
[int]$SizeInTB,
13241324

13251325
[Parameter(Position=5)]
1326-
[switch]$fc
1326+
[switch]$Fc
13271327

13281328
)
13291329
if ($fc -ne $true)
@@ -1494,32 +1494,32 @@ function New-PfaRestOperation {
14941494
[CmdletBinding()]
14951495
Param(
14961496
[Parameter(Position=0,mandatory=$True)]
1497-
[string]$resourceType,
1497+
[string]$ResourceType,
14981498

14991499
[Parameter(Position=1)]
1500-
[string]$queryFilter,
1500+
[string]$QueryFilter,
15011501

15021502
[Parameter(Position=2)]
1503-
[string]$jsonBody,
1503+
[string]$JsonBody,
15041504

15051505
[Parameter(Position=3,mandatory=$True)]
15061506
[ValidateSet('POST','GET','DELETE','PUT','PATCH')]
1507-
[string]$restOperationType,
1507+
[string]$RestOperationType,
15081508

15091509
[Parameter(ParameterSetName='REST',Position=4)]
1510-
[Microsoft.PowerShell.Commands.WebRequestSession]$pfaSession,
1510+
[Microsoft.PowerShell.Commands.WebRequestSession]$PfaSession,
15111511

15121512
[Parameter(ParameterSetName='FlashArray',Position=5,ValueFromPipeline=$True)]
1513-
[PurePowerShell.PureArray]$flasharray,
1513+
[PurePowerShell.PureArray]$Flasharray,
15141514

15151515
[Parameter(ParameterSetName='REST',Position=6)]
1516-
[string]$url,
1516+
[string]$Url,
15171517

15181518
[Parameter(Position=7)]
15191519
[switch]$SkipCertificateCheck,
15201520

15211521
[Parameter(ParameterSetName='REST',Position=8)]
1522-
[string]$pfaRestVersion
1522+
[string]$PfaRestVersion
15231523
)
15241524
if ($null -ne $flasharray)
15251525
{
@@ -1599,7 +1599,7 @@ New-Alias -Name Set-clusterPureFAiSCSI -Value Set-clusterPfaiSCSI
15991599

16001600

16011601
#### helper functions
1602-
function cleanup-pfaVcf{
1602+
function Cleanup-PfaVcf{
16031603
if ($scriptCleanupStep -lt 6)
16041604
{
16051605
if ($scriptCleanupStep -eq 5)

PureStorage.FlashArray.VMware.RDM/PureStorage.FlashArray.VMware.RDM.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
NestedModules = @()
8383

8484
# Functions to export from this module
85-
FunctionsToExport = 'Convert-PfaRDMToVvol','Remove-PfaRDM','Set-PfaRDMCapacity','Copy-PfaSnapshotToRDM','Get-PfaRDMSnapshot','New-PfaRDMSnapshot','Get-PfaConnectionFromRDM','Get-PfaRDMVol','New-PfaRDM'
85+
FunctionsToExport = 'Convert-PfaRdmToVvol','Remove-PfaRdm','Set-PfaRdmCapacity','Copy-PfaSnapshotToRdm','Get-PfaRdmSnapshot','New-PfaRdmSnapshot','Get-PfaConnectionFromRdm','Get-PfaRdmVol','New-PfaRdm'
8686

8787
# Cmdlets to export from this module
8888
CmdletsToExport = '*'

0 commit comments

Comments
 (0)