Skip to content

Commit f784b2e

Browse files
Generated models and request builders using Typewriter (#647)
* Update generated files with build 2544600 * Update to target .NET standard 2.0, update tests per warnings
1 parent ad744d8 commit f784b2e

File tree

350 files changed

+20720
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

350 files changed

+20720
-130
lines changed

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
55
<AssemblyTitle>Microsoft Graph V1.0 Service Client Library</AssemblyTitle>
66
<Authors>Microsoft</Authors>
7-
<TargetFrameworks>netstandard1.3;net45</TargetFrameworks>
7+
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
88
<PreserveCompilationContext>false</PreserveCompilationContext>
99
<AssemblyName>Microsoft.Graph</AssemblyName>
1010
<PackageId>Microsoft.Graph</PackageId>
@@ -13,13 +13,13 @@
1313
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
1414
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
1515
<RepositoryUrl>https://github.com/microsoftgraph/msgraph-sdk-dotnet</RepositoryUrl>
16-
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard1.1' ">1.6.0</NetStandardImplicitPackageVersion>
16+
<NetStandardImplicitPackageVersion Condition=" '$(TargetFramework)' == 'netstandard2.0' ">2.0.0</NetStandardImplicitPackageVersion>
1717
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1818
<SignAssembly>false</SignAssembly>
1919
<DelaySign>false</DelaySign>
2020
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2121
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
22-
<VersionPrefix>1.21.0</VersionPrefix>
22+
<VersionPrefix>3.0.0</VersionPrefix>
2323
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
2424
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
2525
<!-- VersionPrefix major and patch versions must be manually set. -->
@@ -28,7 +28,7 @@
2828
<PackageReleaseNotes>
2929
</PackageReleaseNotes>
3030
</PropertyGroup>
31-
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard1.3|AnyCPU'">
31+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard2.0|AnyCPU'">
3232
<DocumentationFile>bin\Release\Microsoft.Graph.xml</DocumentationFile>
3333
<NoWarn>1701;1702;1705;1591</NoWarn>
3434
</PropertyGroup>
@@ -47,4 +47,4 @@
4747
</PackagePath>
4848
</None>
4949
</ItemGroup>
50-
</Project>
50+
</Project>

src/Microsoft.Graph/Models/Generated/AppHostedMediaConfig.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public AppHostedMediaConfig()
3131

3232
/// <summary>
3333
/// Gets or sets blob.
34+
/// The media configuration blob generated by smart media agent.
3435
/// </summary>
3536
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "blob", Required = Newtonsoft.Json.Required.Default)]
3637
public string Blob { get; set; }
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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\EntityType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The type App Role Assignment.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class AppRoleAssignment : DirectoryObject
23+
{
24+
25+
///<summary>
26+
/// The AppRoleAssignment constructor
27+
///</summary>
28+
public AppRoleAssignment()
29+
{
30+
this.ODataType = "microsoft.graph.appRoleAssignment";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets app role id.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleId", Required = Newtonsoft.Json.Required.Default)]
37+
public Guid? AppRoleId { get; set; }
38+
39+
/// <summary>
40+
/// Gets or sets created date time.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)]
43+
public DateTimeOffset? CreatedDateTime { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets principal display name.
47+
/// </summary>
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalDisplayName", Required = Newtonsoft.Json.Required.Default)]
49+
public string PrincipalDisplayName { get; set; }
50+
51+
/// <summary>
52+
/// Gets or sets principal id.
53+
/// </summary>
54+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)]
55+
public Guid? PrincipalId { get; set; }
56+
57+
/// <summary>
58+
/// Gets or sets principal type.
59+
/// </summary>
60+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalType", Required = Newtonsoft.Json.Required.Default)]
61+
public string PrincipalType { get; set; }
62+
63+
/// <summary>
64+
/// Gets or sets resource display name.
65+
/// </summary>
66+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceDisplayName", Required = Newtonsoft.Json.Required.Default)]
67+
public string ResourceDisplayName { get; set; }
68+
69+
/// <summary>
70+
/// Gets or sets resource id.
71+
/// </summary>
72+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)]
73+
public Guid? ResourceId { get; set; }
74+
75+
}
76+
}
77+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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\MethodRequestBody.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using Newtonsoft.Json;
13+
using System;
14+
using System.Collections.Generic;
15+
using System.IO;
16+
using System.Runtime.Serialization;
17+
18+
/// <summary>
19+
/// The type AttachmentCreateUploadSessionRequestBody.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class AttachmentCreateUploadSessionRequestBody
23+
{
24+
25+
/// <summary>
26+
/// Gets or sets AttachmentItem.
27+
/// </summary>
28+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "AttachmentItem", Required = Newtonsoft.Json.Required.Default)]
29+
public AttachmentItem AttachmentItem { get; set; }
30+
31+
}
32+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
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\ComplexType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The type AttachmentItem.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
[JsonConverter(typeof(DerivedTypeConverter))]
23+
public partial class AttachmentItem
24+
{
25+
/// <summary>
26+
/// Initializes a new instance of the <see cref="AttachmentItem"/> class.
27+
/// </summary>
28+
public AttachmentItem()
29+
{
30+
this.ODataType = "microsoft.graph.attachmentItem";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets attachmentType.
35+
/// </summary>
36+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "attachmentType", Required = Newtonsoft.Json.Required.Default)]
37+
public AttachmentType? AttachmentType { get; set; }
38+
39+
/// <summary>
40+
/// Gets or sets name.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "name", Required = Newtonsoft.Json.Required.Default)]
43+
public string Name { get; set; }
44+
45+
/// <summary>
46+
/// Gets or sets size.
47+
/// </summary>
48+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "size", Required = Newtonsoft.Json.Required.Default)]
49+
public Int64? Size { get; set; }
50+
51+
/// <summary>
52+
/// Gets or sets contentType.
53+
/// </summary>
54+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentType", Required = Newtonsoft.Json.Required.Default)]
55+
public string ContentType { get; set; }
56+
57+
/// <summary>
58+
/// Gets or sets isInline.
59+
/// </summary>
60+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInline", Required = Newtonsoft.Json.Required.Default)]
61+
public bool? IsInline { get; set; }
62+
63+
/// <summary>
64+
/// Gets or sets additional data.
65+
/// </summary>
66+
[JsonExtensionData(ReadData = true)]
67+
public IDictionary<string, object> AdditionalData { get; set; }
68+
69+
/// <summary>
70+
/// Gets or sets @odata.type.
71+
/// </summary>
72+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
73+
public string ODataType { get; set; }
74+
75+
}
76+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 AttachmentType.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum AttachmentType
20+
{
21+
22+
/// <summary>
23+
/// File
24+
/// </summary>
25+
File = 0,
26+
27+
/// <summary>
28+
/// Item
29+
/// </summary>
30+
Item = 1,
31+
32+
/// <summary>
33+
/// Reference
34+
/// </summary>
35+
Reference = 2,
36+
37+
}
38+
}

src/Microsoft.Graph/Models/Generated/AudioConferencing.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,21 @@ public AudioConferencing()
3838

3939
/// <summary>
4040
/// Gets or sets tollNumber.
41+
/// The toll number that connects to the Audio Conference Provider.
4142
/// </summary>
4243
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tollNumber", Required = Newtonsoft.Json.Required.Default)]
4344
public string TollNumber { get; set; }
4445

4546
/// <summary>
4647
/// Gets or sets tollFreeNumber.
48+
/// The toll-free number that connects to the Audio Conference Provider.
4749
/// </summary>
4850
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tollFreeNumber", Required = Newtonsoft.Json.Required.Default)]
4951
public string TollFreeNumber { get; set; }
5052

5153
/// <summary>
5254
/// Gets or sets dialinUrl.
55+
/// A URL to the externally-accessible web page that contains dial-in information.
5356
/// </summary>
5457
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "dialinUrl", Required = Newtonsoft.Json.Required.Default)]
5558
public string DialinUrl { get; set; }

0 commit comments

Comments
 (0)