Skip to content

Commit 5777b65

Browse files
committed
reflect metadata changes into C# test data
1 parent 2bfb67f commit 5777b65

35 files changed

+225
-131
lines changed

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Model/DerivedComplexTypeRequest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,11 @@ public DerivedComplexTypeRequestObject()
4141
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "property2", Required = Newtonsoft.Json.Required.Default)]
4242
public string Property2 { get; set; }
4343

44+
/// <summary>
45+
/// Gets or sets enumProperty.
46+
/// </summary>
47+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "enumProperty", Required = Newtonsoft.Json.Required.Default)]
48+
public Enum1? EnumProperty { get; set; }
49+
4450
}
4551
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
9+
10+
11+
namespace Microsoft.Graph
12+
{
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// The enum Enum1.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum Enum1
20+
{
21+
22+
/// <summary>
23+
/// Value0
24+
/// </summary>
25+
Value0 = 0,
26+
27+
/// <summary>
28+
/// Value1
29+
/// </summary>
30+
Value1 = 1,
31+
32+
}
33+
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/CallRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async System.Threading.Tasks.Task<Call> UpdateAsync(Call callToUpdate, Ca
161161
/// <returns>The request object to send.</returns>
162162
public ICallRequest Expand(string value)
163163
{
164-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
164+
this.QueryOptions.Add(new QueryOption("$expand", value));
165165
return this;
166166
}
167167

@@ -184,7 +184,7 @@ public ICallRequest Expand(Expression<Func<Call, object>> expandExpression)
184184
}
185185
else
186186
{
187-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
187+
this.QueryOptions.Add(new QueryOption("$expand", value));
188188
}
189189
return this;
190190
}
@@ -196,7 +196,7 @@ public ICallRequest Expand(Expression<Func<Call, object>> expandExpression)
196196
/// <returns>The request object to send.</returns>
197197
public ICallRequest Select(string value)
198198
{
199-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
199+
this.QueryOptions.Add(new QueryOption("$select", value));
200200
return this;
201201
}
202202

@@ -219,7 +219,7 @@ public ICallRequest Select(Expression<Func<Call, object>> selectExpression)
219219
}
220220
else
221221
{
222-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
222+
this.QueryOptions.Add(new QueryOption("$select", value));
223223
}
224224
return this;
225225
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/CallWithReferenceRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellat
158158
/// <returns>The request object to send.</returns>
159159
public ICallWithReferenceRequest Expand(string value)
160160
{
161-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
161+
this.QueryOptions.Add(new QueryOption("$expand", value));
162162
return this;
163163
}
164164

@@ -181,7 +181,7 @@ public ICallWithReferenceRequest Expand(Expression<Func<Call, object>> expandExp
181181
}
182182
else
183183
{
184-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
184+
this.QueryOptions.Add(new QueryOption("$expand", value));
185185
}
186186
return this;
187187
}
@@ -193,7 +193,7 @@ public ICallWithReferenceRequest Expand(Expression<Func<Call, object>> expandExp
193193
/// <returns>The request object to send.</returns>
194194
public ICallWithReferenceRequest Select(string value)
195195
{
196-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
196+
this.QueryOptions.Add(new QueryOption("$select", value));
197197
return this;
198198
}
199199

@@ -216,7 +216,7 @@ public ICallWithReferenceRequest Select(Expression<Func<Call, object>> selectExp
216216
}
217217
else
218218
{
219-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
219+
this.QueryOptions.Add(new QueryOption("$select", value));
220220
}
221221
return this;
222222
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/CloudCommunicationsCallRecordsCollectionRequest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public async System.Threading.Tasks.Task<ICloudCommunicationsCallRecordsCollecti
108108
/// <returns>The request object to send.</returns>
109109
public ICloudCommunicationsCallRecordsCollectionRequest Expand(string value)
110110
{
111-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
111+
this.QueryOptions.Add(new QueryOption("$expand", value));
112112
return this;
113113
}
114114

@@ -131,7 +131,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Expand(Expression<Func<M
131131
}
132132
else
133133
{
134-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
134+
this.QueryOptions.Add(new QueryOption("$expand", value));
135135
}
136136
return this;
137137
}
@@ -143,7 +143,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Expand(Expression<Func<M
143143
/// <returns>The request object to send.</returns>
144144
public ICloudCommunicationsCallRecordsCollectionRequest Select(string value)
145145
{
146-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
146+
this.QueryOptions.Add(new QueryOption("$select", value));
147147
return this;
148148
}
149149

@@ -166,7 +166,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Select(Expression<Func<M
166166
}
167167
else
168168
{
169-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
169+
this.QueryOptions.Add(new QueryOption("$select", value));
170170
}
171171
return this;
172172
}
@@ -178,7 +178,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Select(Expression<Func<M
178178
/// <returns>The request object to send.</returns>
179179
public ICloudCommunicationsCallRecordsCollectionRequest Top(int value)
180180
{
181-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$top", value.ToString()));
181+
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
182182
return this;
183183
}
184184

@@ -189,7 +189,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Top(int value)
189189
/// <returns>The request object to send.</returns>
190190
public ICloudCommunicationsCallRecordsCollectionRequest Filter(string value)
191191
{
192-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$filter", value));
192+
this.QueryOptions.Add(new QueryOption("$filter", value));
193193
return this;
194194
}
195195

@@ -200,7 +200,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Filter(string value)
200200
/// <returns>The request object to send.</returns>
201201
public ICloudCommunicationsCallRecordsCollectionRequest Skip(int value)
202202
{
203-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$skip", value.ToString()));
203+
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
204204
return this;
205205
}
206206

@@ -211,7 +211,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Skip(int value)
211211
/// <returns>The request object to send.</returns>
212212
public ICloudCommunicationsCallRecordsCollectionRequest OrderBy(string value)
213213
{
214-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$orderby", value));
214+
this.QueryOptions.Add(new QueryOption("$orderby", value));
215215
return this;
216216
}
217217
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/CloudCommunicationsCallsCollectionRequest.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public async System.Threading.Tasks.Task<ICloudCommunicationsCallsCollectionPage
108108
/// <returns>The request object to send.</returns>
109109
public ICloudCommunicationsCallsCollectionRequest Expand(string value)
110110
{
111-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
111+
this.QueryOptions.Add(new QueryOption("$expand", value));
112112
return this;
113113
}
114114

@@ -131,7 +131,7 @@ public ICloudCommunicationsCallsCollectionRequest Expand(Expression<Func<Call, o
131131
}
132132
else
133133
{
134-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
134+
this.QueryOptions.Add(new QueryOption("$expand", value));
135135
}
136136
return this;
137137
}
@@ -143,7 +143,7 @@ public ICloudCommunicationsCallsCollectionRequest Expand(Expression<Func<Call, o
143143
/// <returns>The request object to send.</returns>
144144
public ICloudCommunicationsCallsCollectionRequest Select(string value)
145145
{
146-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
146+
this.QueryOptions.Add(new QueryOption("$select", value));
147147
return this;
148148
}
149149

@@ -166,7 +166,7 @@ public ICloudCommunicationsCallsCollectionRequest Select(Expression<Func<Call, o
166166
}
167167
else
168168
{
169-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
169+
this.QueryOptions.Add(new QueryOption("$select", value));
170170
}
171171
return this;
172172
}
@@ -178,7 +178,7 @@ public ICloudCommunicationsCallsCollectionRequest Select(Expression<Func<Call, o
178178
/// <returns>The request object to send.</returns>
179179
public ICloudCommunicationsCallsCollectionRequest Top(int value)
180180
{
181-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$top", value.ToString()));
181+
this.QueryOptions.Add(new QueryOption("$top", value.ToString()));
182182
return this;
183183
}
184184

@@ -189,7 +189,7 @@ public ICloudCommunicationsCallsCollectionRequest Top(int value)
189189
/// <returns>The request object to send.</returns>
190190
public ICloudCommunicationsCallsCollectionRequest Filter(string value)
191191
{
192-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$filter", value));
192+
this.QueryOptions.Add(new QueryOption("$filter", value));
193193
return this;
194194
}
195195

@@ -200,7 +200,7 @@ public ICloudCommunicationsCallsCollectionRequest Filter(string value)
200200
/// <returns>The request object to send.</returns>
201201
public ICloudCommunicationsCallsCollectionRequest Skip(int value)
202202
{
203-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$skip", value.ToString()));
203+
this.QueryOptions.Add(new QueryOption("$skip", value.ToString()));
204204
return this;
205205
}
206206

@@ -211,7 +211,7 @@ public ICloudCommunicationsCallsCollectionRequest Skip(int value)
211211
/// <returns>The request object to send.</returns>
212212
public ICloudCommunicationsCallsCollectionRequest OrderBy(string value)
213213
{
214-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$orderby", value));
214+
this.QueryOptions.Add(new QueryOption("$orderby", value));
215215
return this;
216216
}
217217
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/CloudCommunicationsRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async System.Threading.Tasks.Task<CloudCommunications> UpdateAsync(CloudC
161161
/// <returns>The request object to send.</returns>
162162
public ICloudCommunicationsRequest Expand(string value)
163163
{
164-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
164+
this.QueryOptions.Add(new QueryOption("$expand", value));
165165
return this;
166166
}
167167

@@ -184,7 +184,7 @@ public ICloudCommunicationsRequest Expand(Expression<Func<CloudCommunications, o
184184
}
185185
else
186186
{
187-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
187+
this.QueryOptions.Add(new QueryOption("$expand", value));
188188
}
189189
return this;
190190
}
@@ -196,7 +196,7 @@ public ICloudCommunicationsRequest Expand(Expression<Func<CloudCommunications, o
196196
/// <returns>The request object to send.</returns>
197197
public ICloudCommunicationsRequest Select(string value)
198198
{
199-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
199+
this.QueryOptions.Add(new QueryOption("$select", value));
200200
return this;
201201
}
202202

@@ -219,7 +219,7 @@ public ICloudCommunicationsRequest Select(Expression<Func<CloudCommunications, o
219219
}
220220
else
221221
{
222-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
222+
this.QueryOptions.Add(new QueryOption("$select", value));
223223
}
224224
return this;
225225
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/EndpointRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async System.Threading.Tasks.Task<Endpoint> UpdateAsync(Endpoint endpoint
161161
/// <returns>The request object to send.</returns>
162162
public IEndpointRequest Expand(string value)
163163
{
164-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
164+
this.QueryOptions.Add(new QueryOption("$expand", value));
165165
return this;
166166
}
167167

@@ -184,7 +184,7 @@ public IEndpointRequest Expand(Expression<Func<Endpoint, object>> expandExpressi
184184
}
185185
else
186186
{
187-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
187+
this.QueryOptions.Add(new QueryOption("$expand", value));
188188
}
189189
return this;
190190
}
@@ -196,7 +196,7 @@ public IEndpointRequest Expand(Expression<Func<Endpoint, object>> expandExpressi
196196
/// <returns>The request object to send.</returns>
197197
public IEndpointRequest Select(string value)
198198
{
199-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
199+
this.QueryOptions.Add(new QueryOption("$select", value));
200200
return this;
201201
}
202202

@@ -219,7 +219,7 @@ public IEndpointRequest Select(Expression<Func<Endpoint, object>> selectExpressi
219219
}
220220
else
221221
{
222-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
222+
this.QueryOptions.Add(new QueryOption("$select", value));
223223
}
224224
return this;
225225
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph/Requests/EntityRequest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public async System.Threading.Tasks.Task<Entity> UpdateAsync(Entity entityToUpda
161161
/// <returns>The request object to send.</returns>
162162
public IEntityRequest Expand(string value)
163163
{
164-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
164+
this.QueryOptions.Add(new QueryOption("$expand", value));
165165
return this;
166166
}
167167

@@ -184,7 +184,7 @@ public IEntityRequest Expand(Expression<Func<Entity, object>> expandExpression)
184184
}
185185
else
186186
{
187-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$expand", value));
187+
this.QueryOptions.Add(new QueryOption("$expand", value));
188188
}
189189
return this;
190190
}
@@ -196,7 +196,7 @@ public IEntityRequest Expand(Expression<Func<Entity, object>> expandExpression)
196196
/// <returns>The request object to send.</returns>
197197
public IEntityRequest Select(string value)
198198
{
199-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
199+
this.QueryOptions.Add(new QueryOption("$select", value));
200200
return this;
201201
}
202202

@@ -219,7 +219,7 @@ public IEntityRequest Select(Expression<Func<Entity, object>> selectExpression)
219219
}
220220
else
221221
{
222-
this.QueryOptions.Add(new com.microsoft.graph.options.QueryOption("$select", value));
222+
this.QueryOptions.Add(new QueryOption("$select", value));
223223
}
224224
return this;
225225
}

0 commit comments

Comments
 (0)