Skip to content

Commit 1e882cd

Browse files
Generated v1.0 models and request builders using Typewriter (#687)
* Update generated files with build 2842301 * Update Microsoft.Graph.csproj
1 parent a9219fc commit 1e882cd

23 files changed

+456
-16
lines changed

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<DelaySign>false</DelaySign>
2020
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2121
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
22-
<VersionPrefix>3.3.0</VersionPrefix>
22+
<VersionPrefix>3.4.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. -->
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: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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+
/// The type of attachment. Possible values are: file, item, reference. Required.
36+
/// </summary>
37+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "attachmentType", Required = Newtonsoft.Json.Required.Default)]
38+
public AttachmentType? AttachmentType { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets name.
42+
/// The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required.
43+
/// </summary>
44+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "name", Required = Newtonsoft.Json.Required.Default)]
45+
public string Name { get; set; }
46+
47+
/// <summary>
48+
/// Gets or sets size.
49+
/// The length of the attachment in bytes. Required.
50+
/// </summary>
51+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "size", Required = Newtonsoft.Json.Required.Default)]
52+
public Int64? Size { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets contentType.
56+
/// The nature of the data in the attachment. Optional.
57+
/// </summary>
58+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentType", Required = Newtonsoft.Json.Required.Default)]
59+
public string ContentType { get; set; }
60+
61+
/// <summary>
62+
/// Gets or sets isInline.
63+
/// true if the attachment is an inline attachment; otherwise, false. Optional.
64+
/// </summary>
65+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInline", Required = Newtonsoft.Json.Required.Default)]
66+
public bool? IsInline { get; set; }
67+
68+
/// <summary>
69+
/// Gets or sets additional data.
70+
/// </summary>
71+
[JsonExtensionData(ReadData = true)]
72+
public IDictionary<string, object> AdditionalData { get; set; }
73+
74+
/// <summary>
75+
/// Gets or sets @odata.type.
76+
/// </summary>
77+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)]
78+
public string ODataType { get; set; }
79+
80+
}
81+
}
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/Call.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public Call()
9595

9696
/// <summary>
9797
/// Gets or sets requested modalities.
98-
/// The list of requested modalities.
98+
/// The list of requested modalities. Possible values are: unknown, audio, video, videoBasedScreenSharing, data.
9999
/// </summary>
100100
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "requestedModalities", Required = Newtonsoft.Json.Required.Default)]
101101
public IEnumerable<Modality> RequestedModalities { get; set; }

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public Permission()
3232

3333
/// <summary>
3434
/// Gets or sets expiration date time.
35+
/// A format of yyyy-MM-ddTHH:mm:ssZ of DateTimeOffset indicates the expiration time of the permission. DateTime.MinValue indicates there is no expiration set for this permission. Optional.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "expirationDateTime", Required = Newtonsoft.Json.Required.Default)]
3738
public DateTimeOffset? ExpirationDateTime { get; set; }
@@ -45,12 +46,14 @@ public Permission()
4546

4647
/// <summary>
4748
/// Gets or sets granted to identities.
49+
/// For link type permissions, the details of the users to whom permission was granted. Read-only.
4850
/// </summary>
4951
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "grantedToIdentities", Required = Newtonsoft.Json.Required.Default)]
5052
public IEnumerable<IdentitySet> GrantedToIdentities { get; set; }
5153

5254
/// <summary>
5355
/// Gets or sets has password.
56+
/// This indicates whether password is set for this permission, it's only showing in response. Optional and Read-only and for OneDrive Personal only.
5457
/// </summary>
5558
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "hasPassword", Required = Newtonsoft.Json.Required.Default)]
5659
public bool? HasPassword { get; set; }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public SharedDriveItem()
6767

6868
/// <summary>
6969
/// Gets or sets permission.
70+
/// Used to access the permission representing the underlying sharing link
7071
/// </summary>
7172
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "permission", Required = Newtonsoft.Json.Required.Default)]
7273
public Permission Permission { get; set; }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public SharepointIds()
6767

6868
/// <summary>
6969
/// Gets or sets tenantId.
70+
/// The unique identifier (guid) for the tenancy.
7071
/// </summary>
7172
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tenantId", Required = Newtonsoft.Json.Required.Default)]
7273
public string TenantId { get; set; }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public SharingLink()
3939

4040
/// <summary>
4141
/// Gets or sets preventsDownload.
42+
/// If true then the user can only use this link to view the item on the web, and cannot use it to download the contents of the item. Only for OneDrive for Business and SharePoint.
4243
/// </summary>
4344
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "preventsDownload", Required = Newtonsoft.Json.Required.Default)]
4445
public bool? PreventsDownload { get; set; }

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public SiteCollection()
3232

3333
/// <summary>
3434
/// Gets or sets dataLocationCode.
35+
/// The geographic region code for where this site collection resides. Read-only.
3536
/// </summary>
3637
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "dataLocationCode", Required = Newtonsoft.Json.Required.Default)]
3738
public string DataLocationCode { get; set; }

0 commit comments

Comments
 (0)