Skip to content

Commit dce6d9d

Browse files
committed
- updates CHarp test files
1 parent 97d616a commit dce6d9d

8 files changed

+314
-2
lines changed

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public ICloudCommunicationsCallRecordsCollectionRequest Request(IEnumerable<Opti
5252
/// </summary>
5353
/// <param name="id">The ID for the CloudCommunicationsMicrosoft.Graph2.CallRecords.CallRecord.</param>
5454
/// <returns>The <see cref="Microsoft.Graph2.CallRecords.ICallRecordRequestBuilder"/>.</returns>
55+
[System.Runtime.CompilerServices.IndexerName("ThisItem")]
5556
public Microsoft.Graph2.CallRecords.ICallRecordRequestBuilder this[string id]
5657
{
5758
get
@@ -60,6 +61,17 @@ public Microsoft.Graph2.CallRecords.ICallRecordRequestBuilder this[string id]
6061
}
6162
}
6263

63-
64+
/// <summary>
65+
/// Gets the request builder for CallRecordItem.
66+
/// </summary>
67+
/// <returns>The <see cref="ICallRecordItemRequestBuilder"/>.</returns>
68+
public ICallRecordItemRequestBuilder Item(
69+
string name = null)
70+
{
71+
return new CallRecordItemRequestBuilder(
72+
this.AppendSegmentToRequestUrl("microsoft.graph2.callRecords.item"),
73+
this.Client,
74+
name);
75+
}
6476
}
6577
}

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ public partial interface ICloudCommunicationsCallRecordsCollectionRequestBuilder
3434
/// </summary>
3535
/// <param name="id">The ID for the Microsoft.Graph2.CallRecords.CallRecord.</param>
3636
/// <returns>The <see cref="Microsoft.Graph2.CallRecords.ICallRecordRequestBuilder"/>.</returns>
37+
[System.Runtime.CompilerServices.IndexerName("ThisItem")]
3738
Microsoft.Graph2.CallRecords.ICallRecordRequestBuilder this[string id] { get; }
3839

39-
40+
/// <summary>
41+
/// Gets the request builder for CallRecordItem.
42+
/// </summary>
43+
/// <returns>The <see cref="ICallRecordItemRequestBuilder"/>.</returns>
44+
ICallRecordItemRequestBuilder Item(
45+
string name = null);
4046
}
4147
}
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
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\Requests\MethodRequest.cs.tt
9+
10+
namespace Microsoft.Graph2.CallRecords
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Net.Http;
16+
using System.Threading;
17+
18+
/// <summary>
19+
/// The type CallRecordItemRequest.
20+
/// </summary>
21+
public partial class CallRecordItemRequest : Microsoft.Graph.BaseRequest, ICallRecordItemRequest
22+
{
23+
/// <summary>
24+
/// Constructs a new CallRecordItemRequest.
25+
/// </summary>
26+
public CallRecordItemRequest(
27+
string requestUrl,
28+
Microsoft.Graph.IBaseClient client,
29+
IEnumerable<Microsoft.Graph.Option> options)
30+
: base(requestUrl, client, options)
31+
{
32+
}
33+
34+
/// <summary>
35+
/// Issues the GET request.
36+
/// </summary>
37+
public System.Threading.Tasks.Task<CallRecord> GetAsync()
38+
{
39+
return this.GetAsync(CancellationToken.None);
40+
}
41+
42+
/// <summary>
43+
/// Issues the GET request.
44+
/// </summary>
45+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
46+
/// <returns>The task to await for async call.</returns>
47+
public System.Threading.Tasks.Task<CallRecord> GetAsync(
48+
CancellationToken cancellationToken)
49+
{
50+
this.Method = "GET";
51+
return this.SendAsync<CallRecord>(null, cancellationToken);
52+
}
53+
54+
55+
/// <summary>
56+
/// Issues the PATCH request.
57+
/// </summary>
58+
/// <param name="callrecord">The CallRecord object set with the properties to update.</param>
59+
/// <returns>The task to await for async call.</returns>
60+
public System.Threading.Tasks.Task<CallRecord> PatchAsync(CallRecord callrecord)
61+
{
62+
return this.PatchAsync(callrecord, CancellationToken.None);
63+
}
64+
65+
/// <summary>
66+
/// Issues the PATCH request.
67+
/// </summary>
68+
/// <param name="callrecord">The CallRecord object set with the properties to update.</param>
69+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
70+
/// <returns>The task to await for async call.</returns>
71+
public System.Threading.Tasks.Task<CallRecord> PatchAsync(CallRecord callrecord,
72+
CancellationToken cancellationToken)
73+
{
74+
this.Method = "PATCH";
75+
return this.SendAsync<CallRecord>(callrecord, cancellationToken);
76+
}
77+
78+
/// <summary>
79+
/// Issues the PUT request.
80+
/// </summary>
81+
/// <param name="callrecord">The CallRecord object to update.</param>
82+
/// <returns>The task to await for async call.</returns>
83+
public System.Threading.Tasks.Task<CallRecord> PutAsync(CallRecord callrecord)
84+
{
85+
return this.PutAsync(callrecord, CancellationToken.None);
86+
}
87+
88+
/// <summary>
89+
/// Issues the PUT request.
90+
/// </summary>
91+
/// <param name="callrecord">The CallRecord object to update.</param>
92+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
93+
/// <returns>The task to await for async call.</returns>
94+
public System.Threading.Tasks.Task<CallRecord> PutAsync(CallRecord callrecord,
95+
CancellationToken cancellationToken)
96+
{
97+
this.Method = "PUT";
98+
return this.SendAsync<CallRecord>(callrecord, cancellationToken);
99+
}
100+
101+
/// <summary>
102+
/// Adds the specified expand value to the request.
103+
/// </summary>
104+
/// <param name="value">The expand value.</param>
105+
/// <returns>The request object to send.</returns>
106+
public ICallRecordItemRequest Expand(string value)
107+
{
108+
this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$expand", value));
109+
return this;
110+
}
111+
112+
/// <summary>
113+
/// Adds the specified select value to the request.
114+
/// </summary>
115+
/// <param name="value">The select value.</param>
116+
/// <returns>The request object to send.</returns>
117+
public ICallRecordItemRequest Select(string value)
118+
{
119+
this.QueryOptions.Add(new Microsoft.Graph.QueryOption("$select", value));
120+
return this;
121+
}
122+
}
123+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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\Requests\MethodRequestBuilder.cs.tt
9+
10+
namespace Microsoft.Graph2.CallRecords
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
16+
/// <summary>
17+
/// The type CallRecordItemRequestBuilder.
18+
/// </summary>
19+
public partial class CallRecordItemRequestBuilder : Microsoft.Graph.BaseFunctionMethodRequestBuilder<ICallRecordItemRequest>, ICallRecordItemRequestBuilder
20+
{
21+
/// <summary>
22+
/// Constructs a new <see cref="CallRecordItemRequestBuilder"/>.
23+
/// </summary>
24+
/// <param name="requestUrl">The URL for the request.</param>
25+
/// <param name="client">The <see cref="Microsoft.Graph.IBaseClient"/> for handling requests.</param>
26+
/// <param name="name">A name parameter for the OData method call.</param>
27+
public CallRecordItemRequestBuilder(
28+
string requestUrl,
29+
Microsoft.Graph.IBaseClient client,
30+
string name)
31+
: base(requestUrl, client)
32+
{
33+
this.SetParameter("name", name, true);
34+
}
35+
36+
/// <summary>
37+
/// A method used by the base class to construct a request class instance.
38+
/// </summary>
39+
/// <param name="functionUrl">The request URL to </param>
40+
/// <param name="options">The query and header options for the request.</param>
41+
/// <returns>An instance of a specific request class.</returns>
42+
protected override ICallRecordItemRequest CreateRequest(string functionUrl, IEnumerable<Microsoft.Graph.Option> options)
43+
{
44+
var request = new CallRecordItemRequest(functionUrl, this.Client, options);
45+
46+
return request;
47+
}
48+
}
49+
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph2/CallRecords/Requests/CallRecordRequestBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,7 @@ public ICallRecordRecipientsCollectionRequestBuilder Recipients
7474
}
7575
}
7676

77+
78+
7779
}
7880
}
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
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\Requests\IMethodRequest.cs.tt
9+
10+
namespace Microsoft.Graph2.CallRecords
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Net.Http;
16+
using System.Threading;
17+
18+
/// <summary>
19+
/// The interface ICallRecordItemRequest.
20+
/// </summary>
21+
public partial interface ICallRecordItemRequest : Microsoft.Graph.IBaseRequest
22+
{
23+
24+
25+
/// <summary>
26+
/// Issues the GET request.
27+
/// </summary>
28+
System.Threading.Tasks.Task<CallRecord> GetAsync();
29+
30+
/// <summary>
31+
/// Issues the GET request.
32+
/// </summary>
33+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
34+
/// <returns>The task to await for async call.</returns>
35+
System.Threading.Tasks.Task<CallRecord> GetAsync(
36+
CancellationToken cancellationToken);
37+
38+
39+
40+
/// <summary>
41+
/// Issues the PATCH request.
42+
/// </summary>
43+
/// <param name="callrecord">The CallRecord object set with the properties to update.</param>
44+
/// <returns>The task to await for async call.</returns>
45+
System.Threading.Tasks.Task<CallRecord> PatchAsync(CallRecord callrecord);
46+
47+
/// <summary>
48+
/// Issues the PATCH request.
49+
/// </summary>
50+
/// <param name="callrecord">The CallRecord object set with the properties to update.</param>
51+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
52+
/// <returns>The task to await for async call.</returns>
53+
System.Threading.Tasks.Task<CallRecord> PatchAsync(CallRecord callrecord,
54+
CancellationToken cancellationToken);
55+
56+
57+
/// <summary>
58+
/// Issues the PUT request.
59+
/// </summary>
60+
/// <param name="callrecord">The CallRecord object to update.</param>
61+
/// <returns>The task to await for async call.</returns>
62+
System.Threading.Tasks.Task<CallRecord> PutAsync(CallRecord callrecord);
63+
64+
/// <summary>
65+
/// Issues the PUT request.
66+
/// </summary>
67+
/// <param name="callrecord">The CallRecord object to update.</param>
68+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
69+
/// <returns>The task to await for async call.</returns>
70+
System.Threading.Tasks.Task<CallRecord> PutAsync(CallRecord callrecord,
71+
CancellationToken cancellationToken);
72+
73+
74+
75+
76+
/// <summary>
77+
/// Adds the specified expand value to the request.
78+
/// </summary>
79+
/// <param name="value">The expand value.</param>
80+
/// <returns>The request object to send.</returns>
81+
ICallRecordItemRequest Expand(string value);
82+
83+
/// <summary>
84+
/// Adds the specified select value to the request.
85+
/// </summary>
86+
/// <param name="value">The select value.</param>
87+
/// <returns>The request object to send.</returns>
88+
ICallRecordItemRequest Select(string value);
89+
}
90+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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\Requests\IMethodRequestBuilder.cs.tt
9+
10+
namespace Microsoft.Graph2.CallRecords
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
16+
/// <summary>
17+
/// The interface ICallRecordItemRequestBuilder.
18+
/// </summary>
19+
public partial interface ICallRecordItemRequestBuilder
20+
{
21+
/// <summary>
22+
/// Builds the request.
23+
/// </summary>
24+
/// <param name="options">The query and header options for the request.</param>
25+
/// <returns>The built request.</returns>
26+
ICallRecordItemRequest Request(IEnumerable<Microsoft.Graph.Option> options = null);
27+
}
28+
}

test/Typewriter.Test/TestDataCSharp/com/Microsoft/Graph2/CallRecords/Requests/ICallRecordRequestBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ public partial interface ICallRecordRequestBuilder : Microsoft.Graph.IEntityRequ
4343
/// <returns>The <see cref="ICallRecordRecipientsCollectionRequestBuilder"/>.</returns>
4444
ICallRecordRecipientsCollectionRequestBuilder Recipients { get; }
4545

46+
47+
4648
}
4749
}

0 commit comments

Comments
 (0)