Skip to content

Commit 1a0e1c9

Browse files
Generated models and request builders using Typewriter (#331)
* Update generated files with build 859817 * Updated nuspec release notes, bumped version. * Set release to preview
1 parent 0d34c89 commit 1a0e1c9

File tree

220 files changed

+14345
-37
lines changed

Some content is hidden

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

220 files changed

+14345
-37
lines changed

src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,19 @@
33
<Description>Microsoft Graph Core Client Library implements core functionality used by Microsoft Graph Client Libraries.</Description>
44
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
55
<AssemblyTitle>Microsoft Graph Core Client Library</AssemblyTitle>
6-
<VersionPrefix>1.12.0</VersionPrefix>
7-
<FileVersion>1.12.0</FileVersion>
8-
<AssemblyVersion>1.12.0</AssemblyVersion>
6+
<VersionPrefix>1.13.0</VersionPrefix>
7+
<FileVersion>1.13.0</FileVersion>
8+
<AssemblyVersion>1.13.0</AssemblyVersion>
99
<Authors>Microsoft</Authors>
1010
<TargetFrameworks>netstandard1.1;net45</TargetFrameworks>
1111
<PreserveCompilationContext>false</PreserveCompilationContext>
1212
<AssemblyName>Microsoft.Graph.Core</AssemblyName>
1313
<PackageId>Microsoft.Graph.Core</PackageId>
1414
<PackageTags>Microsoft Office365;Graph;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK</PackageTags>
1515
<PackageReleaseNotes>
16-
October 2018 Release Summary (version 1.12.0)
16+
December 2018 Release Summary (version 1.13.0)
1717

18-
- Retry handler added.
19-
- Added client factory.
20-
- Removed System.Net.Http package reference for .Net target.
18+
- Authentication handler added.
2119
</PackageReleaseNotes>
2220
<PackageProjectUrl>https://developer.microsoft.com/graph</PackageProjectUrl>
2321
<PackageLicenseUrl>http://aka.ms/devservicesagreement</PackageLicenseUrl>
@@ -37,7 +35,7 @@ October 2018 Release Summary (version 1.12.0)
3735
<DelaySign>false</DelaySign>
3836
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
3937
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
40-
<Version>1.12.0</Version>
38+
<Version>1.13.0-preview</Version>
4139
</PropertyGroup>
4240
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard1.1|AnyCPU'">
4341
<DocumentationFile>bin\Release\netstandard1.1\Microsoft.Graph.Core.xml</DocumentationFile>

src/Microsoft.Graph.Core/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
//
2525
// You can specify all the values or you can default the Build and Revision Numbers
2626
// by using the '*' as shown below:
27-
[assembly: AssemblyVersion("1.12.0")]
28-
[assembly: AssemblyFileVersion("1.12.0.0")]
27+
[assembly: AssemblyVersion("1.13.0")]
28+
[assembly: AssemblyFileVersion("1.13.0.0")]
2929

3030
#if DEBUG
3131
[assembly: InternalsVisibleTo("Microsoft.Graph.Core.Test")]

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,28 @@
33
<Description>Microsoft Graph Client Library allows you to call Office 365, Azure AD and other Microsoft services through a single unified developer experience.</Description>
44
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
55
<AssemblyTitle>Microsoft Graph Client Library</AssemblyTitle>
6-
<VersionPrefix>1.12.0</VersionPrefix>
7-
<FileVersion>1.12.0</FileVersion>
8-
<AssemblyVersion>1.12.0</AssemblyVersion>
6+
<VersionPrefix>1.13.0</VersionPrefix>
7+
<FileVersion>1.13.0</FileVersion>
8+
<AssemblyVersion>1.13.0</AssemblyVersion>
99
<Authors>Microsoft</Authors>
1010
<TargetFrameworks>netstandard1.1;net45</TargetFrameworks>
1111
<PreserveCompilationContext>false</PreserveCompilationContext>
1212
<AssemblyName>Microsoft.Graph</AssemblyName>
1313
<PackageId>Microsoft.Graph</PackageId>
1414
<PackageTags>Microsoft Office365;Graph;GraphServiceClient;Outlook;OneDrive;AzureAD;GraphAPI;Productivity;SharePoint;Intune;SDK</PackageTags>
1515
<PackageReleaseNotes>
16-
October 2018 Release Summary (version 1.12.0)
16+
December 2018 Release Summary (version 1.13.0)
1717

18-
- New DriveItemPreviewRequestBody.cs is the request body content for the preview action bound to the driveItem entity.
19-
- New ItemPreviewInfo.cs is returned by the preview action.
20-
- Added odataType to base types.
21-
- New doc comments for IntelliSense.
22-
- New DriveItemPreviewRequest.cs and DriveItemPreviewRequestBuilder.cs requests. DriveItemRequestBuilder.cs updated to support the DriveItem preview functionality.
23-
- Removed System.Net.Http package reference for .Net target.
18+
New functionality
19+
- Added new Teams API functionality.
20+
- Added new Intune API functionality.
21+
22+
Updated functionality
23+
24+
- Updated IntelliSense with new content.
25+
- Device is updated with the MemberOf relationship.
26+
- Group is updated with the isArchived property and Team relationship.
27+
- User is updated with the JoinedTeams relationship.
2428
</PackageReleaseNotes>
2529
<PackageProjectUrl>https://developer.microsoft.com/graph</PackageProjectUrl>
2630
<PackageLicenseUrl>http://aka.ms/devservicesagreement</PackageLicenseUrl>
@@ -40,7 +44,7 @@ October 2018 Release Summary (version 1.12.0)
4044
<DelaySign>false</DelaySign>
4145
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
4246
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
43-
<Version>1.12.0</Version>
47+
<Version>1.13.0-preview</Version>
4448
</PropertyGroup>
4549
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard1.1|AnyCPU'">
4650
<DocumentationFile>bin\Release\Microsoft.Graph.xml</DocumentationFile>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public partial class Alert : Entity
4444

4545
/// <summary>
4646
/// Gets or sets azure tenant id.
47-
/// Azure Active Directory tenant ID.
47+
/// Azure Active Directory tenant ID. Required.
4848
/// </summary>
4949
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "azureTenantId", Required = Newtonsoft.Json.Required.Default)]
5050
public string AzureTenantId { get; set; }
@@ -86,7 +86,7 @@ public partial class Alert : Entity
8686

8787
/// <summary>
8888
/// Gets or sets created date time.
89-
/// Time at which the alert was created by the alert provider. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
89+
/// Time at which the alert was created by the alert provider. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Required.
9090
/// </summary>
9191
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)]
9292
public DateTimeOffset? CreatedDateTime { get; set; }
@@ -107,7 +107,7 @@ public partial class Alert : Entity
107107

108108
/// <summary>
109109
/// Gets or sets event date time.
110-
/// Time at which the event(s) that served as the trigger(s) to generate the alert occurred. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.
110+
/// Time at which the event(s) that served as the trigger(s) to generate the alert occurred. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Required.
111111
/// </summary>
112112
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "eventDateTime", Required = Newtonsoft.Json.Required.Default)]
113113
public DateTimeOffset? EventDateTime { get; set; }
@@ -177,7 +177,7 @@ public partial class Alert : Entity
177177

178178
/// <summary>
179179
/// Gets or sets severity.
180-
/// Alert severity - set by vendor/provider. Possible values are: unknown, informational, low, medium, high.
180+
/// Alert severity - set by vendor/provider. Possible values are: unknown, informational, low, medium, high. Required.
181181
/// </summary>
182182
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "severity", Required = Newtonsoft.Json.Required.Default)]
183183
public AlertSeverity? Severity { get; set; }
@@ -191,7 +191,7 @@ public partial class Alert : Entity
191191

192192
/// <summary>
193193
/// Gets or sets status.
194-
/// Alert lifecycle status (stage). Possible values are: unknown, newAlert, inProgress, resolved. (supports update)
194+
/// Alert lifecycle status (stage). Possible values are: unknown, newAlert, inProgress, resolved. (supports update). Required.
195195
/// </summary>
196196
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "status", Required = Newtonsoft.Json.Required.Default)]
197197
public AlertStatus? Status { get; set; }
@@ -205,7 +205,7 @@ public partial class Alert : Entity
205205

206206
/// <summary>
207207
/// Gets or sets title.
208-
/// Alert title.
208+
/// Alert title. Required.
209209
/// </summary>
210210
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "title", Required = Newtonsoft.Json.Required.Default)]
211211
public string Title { get; set; }
@@ -226,7 +226,7 @@ public partial class Alert : Entity
226226

227227
/// <summary>
228228
/// Gets or sets vendor information.
229-
/// Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=Windows Defender ATP; subProvider=AppLocker).
229+
/// Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=Windows Defender ATP; subProvider=AppLocker). Required.
230230
/// </summary>
231231
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "vendorInformation", Required = Newtonsoft.Json.Required.Default)]
232232
public SecurityVendorInformation VendorInformation { get; 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+
7+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Runtime.Serialization;
15+
using Newtonsoft.Json;
16+
17+
/// <summary>
18+
/// The type App Catalogs.
19+
/// </summary>
20+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
21+
public partial class AppCatalogs : Entity
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets teams apps.
26+
/// </summary>
27+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "teamsApps", Required = Newtonsoft.Json.Required.Default)]
28+
public IAppCatalogsTeamsAppsCollectionPage TeamsApps { get; set; }
29+
30+
}
31+
}
32+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
7+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Runtime.Serialization;
15+
using Newtonsoft.Json;
16+
17+
/// <summary>
18+
/// The type Channel.
19+
/// </summary>
20+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
21+
public partial class Channel : Entity
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets display name.
26+
/// Channel name as it will appear to the user in Microsoft Teams.
27+
/// </summary>
28+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "displayName", Required = Newtonsoft.Json.Required.Default)]
29+
public string DisplayName { get; set; }
30+
31+
/// <summary>
32+
/// Gets or sets description.
33+
/// Optional textual description for the channel.
34+
/// </summary>
35+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "description", Required = Newtonsoft.Json.Required.Default)]
36+
public string Description { get; set; }
37+
38+
/// <summary>
39+
/// Gets or sets tabs.
40+
/// A collection of all the tabs in the channel. A navigation property.
41+
/// </summary>
42+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tabs", Required = Newtonsoft.Json.Required.Default)]
43+
public IChannelTabsCollectionPage Tabs { get; set; }
44+
45+
}
46+
}
47+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
7+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
8+
9+
10+
namespace Microsoft.Graph
11+
{
12+
using Newtonsoft.Json;
13+
14+
/// <summary>
15+
/// The enum ClonableTeamParts.
16+
/// </summary>
17+
[JsonConverter(typeof(EnumConverter))]
18+
[System.Flags]
19+
public enum ClonableTeamParts
20+
{
21+
22+
/// <summary>
23+
/// apps
24+
/// </summary>
25+
Apps = 1,
26+
27+
/// <summary>
28+
/// tabs
29+
/// </summary>
30+
Tabs = 2,
31+
32+
/// <summary>
33+
/// settings
34+
/// </summary>
35+
Settings = 4,
36+
37+
/// <summary>
38+
/// channels
39+
/// </summary>
40+
Channels = 8,
41+
42+
/// <summary>
43+
/// members
44+
/// </summary>
45+
Members = 16,
46+
47+
}
48+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
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+
7+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
8+
9+
namespace Microsoft.Graph
10+
{
11+
using System;
12+
using System.Collections.Generic;
13+
using System.IO;
14+
using System.Runtime.Serialization;
15+
using Newtonsoft.Json;
16+
17+
/// <summary>
18+
/// The type Data Policy Operation.
19+
/// </summary>
20+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
21+
public partial class DataPolicyOperation : Entity
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets completed date time.
26+
/// </summary>
27+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "completedDateTime", Required = Newtonsoft.Json.Required.Default)]
28+
public DateTimeOffset? CompletedDateTime { get; set; }
29+
30+
/// <summary>
31+
/// Gets or sets status.
32+
/// </summary>
33+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "status", Required = Newtonsoft.Json.Required.Default)]
34+
public DataPolicyOperationStatus? Status { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets storage location.
38+
/// </summary>
39+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "storageLocation", Required = Newtonsoft.Json.Required.Default)]
40+
public string StorageLocation { get; set; }
41+
42+
/// <summary>
43+
/// Gets or sets user id.
44+
/// </summary>
45+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "userId", Required = Newtonsoft.Json.Required.Default)]
46+
public string UserId { get; set; }
47+
48+
/// <summary>
49+
/// Gets or sets submitted date time.
50+
/// </summary>
51+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "submittedDateTime", Required = Newtonsoft.Json.Required.Default)]
52+
public DateTimeOffset? SubmittedDateTime { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets progress.
56+
/// </summary>
57+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "progress", Required = Newtonsoft.Json.Required.Default)]
58+
public double? Progress { get; set; }
59+
60+
}
61+
}
62+
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
7+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
8+
9+
10+
namespace Microsoft.Graph
11+
{
12+
using Newtonsoft.Json;
13+
14+
/// <summary>
15+
/// The enum DataPolicyOperationStatus.
16+
/// </summary>
17+
[JsonConverter(typeof(EnumConverter))]
18+
public enum DataPolicyOperationStatus
19+
{
20+
21+
/// <summary>
22+
/// not Started
23+
/// </summary>
24+
NotStarted = 0,
25+
26+
/// <summary>
27+
/// running
28+
/// </summary>
29+
Running = 1,
30+
31+
/// <summary>
32+
/// complete
33+
/// </summary>
34+
Complete = 2,
35+
36+
/// <summary>
37+
/// failed
38+
/// </summary>
39+
Failed = 3,
40+
41+
/// <summary>
42+
/// unknown Future Value
43+
/// </summary>
44+
UnknownFutureValue = 4,
45+
46+
}
47+
}

0 commit comments

Comments
 (0)