winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Enums.cs (3019B)


      1 // -----------------------------------------------------------------------------
      2 // <copyright file="Enums.cs" company="Microsoft Corporation">
      3 //     Copyright (c) Microsoft Corporation. Licensed under the MIT License.
      4 // </copyright>
      5 // -----------------------------------------------------------------------------
      6 
      7 namespace Microsoft.WinGet.SharedLib.PolicySettings
      8 {
      9     /// <summary>
     10     /// Group policy state.
     11     /// </summary>
     12     public enum PolicyState
     13     {
     14         /// <summary>
     15         /// Not-Configured
     16         /// </summary>
     17         NotConfigured,
     18 
     19         /// <summary>
     20         /// Disabled.
     21         /// </summary>
     22         Disabled,
     23 
     24         /// <summary>
     25         /// Enabled.
     26         /// </summary>
     27         Enabled,
     28     }
     29 
     30     /// <summary>
     31     /// Supported Toggle policy types.
     32     /// </summary>
     33     public enum Policy
     34     {
     35         /// <summary>
     36         /// EnableAppInstaller.
     37         /// </summary>
     38         WinGet,
     39 
     40         /// <summary>
     41         /// Enable WinGet Settings.
     42         /// </summary>
     43         Settings,
     44 
     45         /// <summary>
     46         /// Enable Experimental Features.
     47         /// </summary>
     48         ExperimentalFeatures,
     49 
     50         /// <summary>
     51         /// Enable Local Manifest Files.
     52         /// </summary>
     53         LocalManifestFiles,
     54 
     55         /// <summary>
     56         /// Enable Hash Override.
     57         /// </summary>
     58         HashOverride,
     59 
     60         /// <summary>
     61         /// Enable Local Archive Malware scan override.
     62         /// </summary>
     63         LocalArchiveMalwareScanOverride,
     64 
     65         /// <summary>
     66         /// Enable DefaultSource.
     67         /// </summary>
     68         DefaultSource,
     69 
     70         /// <summary>
     71         /// Enable Microsoft Store Source.
     72         /// </summary>
     73         MSStoreSource,
     74 
     75         /// <summary>
     76         /// Enable Additional Source.
     77         /// </summary>
     78         AdditionalSources,
     79 
     80         /// <summary>
     81         /// Enabled Allowed Sources.
     82         /// </summary>
     83         AllowedSources,
     84 
     85         /// <summary>
     86         /// Enable Bypass Certificate Pinning for Microsoft Store.
     87         /// </summary>
     88         BypassCertificatePinningForMicrosoftStore,
     89 
     90         /// <summary>
     91         /// Enabled Command line Interfaces.
     92         /// </summary>
     93         WinGetCommandLineInterfaces,
     94 
     95         /// <summary>
     96         /// Enabled configuration.
     97         /// </summary>
     98         Configuration,
     99 
    100         /// <summary>
    101         /// Enabled MCP server.
    102         /// </summary>
    103         McpServer,
    104     }
    105 
    106     /// <summary>
    107     /// Group policy failures kind.
    108     /// </summary>
    109     public enum GroupPolicyFailureType
    110     {
    111         /// <summary>
    112         /// Blocked by Policy.
    113         /// </summary>
    114         BlockedByPolicy,
    115 
    116         /// <summary>
    117         /// Policy not found or failed to read.
    118         /// </summary>
    119         NotFound,
    120 
    121         /// <summary>
    122         /// Group policy load error.
    123         /// </summary>
    124         LoadError,
    125     }
    126 }