Skip to content

Commit 632ed10

Browse files
committed
Added Google Voice SKUs to 'Get-LicenseSkus'
1 parent 43f90e9 commit 632ed10

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

PSGSuite/Private/LicenseHelpers.ps1

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ function Get-LicenseSkus {
2121
"1010310008": {"aliases": ["gwep", "educationplus"], "displayName": "Google Workspace for Education Plus", "product": "101031"},
2222
"1010310009": {"aliases": ["gwepstaff", "educationplusstaff"], "displayName": "Google Workspace for Education Plus (Staff)", "product": "101031"},
2323
"1010310010": {"aliases": ["gwepstudent", "educationplusstudent"], "displayName": "Google Workspace for Education Plus (Extra Student)", "product": "101031"},
24+
"1010330003": {"aliases": ["gvstarter", "voicestarter"], "displayName": "Google Voice Starter", "product": "101033"},
25+
"1010330004": {"aliases": ["gvstandard", "voicestandard"], "displayName": "Google Voice Standard", "product": "101033"},
26+
"1010330002": {"aliases": ["gvp","gvpremier", "voicepremier"], "displayName": "Google Voice Premier", "product": "101033"},
2427
"1010370001": {"aliases": ["gwetlu", "educationteachlearnupgrade"], "displayName": "Google Workspace for Education: Teaching and Learning Upgrade", "product": "101037"},
2528
"1010380001": {"aliases": ["asc", "appsheetcore"], "displayName": "AppSheet Core", "product": "101038"},
2629
"1010380002": {"aliases": ["ases", "appsheetenterprisestandard"], "displayName": "AppSheet Enterprise Standard", "product": "101038"},
@@ -64,11 +67,11 @@ function Get-LicenseProductHash {
6467
[String]
6568
$Key
6669
)
67-
$_result = @{'Cloud-Identity' = '101001'}
70+
$_result = @{'Cloud-Identity' = '101001' }
6871
$_full = Get-LicenseProducts
6972
$_products = $_full.PSObject.Properties.Name | Sort-Object -Unique
7073
foreach ($_id in $_products) {
71-
$_friendlyname = $_full.$_id -replace '\W+','-'
74+
$_friendlyname = $_full.$_id -replace '\W+', '-'
7275
$_result[$_id] = $_id
7376
$_result[$_friendlyname] = $_id
7477
}
@@ -90,7 +93,7 @@ function Get-LicenseSkuHash {
9093
$_full = Get-LicenseSkus
9194
$_licenses = $_full.PSObject.Properties.Name | Sort-Object -Unique
9295
foreach ($_sku in $_licenses) {
93-
$_displayName = $_full.$_sku.displayName -replace '\W+','-'
96+
$_displayName = $_full.$_sku.displayName -replace '\W+', '-'
9497
$_result[$_displayName] = $_sku
9598
foreach ($_alias in $_full.$_sku.aliases) {
9699
$_result[$_alias] = $_sku
@@ -114,7 +117,7 @@ function Get-LicenseSkuToProductHash {
114117
$_full = Get-LicenseSkus
115118
$_licenses = $_full.PSObject.Properties.Name | Sort-Object -Unique
116119
foreach ($_sku in $_licenses) {
117-
$_displayName = $_full.$_sku.displayName -replace '\W+','-'
120+
$_displayName = $_full.$_sku.displayName -replace '\W+', '-'
118121
$_result[$_sku] = $_full.$_sku.product
119122
$_result[$_displayName] = $_full.$_sku.product
120123
foreach ($_alias in $_full.$_sku.aliases) {
@@ -129,7 +132,7 @@ function Get-LicenseSkuToProductHash {
129132
}
130133
}
131134

132-
function Get-LicenseSkuFromDisplayName {
135+
function Get-LicenseSkuFromDisplayName {
133136
Param (
134137
[Parameter(Position = 0)]
135138
[String]
@@ -139,7 +142,7 @@ function Get-LicenseSkuFromDisplayName {
139142
$_full = Get-LicenseSkus
140143
$_licenses = $_full.PSObject.Properties.Name | Sort-Object -Unique
141144
foreach ($_sku in $_licenses) {
142-
$_displayName = $_full.$_sku.displayName -replace '\W+','-'
145+
$_displayName = $_full.$_sku.displayName -replace '\W+', '-'
143146
$_result[$_displayName] = $_sku
144147
}
145148
if ($Key) {
@@ -156,11 +159,11 @@ function Get-LicenseProductFromDisplayName {
156159
[String]
157160
$Key
158161
)
159-
$_result = @{'Cloud-Identity' = '101001'}
162+
$_result = @{'Cloud-Identity' = '101001' }
160163
$_full = Get-LicenseProducts
161164
$_products = $_full.PSObject.Properties.Name | Sort-Object -Unique
162165
foreach ($_id in $_products) {
163-
$_friendlyname = $_full.$_id -replace '\W+','-'
166+
$_friendlyname = $_full.$_id -replace '\W+', '-'
164167
$_result[$_friendlyname] = $_id
165168
}
166169
if ($Key) {

0 commit comments

Comments
 (0)