Skip to content

Commit da88e98

Browse files
committed
Refactor input and output parameter documentation across multiple SQL DSC scripts to enhance clarity and consistency. Updated parameter types to use backticks for better formatting. Improved descriptions for inputs and outputs, ensuring they accurately reflect the expected types and behaviors. This includes changes in scripts related to agent alerts, logins, databases, and configuration options, among others.
1 parent 9541519 commit da88e98

File tree

63 files changed

+189
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+189
-148
lines changed

source/Private/Get-CommandParameter.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Common parameters and optional common parameters are always excluded.
1616
1717
.INPUTS
18-
None
18+
None.
1919
2020
.OUTPUTS
2121
`System.String[]`

source/Public/Add-SqlDscFileGroup.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
Specifies that the FileGroup should be added without confirmation.
2222
2323
.INPUTS
24-
Microsoft.SqlServer.Management.Smo.FileGroup
24+
`Microsoft.SqlServer.Management.Smo.FileGroup`
2525
2626
FileGroup objects that will be added to the Database.
2727
2828
.OUTPUTS
2929
None.
3030
31-
This cmdlet does not generate output by default.
31+
This cmdlet does not generate output by default.
3232
3333
.OUTPUTS
34-
Microsoft.SqlServer.Management.Smo.FileGroup[]
34+
`Microsoft.SqlServer.Management.Smo.FileGroup[]`
3535
3636
When the PassThru parameter is specified, returns the FileGroup objects that were added.
3737

source/Public/ConvertTo-SqlDscDataFile.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
The DatabaseFileSpec object containing the data file configuration.
1515
1616
.INPUTS
17-
None
17+
None.
1818
1919
This command does not accept pipeline input.
2020
2121
.OUTPUTS
22-
Microsoft.SqlServer.Management.Smo.DataFile
22+
`Microsoft.SqlServer.Management.Smo.DataFile`
2323
2424
Returns a SMO DataFile object bound to the provided FileGroup.
2525

source/Public/ConvertTo-SqlDscFileGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
None.
1919
2020
.OUTPUTS
21-
Microsoft.SqlServer.Management.Smo.FileGroup
21+
`Microsoft.SqlServer.Management.Smo.FileGroup`
2222
2323
.EXAMPLE
2424
$fileSpec = New-SqlDscDataFile -Name 'TestDB_Data' -FileName 'C:\SQLData\TestDB.mdf' -AsSpec

source/Public/Disable-SqlDscAgentOperator.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@
5050
Refreshes the server operators collection before disabling **MyOperator**.
5151
5252
.INPUTS
53-
[Microsoft.SqlServer.Management.Smo.Server]
53+
`Microsoft.SqlServer.Management.Smo.Server`
5454
5555
Server object accepted from the pipeline (ServerObject parameter set).
5656
5757
.INPUTS
58-
[Microsoft.SqlServer.Management.Smo.Agent.Operator]
58+
`Microsoft.SqlServer.Management.Smo.Agent.Operator`
5959
6060
Operator object accepted from the pipeline (OperatorObject parameter set).
6161

source/Public/Disable-SqlDscDatabaseSnapshotIsolation.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
Disables snapshot isolation and returns the updated database object.
5656
5757
.INPUTS
58-
Microsoft.SqlServer.Management.Smo.Database
58+
`Microsoft.SqlServer.Management.Smo.Database`
5959
6060
The database object to modify (from Get-SqlDscDatabase).
6161
@@ -65,7 +65,7 @@
6565
By default, no output is returned.
6666
6767
.OUTPUTS
68-
Microsoft.SqlServer.Management.Smo.Database
68+
`Microsoft.SqlServer.Management.Smo.Database`
6969
7070
When PassThru is specified, the updated database object is returned.
7171
#>

source/Public/Disable-SqlDscLogin.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,12 @@
4949
5050
Refreshes the server logins collection before disabling **MyLogin**.
5151
.INPUTS
52-
[Microsoft.SqlServer.Management.Smo.Server]
52+
`Microsoft.SqlServer.Management.Smo.Server`
5353
5454
Server object accepted from the pipeline (ServerObject parameter set).
5555
56-
[Microsoft.SqlServer.Management.Smo.Login]
56+
.INPUTS
57+
`Microsoft.SqlServer.Management.Smo.Login`
5758
5859
Login object accepted from the pipeline (LoginObject parameter set).
5960

source/Public/Enable-SqlDscAgentOperator.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
Enables the operator named **MyOperator**.
3939
4040
.INPUTS
41-
Microsoft.SqlServer.Management.Smo.Server
41+
`Microsoft.SqlServer.Management.Smo.Server`
4242
4343
When using the ServerObject parameter set, a Server object can be piped in.
4444
4545
.INPUTS
46-
Microsoft.SqlServer.Management.Smo.Agent.Operator
46+
`Microsoft.SqlServer.Management.Smo.Agent.Operator`
4747
4848
When using the OperatorObject parameter set, an Operator object can be piped in.
4949

source/Public/Enable-SqlDscDatabaseSnapshotIsolation.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
Enables snapshot isolation and returns the updated database object.
5656
5757
.INPUTS
58-
Microsoft.SqlServer.Management.Smo.Database
58+
`Microsoft.SqlServer.Management.Smo.Database`
5959
6060
The database object to modify (from Get-SqlDscDatabase).
6161
@@ -65,7 +65,7 @@
6565
By default, no output is returned.
6666
6767
.OUTPUTS
68-
Microsoft.SqlServer.Management.Smo.Database
68+
`Microsoft.SqlServer.Management.Smo.Database`
6969
7070
When PassThru is specified, the updated database object is returned.
7171
#>

source/Public/Enable-SqlDscLogin.ps1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@
3838
Enables the login named **MyLogin**.
3939
4040
.INPUTS
41-
Microsoft.SqlServer.Management.Smo.Server
42-
When using the ServerObject parameter set, a Server object can be piped in.
41+
`Microsoft.SqlServer.Management.Smo.Server`
4342
44-
Microsoft.SqlServer.Management.Smo.Login
45-
When using the LoginObject parameter set, a Login object can be piped in.
43+
Server object accepted from the pipeline (ServerObject parameter set).
44+
45+
.INPUTS
46+
`Microsoft.SqlServer.Management.Smo.Login`
47+
48+
Login object accepted from the pipeline (LoginObject parameter set).
4649
4750
.OUTPUTS
4851
None.

0 commit comments

Comments
 (0)