ResourceCapability.cs (1970B)
1 // ----------------------------------------------------------------------------- 2 // <copyright file="ResourceCapability.cs" company="Microsoft Corporation"> 3 // Copyright (c) Microsoft Corporation. Licensed under the MIT License. 4 // </copyright> 5 // ----------------------------------------------------------------------------- 6 7 namespace Microsoft.Management.Configuration.Processor.DSCv3.Schema_2024_04.Outputs 8 { 9 /// <summary> 10 /// https://learn.microsoft.com/en-us/powershell/dsc/reference/schemas/outputs/resource/list?view=dsc-3.0#capabilities 11 /// The capabilities that a resource can have. 12 /// </summary> 13 internal enum ResourceCapability 14 { 15 /// <summary> 16 /// Can call get on the resource. 17 /// Required. 18 /// </summary> 19 Get, 20 21 /// <summary> 22 /// Can call set on the resource. 23 /// </summary> 24 Set, 25 26 /// <summary> 27 /// The resource operates properly in the presence of the `_exist` property. 28 /// If not present, DSC will use `delete` when `_exist == false`. 29 /// </summary> 30 SetHandlesExist, 31 32 /// <summary> 33 /// The resource can handle a "what if" query directly. 34 /// Otherwise, DSC will handle it synthetically. 35 /// </summary> 36 WhatIf, 37 38 /// <summary> 39 /// The resource can handle a "test" query directly. 40 /// Otherwise, DSC will handle it synthetically. 41 /// </summary> 42 Test, 43 44 /// <summary> 45 /// Can call delete on the resource. 46 /// </summary> 47 Delete, 48 49 /// <summary> 50 /// Can call export on the resource. 51 /// </summary> 52 Export, 53 54 /// <summary> 55 /// Can call resolve on the resource. 56 /// This can produce new resources, such as importing another configuration document. 57 /// </summary> 58 Resolve, 59 } 60 }