| 1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. |
| 2 | |
| 3 | namespace WixToolset.Iis |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | using WixToolset.Iis.Symbols; |
| 7 | |
| 8 | public static partial class IisSymbolDefinitions |
| 9 | { |
| 10 | public static readonly IntermediateSymbolDefinition IIsWebDirProperties = new IntermediateSymbolDefinition( |
| 11 | IisSymbolDefinitionType.IIsWebDirProperties.ToString(), |
| 12 | new[] |
| 13 | { |
| 14 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Access), IntermediateFieldType.Number), |
| 15 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Authorization), IntermediateFieldType.Number), |
| 16 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AnonymousUserRef), IntermediateFieldType.String), |
| 17 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.IIsControlledPassword), IntermediateFieldType.Number), |
| 18 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.LogVisits), IntermediateFieldType.Number), |
| 19 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.Index), IntermediateFieldType.Number), |
| 20 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.DefaultDoc), IntermediateFieldType.String), |
| 21 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AspDetailedError), IntermediateFieldType.Number), |
| 22 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.HttpExpires), IntermediateFieldType.String), |
| 23 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlMaxAge), IntermediateFieldType.Number), |
| 24 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.CacheControlCustom), IntermediateFieldType.String), |
| 25 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.NoCustomError), IntermediateFieldType.Number), |
| 26 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AccessSSLFlags), IntermediateFieldType.Number), |
| 27 | new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesSymbolFields.AuthenticationProviders), IntermediateFieldType.String), |
| 28 | }, |
| 29 | typeof(IIsWebDirPropertiesSymbol)); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | namespace WixToolset.Iis.Symbols |
| 34 | { |
| 35 | using WixToolset.Data; |
| 36 | |
| 37 | public enum IIsWebDirPropertiesSymbolFields |
| 38 | { |
| 39 | Access, |
| 40 | Authorization, |
| 41 | AnonymousUserRef, |
| 42 | IIsControlledPassword, |
| 43 | LogVisits, |
| 44 | Index, |
| 45 | DefaultDoc, |
| 46 | AspDetailedError, |
| 47 | HttpExpires, |
| 48 | CacheControlMaxAge, |
| 49 | CacheControlCustom, |
| 50 | NoCustomError, |
| 51 | AccessSSLFlags, |
| 52 | AuthenticationProviders, |
| 53 | } |
| 54 | |
| 55 | public class IIsWebDirPropertiesSymbol : IntermediateSymbol |
| 56 | { |
| 57 | public IIsWebDirPropertiesSymbol() : base(IisSymbolDefinitions.IIsWebDirProperties, null, null) |
| 58 | { |
| 59 | } |
| 60 | |
| 61 | public IIsWebDirPropertiesSymbol(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisSymbolDefinitions.IIsWebDirProperties, sourceLineNumber, id) |
| 62 | { |
| 63 | } |
| 64 | |
| 65 | public IntermediateField this[IIsWebDirPropertiesSymbolFields index] => this.Fields[(int)index]; |
| 66 | |
| 67 | public int? Access |
| 68 | { |
| 69 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Access].AsNullableNumber(); |
| 70 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.Access, value); |
| 71 | } |
| 72 | |
| 73 | public int? Authorization |
| 74 | { |
| 75 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Authorization].AsNullableNumber(); |
| 76 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.Authorization, value); |
| 77 | } |
| 78 | |
| 79 | public string AnonymousUserRef |
| 80 | { |
| 81 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef].AsString(); |
| 82 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.AnonymousUserRef, value); |
| 83 | } |
| 84 | |
| 85 | public int? IIsControlledPassword |
| 86 | { |
| 87 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword].AsNullableNumber(); |
| 88 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.IIsControlledPassword, value); |
| 89 | } |
| 90 | |
| 91 | public int? LogVisits |
| 92 | { |
| 93 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.LogVisits].AsNullableNumber(); |
| 94 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.LogVisits, value); |
| 95 | } |
| 96 | |
| 97 | public int? Index |
| 98 | { |
| 99 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.Index].AsNullableNumber(); |
| 100 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.Index, value); |
| 101 | } |
| 102 | |
| 103 | public string DefaultDoc |
| 104 | { |
| 105 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.DefaultDoc].AsString(); |
| 106 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.DefaultDoc, value); |
| 107 | } |
| 108 | |
| 109 | public int? AspDetailedError |
| 110 | { |
| 111 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AspDetailedError].AsNullableNumber(); |
| 112 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.AspDetailedError, value); |
| 113 | } |
| 114 | |
| 115 | public string HttpExpires |
| 116 | { |
| 117 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.HttpExpires].AsString(); |
| 118 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.HttpExpires, value); |
| 119 | } |
| 120 | |
| 121 | public int? CacheControlMaxAge |
| 122 | { |
| 123 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge].AsNullableNumber(); |
| 124 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlMaxAge, value); |
| 125 | } |
| 126 | |
| 127 | public string CacheControlCustom |
| 128 | { |
| 129 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.CacheControlCustom].AsString(); |
| 130 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.CacheControlCustom, value); |
| 131 | } |
| 132 | |
| 133 | public int? NoCustomError |
| 134 | { |
| 135 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.NoCustomError].AsNullableNumber(); |
| 136 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.NoCustomError, value); |
| 137 | } |
| 138 | |
| 139 | public int? AccessSSLFlags |
| 140 | { |
| 141 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags].AsNullableNumber(); |
| 142 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.AccessSSLFlags, value); |
| 143 | } |
| 144 | |
| 145 | public string AuthenticationProviders |
| 146 | { |
| 147 | get => this.Fields[(int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders].AsString(); |
| 148 | set => this.Set((int)IIsWebDirPropertiesSymbolFields.AuthenticationProviders, value); |
| 149 | } |
| 150 | } |
| 151 | } |