Skip to content

Commit

Permalink
Update scripts create objects (#51)
Browse files Browse the repository at this point in the history
* update HLKx.ps1 create product object

* update Attestation.ps1 create product object

* update ShippingLabel.ps1 create shipping label json

* update readme
  • Loading branch information
Ben-Carpenter authored Mar 20, 2023
1 parent 17e62b4 commit 3753f3d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
26 changes: 19 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ Surface Dev Center Manager (SDCM) is a tool that utilizes the REST APIs made ava
"createProduct": {
"productName": "ProductName_HLK",
"testHarness": "HLK",
"selectedProductTypes": { "windows_v100_RS4": "Unclassified" },
"requestedSignatures": [ "WINDOWS_v100_X64_RS4_FULL" ],
"announcementDate": "2023-01-01T00:00:00",
"deviceType": "external",
"deviceMetaDataIds": null,
"deviceMetadataIds": null,
"firmwareVersion": "0",
"deviceType": "external",
"isTestSign": false,
"markettingNames": null,
"isFlightSign": false,
"marketingNames": null,
"selectedProductTypes": {
"windows_v100_RS4": "Unclassified"
},
"requestedSignatures": [
"WINDOWS_v100_X64_RS4_FULL"
],
"additionalAttributes": null
}
}
Expand Down Expand Up @@ -69,6 +74,7 @@ Surface Dev Center Manager (SDCM) is a tool that utilizes the REST APIs made ava
"visibleToAccounts": [],
"isAutoInstallDuringOSUpgrade": true,
"isAutoInstallOnApplicableSystems": true,
"manualAcquisition": false,
"isDisclosureRestricted": true,
"publishToWindows10s": false,
"additionalInfoForMsApproval": {
Expand All @@ -95,9 +101,15 @@ Surface Dev Center Manager (SDCM) is a tool that utilizes the REST APIs made ava
],
"chids": [
{
"chid": "guid"
"chid": "guid",
"distributionState": "pendingAdd"
}
]
],
"restrictedToAudiences": [],
"inServicePublishInfo": {
"flooring": "",
"ceiling": ""
}
},
"name": "ProductName_HLK_ShippingLabel",
"destination": "windowsUpdate"
Expand Down
6 changes: 3 additions & 3 deletions Scripts/Attestation.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ trap {
Write-Output "----- TRAP ----"
Write-Output "Unhandled Exception: $($_.Exception.GetType().Name)"
Write-Output $_.Exception
$_ | Format-List -Force
$_ | Format-List -Force
}

###################################################################################################
Expand Down Expand Up @@ -69,12 +69,12 @@ $CreateProductForAttestationJson = @"
"productName": "$ProductName`_Attestation",
"testHarness": "Attestation",
"announcementDate": "2018-04-01T00:00:00",
"deviceMetaDataIds": null,
"deviceMetadataIds": null,
"firmwareVersion": "0",
"deviceType": "external",
"isTestSign": false,
"isFlightSign": false,
"markettingNames": null,
"marketingNames": null,
"selectedProductTypes": { "windows_v100_RS4": "Unclassified" },
"requestedSignatures": [ "WINDOWS_v100_X64_RS4_FULL" ],
"additionalAttributes": null
Expand Down
6 changes: 3 additions & 3 deletions Scripts/HLKx.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ trap {
Write-Output "----- TRAP ----"
Write-Output "Unhandled Exception: $($_.Exception.GetType().Name)"
Write-Output $_.Exception
$_ | Format-List -Force
$_ | Format-List -Force
}

###################################################################################################
Expand Down Expand Up @@ -69,12 +69,12 @@ $CreateProductForHLKxJson = @"
"productName": "$ProductName`_HLK",
"testHarness": "HLK",
"announcementDate": "2018-04-01T00:00:00",
"deviceMetaDataIds": null,
"deviceMetadataIds": null,
"firmwareVersion": "0",
"deviceType": "external",
"isTestSign": false,
"isFlightSign": false,
"markettingNames": null,
"marketingNames": null,
"selectedProductTypes": { "windows_v100_RS4": "Unclassified" },
"requestedSignatures": [ "WINDOWS_v100_X64_RS4_FULL" ],
"additionalAttributes": null
Expand Down
6 changes: 3 additions & 3 deletions Scripts/ShippingLabel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ trap {
Write-Output "----- TRAP ----"
Write-Output "Unhandled Exception: $($_.Exception.GetType().Name)"
Write-Output $_.Exception
$_ | Format-List -Force
$_ | Format-List -Force
}

###################################################################################################
Expand Down Expand Up @@ -131,8 +131,8 @@ $CreateShippingLabelJson = @"
"ceiling": $Ceiling
}
},
"name": "$ProductName`_ShippingLabel",
"destination": "windowsUpdate"
"name": "$ProductName`_ShippingLabel",
"destination": "windowsUpdate"
}
}
"@
Expand Down

0 comments on commit 3753f3d

Please sign in to comment.