Skip to content

Commit f319c30

Browse files
update resource names
1 parent 55ad3ae commit f319c30

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/dsc/psresourceget.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[CmdletBinding()]
55
param(
66
[Parameter(Mandatory = $true)]
7-
[ValidateSet('repository', 'psresource', 'repositories', 'psresources')]
7+
[ValidateSet('repository', 'psresource', 'repositorylist', 'psresourcelist')]
88
[string]$ResourceType,
99
[Parameter(Mandatory = $true)]
1010
[ValidateSet('get', 'set', 'test', 'export')]
@@ -56,9 +56,9 @@ function GetOperation {
5656
return $ret
5757
}
5858

59-
'repositories' { throw [System.NotImplementedException]::new("Get operation is not implemented for Repositories resource.") }
59+
'repositorylist' { throw [System.NotImplementedException]::new("Get operation is not implemented for RepositoryList resource.") }
6060
'psresource' { throw [System.NotImplementedException]::new("Get operation is not implemented for PSResource resource.") }
61-
'psresources' {
61+
'psresourcelist' {
6262
$allPSResources = if ($inputObj.scope) {
6363
Get-PSResource -Scope $inputObj.Scope
6464
}
@@ -114,9 +114,9 @@ function ExportOperation {
114114
}
115115
}
116116

117-
'repositories' { throw [System.NotImplementedException]::new("Get operation is not implemented for Repositories resource.") }
117+
'repositorylist' { throw [System.NotImplementedException]::new("Get operation is not implemented for RepositoryList resource.") }
118118
'psresource' { throw [System.NotImplementedException]::new("Get operation is not implemented for PSResource resource.") }
119-
'psresources' {
119+
'psresourcelist' {
120120
$allPSResources = Get-PSResource
121121
PopulatePSResourcesObject -allPSResources $allPSResources
122122
}
@@ -250,9 +250,9 @@ function SetOperation {
250250
return GetOperation -ResourceType $ResourceType
251251
}
252252

253-
'repositories' { throw [System.NotImplementedException]::new("Get operation is not implemented for Repositories resource.") }
253+
'repositorylist' { throw [System.NotImplementedException]::new("Get operation is not implemented for RepositoryList resource.") }
254254
'psresource' { throw [System.NotImplementedException]::new("Get operation is not implemented for PSResource resource.") }
255-
'psresources' { return SetPSResources -inputObj $inputObj }
255+
'psresourcelist' { return SetPSResources -inputObj $inputObj }
256256
default { throw "Unknown ResourceType: $ResourceType" }
257257
}
258258
}

0 commit comments

Comments
 (0)