File tree Expand file tree Collapse file tree 8 files changed +55
-31
lines changed Expand file tree Collapse file tree 8 files changed +55
-31
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,6 @@ properties:
33
33
Indicates the severity of the message.
34
34
type : string
35
35
enum :
36
- - Error
37
- - Warning
38
- - Information
36
+ - error
37
+ - warning
38
+ - information
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json-schema.org/draft/2020-12/schema
2
+ $schema : https://json-schema.org/draft/2020-12/schema
3
+ $id : <HOST>/<PREFIX>/<VERSION>/metadata/Microsoft.DSC/context.yaml
4
+ # Documentation
5
+ title : Operation context
6
+ description : >-
7
+ Defines whether the operation was for a configuration or a resource. If the value for this
8
+ metadata property is `configuration`, DSC was run through the `dsc config` command. If the value
9
+ is `resource`, DSC was run with the `dsc resource` command.
10
+
11
+ markdownDescription : |-
12
+ Defines whether the operation was for a configuration or a resource. If the value for this
13
+ metadata property is `configuration`, DSC was run through the `dsc config` command. If the value
14
+ is `resource`, DSC was run with the `dsc resource` command.
15
+ # Definition
16
+ type : string
17
+ enum :
18
+ - resource
19
+ - configuration
Original file line number Diff line number Diff line change @@ -14,5 +14,5 @@ markdownDescription: |-
14
14
# Definition
15
15
type : string
16
16
enum :
17
- - Actual
18
- - WhatIf
17
+ - actual
18
+ - whatIf
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ markdownDescription: |-
12
12
# Definition
13
13
type : string
14
14
enum :
15
- - Get
16
- - Set
17
- - Test
18
- - Export
15
+ - get
16
+ - set
17
+ - test
18
+ - export
Original file line number Diff line number Diff line change @@ -5,17 +5,17 @@ $id: <HOST>/<PREFIX>/<VERSION>/metadata/Microsoft.DSC/securityContext.yaml
5
5
title : Security context
6
6
description : >-
7
7
Defines the security context that DSC was run under. If the value for this metadata property is
8
- `Elevated `, DSC was run as root (non-Windows) or an elevated session with Administrator
9
- privileges (on Windows). If the value is `Restricted `, DSC was run as a normal user or account in
8
+ `elevated `, DSC was run as root (non-Windows) or an elevated session with Administrator
9
+ privileges (on Windows). If the value is `restricted `, DSC was run as a normal user or account in
10
10
a non-elevated session.
11
11
markdownDescription : |-
12
12
Defines the security context that DSC was run under. If the value for this metadata property is
13
- `Elevated `, DSC was run as `root` (non-Windows) or an elevated session with Administrator
14
- privileges (on Windows). If the value is `Restricted `, DSC was run as a normal user or account in
13
+ `elevated `, DSC was run as `root` (non-Windows) or an elevated session with Administrator
14
+ privileges (on Windows). If the value is `restricted `, DSC was run as a normal user or account in
15
15
a non-elevated session.
16
16
# Definition
17
17
type : string
18
18
enum :
19
- - Current
20
- - Elevated
21
- - Restricted
19
+ - current
20
+ - elevated
21
+ - restricted
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ properties:
30
30
- endDatetime
31
31
- duration
32
32
- securityContext
33
+ - context
33
34
properties :
34
35
version :
35
36
$ref : /<PREFIX>/<VERSION>/metadata/Microsoft.DSC/version.yaml
@@ -45,3 +46,5 @@ properties:
45
46
$ref : /<PREFIX>/<VERSION>/metadata/Microsoft.DSC/duration.yaml
46
47
securityContext :
47
48
$ref : /<PREFIX>/<VERSION>/metadata/Microsoft.DSC/securityContext.yaml
49
+ context :
50
+ $ref : /<PREFIX>/<VERSION>/metadata/Microsoft.DSC/context.yaml
Original file line number Diff line number Diff line change @@ -24,21 +24,21 @@ properties:
24
24
title : Resource capabilities
25
25
description : >-
26
26
Defines the list of DSC operations the resource is compatible with. If the resource doesn't
27
- list a given operation, like `Set ` or `Export `, the resource can't be used for those
28
- operations. The exception to this is `Test ` - DSC uses synthetic testing for resources that
29
- don't have the `Test ` capability.
27
+ list a given operation, like `set ` or `export `, the resource can't be used for those
28
+ operations. The exception to this is `test ` - DSC uses synthetic testing for resources that
29
+ don't have the `test ` capability.
30
30
type : array
31
31
items :
32
32
type : string
33
33
enum :
34
- - Get
35
- - Set
36
- - SetHandlesExist
37
- - WhatIf
38
- - Test
39
- - Delete
40
- - Export
41
- - Resolve
34
+ - get
35
+ - set
36
+ - setHandlesExist
37
+ - whatIf
38
+ - test
39
+ - delete
40
+ - export
41
+ - resolve
42
42
description :
43
43
title : Resource Description
44
44
description : >-
@@ -69,7 +69,7 @@ properties:
69
69
implementations built into DSC.
70
70
type : string
71
71
enum :
72
- - Command
72
+ - command
73
73
74
74
# Need to understand how this works to document it more usefully
75
75
- title : Custom implementation
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ defaultSnippets:
60
60
body :
61
61
${escape_dollar:$}schema : <HOST>/<PREFIX>/<VERSION>/bundled/resource/manifest.yaml
62
62
type : ' ${1:owner.area.group}/${2:${TM_FILENAME_BASE/^(.*?)[\.]dsc[\.]resource/$1/}}'
63
+ kind : group
63
64
version : ' ${3:0.1.0}'
64
65
description : ${4:Synopsis for the resource's purpose}
65
66
get :
@@ -100,6 +101,7 @@ defaultSnippets:
100
101
body :
101
102
${escape_dollar:$}schema : <HOST>/<PREFIX>/<VERSION>/bundled/resource/manifest.yaml
102
103
type : ' ${1:owner.area.group}/${2:${TM_FILENAME_BASE/^(.*?)[\.]dsc[\.]resource/$1/}}'
104
+ kind : adapter
103
105
version : ' ${3:0.1.0}'
104
106
description : ${4:Synopsis for the resource's purpose}
105
107
get :
@@ -145,7 +147,7 @@ defaultSnippets:
145
147
body :
146
148
${escape_dollar:$}schema : <HOST>/<PREFIX>/<VERSION>/bundled/resource/manifest.yaml
147
149
type : ' ${1:owner.area.group}/${2:${TM_FILENAME_BASE/^(.*?)[\.]dsc[\.]resource/$1/}}'
148
- kind : Import
150
+ kind : importer
149
151
version : ' ${3:0.1.0}'
150
152
description : ${4:Synopsis for the resource's purpose}
151
153
resolve :
@@ -519,13 +521,13 @@ properties:
519
521
allOf :
520
522
# Adapter resources must define the adapter command
521
523
- if :
522
- properties : { kind: { const: Adapter } }
524
+ properties : { kind: { const: adapter } }
523
525
required : [kind]
524
526
then :
525
527
required : [adapter]
526
528
# Importer resources must define resolve, all others must define get
527
529
- if :
528
- properties : { kind: { const: Import } }
530
+ properties : { kind: { const: importer } }
529
531
required : [kind]
530
532
then :
531
533
required : [resolve]
You can’t perform that action at this time.
0 commit comments