-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from michaeltlombardi/maint/main/update-osinf…
…o-docs (MAINT) Update OSInfo schema and docs
- Loading branch information
Showing
5 changed files
with
243 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/resources/Microsoft/OSInfo/v0.1.0/schema.json", | ||
"title": "OsInfo", | ||
"description": "Returns information about the operating system.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource\n", | ||
"markdownDescription": "The `Microsoft/OSInfo` resource enables you to assert whether a machine meets criteria related to\nthe operating system. The resource is only capable of assertions. It doesn't implement the set\noperation and can't configure the operating system.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource\n", | ||
"type": "object", | ||
"required": [], | ||
"additionalProperties": false, | ||
"properties": { | ||
"$id": { | ||
"type": "string", | ||
"readOnly": true, | ||
"title": "Data Type ID", | ||
"description": "Returns the unique ID for the OSInfo instance data type.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#id\n", | ||
"markdownDescription": "Returns the unique ID for the OSInfo instance data type.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#id\n" | ||
}, | ||
"architecture": { | ||
"type": "string", | ||
"title": "Processor architecture", | ||
"description": "Defines the processor architecture as reported by 'uname -m' on the operating system.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#architecture\n", | ||
"markdownDescription": "Defines the processor architecture as reported by `uname -m` on the operating system.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#architecture\n" | ||
}, | ||
"bitness": { | ||
"type": "string", | ||
"enum": [ | ||
"32", | ||
"64", | ||
"unknown" | ||
], | ||
"title": "Operating system bitness", | ||
"description": "Defines whether the operating system is a 32-bit or 64-bit operating system.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#bitness\n", | ||
"markdownDescription": "Defines whether the operating system is a 32-bit or 64-bit operating system.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#bitness\n" | ||
}, | ||
"codename": { | ||
"type": "string", | ||
"title": "Linux codename", | ||
"description": "Defines the codename for the operating system as returned from 'lsb_release --codename'.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#codename\n", | ||
"markdownDescription": "Defines the codename for the operating system as returned from `lsb_release --codename`.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#codename\n" | ||
}, | ||
"edition": { | ||
"type": "string", | ||
"title": "Windows edition", | ||
"description": "Defines the operating system edition, like 'Windows 11' or 'Windows Server 2016'.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#edition\n", | ||
"markdownDescription": "Defines the operating system edition, like `Windows 11` or `Windows Server 2016`.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#edition\n" | ||
}, | ||
"family": { | ||
"type": "string", | ||
"enum": [ | ||
"Linux", | ||
"MacOS", | ||
"Windows" | ||
], | ||
"title": "Operating system family", | ||
"description": "Defines whether the operating system is Linux, macOS, or Windows.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#family\n", | ||
"markdownDescription": "Defines whether the operating system is Linux, macOS, or Windows.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#family\n" | ||
}, | ||
"version": { | ||
"type": "string", | ||
"title": "Operating system version", | ||
"description": "Defines the version of the operating system as a string.\n\nhttps://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#version\n", | ||
"markdownDescription": "Defines the version of the operating system as a string.\n\n[Online documentation][01]\n\n[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#version\n" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# yaml-language-server: $schema=http://json-schema.org/draft-07/schema# | ||
$schema: http://json-schema.org/draft-07/schema# | ||
$id: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/resources/Microsoft/OSInfo/v0.1.0/schema.yaml | ||
title: OsInfo | ||
description: | | ||
Returns information about the operating system. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource | ||
markdownDescription: | | ||
The `Microsoft/OSInfo` resource enables you to assert whether a machine meets criteria related to | ||
the operating system. The resource is only capable of assertions. It doesn't implement the set | ||
operation and can't configure the operating system. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource | ||
type: object | ||
required: [] | ||
additionalProperties: false | ||
properties: | ||
$id: | ||
type: string | ||
readOnly: true | ||
title: Data Type ID | ||
description: | | ||
Returns the unique ID for the OSInfo instance data type. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#id | ||
markdownDescription: | | ||
Returns the unique ID for the OSInfo instance data type. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#id | ||
architecture: | ||
type: string | ||
title: Processor architecture | ||
description: | | ||
Defines the processor architecture as reported by 'uname -m' on the operating system. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#architecture | ||
markdownDescription: | | ||
Defines the processor architecture as reported by `uname -m` on the operating system. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#architecture | ||
bitness: | ||
type: string | ||
enum: ['32', '64', unknown] | ||
title: Operating system bitness | ||
description: | | ||
Defines whether the operating system is a 32-bit or 64-bit operating system. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#bitness | ||
markdownDescription: | | ||
Defines whether the operating system is a 32-bit or 64-bit operating system. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#bitness | ||
codename: | ||
type: string | ||
title: Linux codename | ||
description: | | ||
Defines the codename for the operating system as returned from 'lsb_release --codename'. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#codename | ||
markdownDescription: | | ||
Defines the codename for the operating system as returned from `lsb_release --codename`. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#codename | ||
edition: | ||
type: string | ||
title: Windows edition | ||
description: | | ||
Defines the operating system edition, like 'Windows 11' or 'Windows Server 2016'. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#edition | ||
markdownDescription: | | ||
Defines the operating system edition, like `Windows 11` or `Windows Server 2016`. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#edition | ||
family: | ||
type: string | ||
enum: [Linux, MacOS, Windows] | ||
title: Operating system family | ||
description: | | ||
Defines whether the operating system is Linux, macOS, or Windows. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#family | ||
markdownDescription: | | ||
Defines whether the operating system is Linux, macOS, or Windows. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#family | ||
version: | ||
type: string | ||
title: Operating system version | ||
description: | | ||
Defines the version of the operating system as a string. | ||
https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#version | ||
markdownDescription: | | ||
Defines the version of the operating system as a string. | ||
[Online documentation][01] | ||
[01]: https://learn.microsoft.com/powershell/dsc/reference/microsoft/osinfo/resource#version |