-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
ad744d8
commit f784b2e
Showing
350 changed files
with
20,720 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// ------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. | ||
// ------------------------------------------------------------------------------ | ||
|
||
// **NOTE** This file was generated by a tool and any changes will be overwritten. | ||
// <auto-generated/> | ||
|
||
// Template Source: Templates\CSharp\Model\EntityType.cs.tt | ||
|
||
namespace Microsoft.Graph | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The type App Role Assignment. | ||
/// </summary> | ||
[JsonObject(MemberSerialization = MemberSerialization.OptIn)] | ||
public partial class AppRoleAssignment : DirectoryObject | ||
{ | ||
|
||
///<summary> | ||
/// The AppRoleAssignment constructor | ||
///</summary> | ||
public AppRoleAssignment() | ||
{ | ||
this.ODataType = "microsoft.graph.appRoleAssignment"; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets app role id. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleId", Required = Newtonsoft.Json.Required.Default)] | ||
public Guid? AppRoleId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets created date time. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "createdDateTime", Required = Newtonsoft.Json.Required.Default)] | ||
public DateTimeOffset? CreatedDateTime { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets principal display name. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalDisplayName", Required = Newtonsoft.Json.Required.Default)] | ||
public string PrincipalDisplayName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets principal id. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)] | ||
public Guid? PrincipalId { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets principal type. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalType", Required = Newtonsoft.Json.Required.Default)] | ||
public string PrincipalType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets resource display name. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceDisplayName", Required = Newtonsoft.Json.Required.Default)] | ||
public string ResourceDisplayName { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets resource id. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)] | ||
public Guid? ResourceId { get; set; } | ||
|
||
} | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
src/Microsoft.Graph/Models/Generated/AttachmentCreateUploadSessionRequestBody.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// ------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. | ||
// ------------------------------------------------------------------------------ | ||
|
||
// **NOTE** This file was generated by a tool and any changes will be overwritten. | ||
// <auto-generated/> | ||
|
||
// Template Source: Templates\CSharp\Model\MethodRequestBody.cs.tt | ||
|
||
namespace Microsoft.Graph | ||
{ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
|
||
/// <summary> | ||
/// The type AttachmentCreateUploadSessionRequestBody. | ||
/// </summary> | ||
[JsonObject(MemberSerialization = MemberSerialization.OptIn)] | ||
public partial class AttachmentCreateUploadSessionRequestBody | ||
{ | ||
|
||
/// <summary> | ||
/// Gets or sets AttachmentItem. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "AttachmentItem", Required = Newtonsoft.Json.Required.Default)] | ||
public AttachmentItem AttachmentItem { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// ------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. | ||
// ------------------------------------------------------------------------------ | ||
|
||
// **NOTE** This file was generated by a tool and any changes will be overwritten. | ||
// <auto-generated/> | ||
|
||
// Template Source: Templates\CSharp\Model\ComplexType.cs.tt | ||
|
||
namespace Microsoft.Graph | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The type AttachmentItem. | ||
/// </summary> | ||
[JsonObject(MemberSerialization = MemberSerialization.OptIn)] | ||
[JsonConverter(typeof(DerivedTypeConverter))] | ||
public partial class AttachmentItem | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="AttachmentItem"/> class. | ||
/// </summary> | ||
public AttachmentItem() | ||
{ | ||
this.ODataType = "microsoft.graph.attachmentItem"; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets attachmentType. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "attachmentType", Required = Newtonsoft.Json.Required.Default)] | ||
public AttachmentType? AttachmentType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets name. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "name", Required = Newtonsoft.Json.Required.Default)] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets size. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "size", Required = Newtonsoft.Json.Required.Default)] | ||
public Int64? Size { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets contentType. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentType", Required = Newtonsoft.Json.Required.Default)] | ||
public string ContentType { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets isInline. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInline", Required = Newtonsoft.Json.Required.Default)] | ||
public bool? IsInline { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets additional data. | ||
/// </summary> | ||
[JsonExtensionData(ReadData = true)] | ||
public IDictionary<string, object> AdditionalData { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets @odata.type. | ||
/// </summary> | ||
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)] | ||
public string ODataType { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// ------------------------------------------------------------------------------ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. | ||
// ------------------------------------------------------------------------------ | ||
|
||
// **NOTE** This file was generated by a tool and any changes will be overwritten. | ||
// <auto-generated/> | ||
|
||
// Template Source: Templates\CSharp\Model\EnumType.cs.tt | ||
|
||
|
||
namespace Microsoft.Graph | ||
{ | ||
using Newtonsoft.Json; | ||
|
||
/// <summary> | ||
/// The enum AttachmentType. | ||
/// </summary> | ||
[JsonConverter(typeof(EnumConverter))] | ||
public enum AttachmentType | ||
{ | ||
|
||
/// <summary> | ||
/// File | ||
/// </summary> | ||
File = 0, | ||
|
||
/// <summary> | ||
/// Item | ||
/// </summary> | ||
Item = 1, | ||
|
||
/// <summary> | ||
/// Reference | ||
/// </summary> | ||
Reference = 2, | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.