Skip to content

Commit 3f6fd07

Browse files
authored
Merge pull request #22 from CiscoDevNet/refresh/1.0.9.4437
updated the code for openapi doc 1.0.9.4437
2 parents 52c0261 + 8f852f0 commit 3f6fd07

File tree

1,334 files changed

+318414
-315717
lines changed

Some content is hidden

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

1,334 files changed

+318414
-315717
lines changed

README.md

Lines changed: 1163 additions & 1161 deletions
Large diffs are not rendered by default.

build.ps1

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,50 @@
1-
1+
Param(
2+
[Parameter(Mandatory = $false)]
3+
[ValidateSet("Debug","Release")]
4+
[string]$BuildConfiguration = "Release"
5+
)
26
$moduleDir = Join-Path -path $PSScriptRoot -ChildPath "Intersight.PowerShell"
37
$solutionPath = Join-Path -Path $PSScriptRoot -ChildPath "src\Intersight.PowerShell.sln"
4-
dotnet build $solutionPath -o $moduleDir -c Release
5-
8+
Write-host "Build the Intersight.PowerShell module."
9+
try
10+
{
11+
dotnet build $solutionPath -o $moduleDir -c $BuildConfiguration
12+
}
13+
catch{
14+
throw $_.Exception
15+
Exit 1
16+
}
617
#Check for whether build success or failure
718

819
if ($LASTEXITCODE -ne 0){
920
Write-Host "Build failed, PLease fix the code and re-run."
1021
Exit $LASTEXITCODE
1122
}
1223

13-
#Generate the Moudle manifest file
24+
25+
# Import the dll and get the list of cmdlet available in the module
26+
Import-Module -Name $moduleDir\Intersight.PowerShell.dll
27+
$commandList = Get-Command -Module Intersight.PowerShell
28+
Remove-module -Name Intersight.PowerShell
29+
30+
Write-Host "Generate the Moudle manifest file."
1431

1532
$manifestParam = @{
1633
Path = Join-Path -Path $moduleDir -ChildPath "Intersight.PowerShell.psd1"
1734
RootModule = "Intersight.PowerShell.dll"
1835
Guid = "41ce1a70-9c4b-489f-a153-12fe49b7fe62"
1936
Author = "Cisco Systems"
2037
CompanyName = "Cisco Systems"
21-
ModuleVersion = "1.0.9.4430"
38+
ModuleVersion = "1.0.9.4437"
2239
Copyright = "(c) 2021 Cisco Systems, Inc. All rights reserved."
2340
LicenseUri = "https://www.apache.org/licenses/LICENSE-2.0.txt"
2441
ProjectUri = "https://github.com/CiscoDevNet/intersight-powershell"
2542
CompatiblePSEditions = "Core"
2643
Tag = @('PSEdition_Core','Windows','Linux','MacOSX','Intersight','IntersightCmdlets')
27-
RequireLicenseAcceptance = $true
2844
PowerShellVersion = "7.1"
45+
CmdletsToExport = $commandList
2946
Description = "Intersight Powershell module provides the cmdlets to manage, analyze, and automate the IT infrastructure in Intersight."
30-
ReleaseNotes = "Intersight.PowerShell - Version 1.0.9.4430
47+
ReleaseNotes = "Intersight.PowerShell - Version 1.0.9.4437
3148
3249
GettingStarted:-
3350
https://github.com/CiscoDevNet/intersight-powershell/blob/master/GettingStarted.md
@@ -42,18 +59,18 @@ https://www.intersight.com/help
4259
}
4360

4461
$manifestResult = New-ModuleManifest @manifestParam
62+
Write-Host "Module manifest created successfully." -ForegroundColor green
4563

46-
if($manifestResult){
47-
Write-Host "Module manifest created successfully." -ForegroundColor green
48-
}
49-
64+
Write-Host "Copy module help file to $moduleDir"
5065
if (Test-Path -Path $moduleDir -PathType Container){
5166
$externalHelpFilePath = Join-Path -Path $PSScriptRoot -ChildPath "externalHelp\Intersight.PowerShell.dll-help.xml"
5267
if (Test-Path -Path $externalHelpFilePath ){
5368
Copy-Item -Path $externalHelpFilePath -Destination $moduleDir
69+
Write-Host "Successfully copied the help file to $moduleDir."
5470
}
5571

5672
}
5773
else{
5874
Write-Host "Module directory $moduleDir does not exist, cannot copy external help file."
5975
}
76+
Write-Host "Intersight.PowerShell module build completed."

docs/Get-IntersightAccessPolicy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightAccessPolicy [-Count <Boolean>] [-InlineCount <String>] [-Select <
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &apos;AccessPolicy&apos; resource.,
28+
Read a &amp;apos;AccessPolicy&amp;apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
@@ -284,9 +284,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
284284
285285
## RELATED LINKS
286286
287+
[New-IntersightAccessPolicy](./New-IntersightAccessPolicy.md)
288+
287289
[Set-IntersightAccessPolicy](./Set-IntersightAccessPolicy.md)
288290
289291
[Remove-IntersightAccessPolicy](./Remove-IntersightAccessPolicy.md)
290292
291-
[New-IntersightAccessPolicy](./New-IntersightAccessPolicy.md)
292-

docs/Get-IntersightAdapterConfigPolicy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
284284
285285
## RELATED LINKS
286286
287-
[New-IntersightAdapterConfigPolicy](./New-IntersightAdapterConfigPolicy.md)
287+
[Set-IntersightAdapterConfigPolicy](./Set-IntersightAdapterConfigPolicy.md)
288288
289289
[Remove-IntersightAdapterConfigPolicy](./Remove-IntersightAdapterConfigPolicy.md)
290290
291-
[Set-IntersightAdapterConfigPolicy](./Set-IntersightAdapterConfigPolicy.md)
291+
[New-IntersightAdapterConfigPolicy](./New-IntersightAdapterConfigPolicy.md)
292292

docs/Get-IntersightAdapterHostIscsiInterface.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightAdapterHostIscsiInterface [-Count <Boolean>] [-InlineCount <String
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &apos;AdapterHostIscsiInterface&apos; resource.,
28+
Read a &amp;apos;AdapterHostIscsiInterface&amp;apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.

docs/Get-IntersightAdapterUnitExpander.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightAdapterUnitExpander [-Count <Boolean>] [-InlineCount <String>] [-S
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &amp;apos;AdapterUnitExpander&amp;apos; resource.,
28+
Read a &apos;AdapterUnitExpander&apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.

docs/Get-IntersightApplianceAppStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightApplianceAppStatus [-Count <Boolean>] [-InlineCount <String>] [-Se
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &amp;apos;ApplianceAppStatus&amp;apos; resource.,
28+
Read a &apos;ApplianceAppStatus&apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.

docs/Get-IntersightApplianceBackup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightApplianceBackup [-Count <Boolean>] [-InlineCount <String>] [-Selec
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &apos;ApplianceBackup&apos; resource.,
28+
Read a &amp;apos;ApplianceBackup&amp;apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.

docs/Get-IntersightApplianceCertificateSetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightApplianceCertificateSetting [-Count <Boolean>] [-InlineCount <Stri
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &amp;apos;ApplianceCertificateSetting&amp;apos; resource.,
28+
Read a &apos;ApplianceCertificateSetting&apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.

docs/Get-IntersightApplianceDeviceClaim.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get-IntersightApplianceDeviceClaim [-Count <Boolean>] [-InlineCount <String>] [-
2525
[-Tag <String>] [<CommonParameters>]
2626
```
2727
## DESCRIPTION
28-
Read a &apos;ApplianceDeviceClaim&apos; resource.,
28+
Read a &amp;apos;ApplianceDeviceClaim&amp;apos; resource.,
2929

3030
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
3131
Note :- The output returns by the ParameterSet "QueryParam" cannot be piped to the New or Set cmdlet.
@@ -284,7 +284,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
284284
285285
## RELATED LINKS
286286
287-
[New-IntersightApplianceDeviceClaim](./New-IntersightApplianceDeviceClaim.md)
288-
289287
[Set-IntersightApplianceDeviceClaim](./Set-IntersightApplianceDeviceClaim.md)
290288
289+
[New-IntersightApplianceDeviceClaim](./New-IntersightApplianceDeviceClaim.md)
290+

0 commit comments

Comments
 (0)