aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/wixext/Tuples/IIsWebDirPropertiesTuple.cs')
-rw-r--r--src/wixext/Tuples/IIsWebDirPropertiesTuple.cs159
1 files changed, 159 insertions, 0 deletions
diff --git a/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs b/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs
new file mode 100644
index 00000000..9e723775
--- /dev/null
+++ b/src/wixext/Tuples/IIsWebDirPropertiesTuple.cs
@@ -0,0 +1,159 @@
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
3namespace WixToolset.Iis
4{
5 using WixToolset.Data;
6 using WixToolset.Iis.Tuples;
7
8 public static partial class IisTupleDefinitions
9 {
10 public static readonly IntermediateTupleDefinition IIsWebDirProperties = new IntermediateTupleDefinition(
11 IisTupleDefinitionType.IIsWebDirProperties.ToString(),
12 new[]
13 {
14 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.DirProperties), IntermediateFieldType.String),
15 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.Access), IntermediateFieldType.Number),
16 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.Authorization), IntermediateFieldType.Number),
17 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.AnonymousUser_), IntermediateFieldType.String),
18 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.IIsControlledPassword), IntermediateFieldType.Number),
19 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.LogVisits), IntermediateFieldType.Number),
20 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.Index), IntermediateFieldType.Number),
21 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.DefaultDoc), IntermediateFieldType.String),
22 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.AspDetailedError), IntermediateFieldType.Number),
23 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.HttpExpires), IntermediateFieldType.String),
24 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.CacheControlMaxAge), IntermediateFieldType.Number),
25 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.CacheControlCustom), IntermediateFieldType.String),
26 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.NoCustomError), IntermediateFieldType.Number),
27 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.AccessSSLFlags), IntermediateFieldType.Number),
28 new IntermediateFieldDefinition(nameof(IIsWebDirPropertiesTupleFields.AuthenticationProviders), IntermediateFieldType.String),
29 },
30 typeof(IIsWebDirPropertiesTuple));
31 }
32}
33
34namespace WixToolset.Iis.Tuples
35{
36 using WixToolset.Data;
37
38 public enum IIsWebDirPropertiesTupleFields
39 {
40 DirProperties,
41 Access,
42 Authorization,
43 AnonymousUser_,
44 IIsControlledPassword,
45 LogVisits,
46 Index,
47 DefaultDoc,
48 AspDetailedError,
49 HttpExpires,
50 CacheControlMaxAge,
51 CacheControlCustom,
52 NoCustomError,
53 AccessSSLFlags,
54 AuthenticationProviders,
55 }
56
57 public class IIsWebDirPropertiesTuple : IntermediateTuple
58 {
59 public IIsWebDirPropertiesTuple() : base(IisTupleDefinitions.IIsWebDirProperties, null, null)
60 {
61 }
62
63 public IIsWebDirPropertiesTuple(SourceLineNumber sourceLineNumber, Identifier id = null) : base(IisTupleDefinitions.IIsWebDirProperties, sourceLineNumber, id)
64 {
65 }
66
67 public IntermediateField this[IIsWebDirPropertiesTupleFields index] => this.Fields[(int)index];
68
69 public string DirProperties
70 {
71 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.DirProperties].AsString();
72 set => this.Set((int)IIsWebDirPropertiesTupleFields.DirProperties, value);
73 }
74
75 public int Access
76 {
77 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.Access].AsNumber();
78 set => this.Set((int)IIsWebDirPropertiesTupleFields.Access, value);
79 }
80
81 public int Authorization
82 {
83 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.Authorization].AsNumber();
84 set => this.Set((int)IIsWebDirPropertiesTupleFields.Authorization, value);
85 }
86
87 public string AnonymousUser_
88 {
89 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.AnonymousUser_].AsString();
90 set => this.Set((int)IIsWebDirPropertiesTupleFields.AnonymousUser_, value);
91 }
92
93 public int IIsControlledPassword
94 {
95 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.IIsControlledPassword].AsNumber();
96 set => this.Set((int)IIsWebDirPropertiesTupleFields.IIsControlledPassword, value);
97 }
98
99 public int LogVisits
100 {
101 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.LogVisits].AsNumber();
102 set => this.Set((int)IIsWebDirPropertiesTupleFields.LogVisits, value);
103 }
104
105 public int Index
106 {
107 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.Index].AsNumber();
108 set => this.Set((int)IIsWebDirPropertiesTupleFields.Index, value);
109 }
110
111 public string DefaultDoc
112 {
113 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.DefaultDoc].AsString();
114 set => this.Set((int)IIsWebDirPropertiesTupleFields.DefaultDoc, value);
115 }
116
117 public int AspDetailedError
118 {
119 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.AspDetailedError].AsNumber();
120 set => this.Set((int)IIsWebDirPropertiesTupleFields.AspDetailedError, value);
121 }
122
123 public string HttpExpires
124 {
125 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.HttpExpires].AsString();
126 set => this.Set((int)IIsWebDirPropertiesTupleFields.HttpExpires, value);
127 }
128
129 public int CacheControlMaxAge
130 {
131 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.CacheControlMaxAge].AsNumber();
132 set => this.Set((int)IIsWebDirPropertiesTupleFields.CacheControlMaxAge, value);
133 }
134
135 public string CacheControlCustom
136 {
137 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.CacheControlCustom].AsString();
138 set => this.Set((int)IIsWebDirPropertiesTupleFields.CacheControlCustom, value);
139 }
140
141 public int NoCustomError
142 {
143 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.NoCustomError].AsNumber();
144 set => this.Set((int)IIsWebDirPropertiesTupleFields.NoCustomError, value);
145 }
146
147 public int AccessSSLFlags
148 {
149 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.AccessSSLFlags].AsNumber();
150 set => this.Set((int)IIsWebDirPropertiesTupleFields.AccessSSLFlags, value);
151 }
152
153 public string AuthenticationProviders
154 {
155 get => this.Fields[(int)IIsWebDirPropertiesTupleFields.AuthenticationProviders].AsString();
156 set => this.Set((int)IIsWebDirPropertiesTupleFields.AuthenticationProviders, value);
157 }
158 }
159} \ No newline at end of file