Skip to content

Commit

Permalink
Generated models and request builders using Typewriter (#90)
Browse files Browse the repository at this point in the history
* Update generated files with build 2591550
* Update Microsoft.Graph.Beta.csproj
  • Loading branch information
github-actions[bot] authored Mar 20, 2020
1 parent 1be1b49 commit c4e2ca4
Show file tree
Hide file tree
Showing 60 changed files with 2,619 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageReleaseNotes>
</PackageReleaseNotes>
<!-- edit this value to change the current major.minor.patch version -->
<VersionPrefix>0.13.0</VersionPrefix>
<VersionPrefix>0.14.0</VersionPrefix>
<!-- adds a version suffix if the Prerelease environment variable is set. BUILD_BUILDID is an
environment variable set by Azure pipelines from the build. We can use the buildid to correlate
which commit was used to generate the preview build. -->
Expand Down Expand Up @@ -54,4 +54,4 @@
<Folder Include="Exceptions\" />
<Folder Include="Properties\" />
</ItemGroup>
</Project>
</Project>
33 changes: 33 additions & 0 deletions src/Microsoft.Graph/Models/Generated/AuthenticationMethodState.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// ------------------------------------------------------------------------------
// 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 AuthenticationMethodState.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum AuthenticationMethodState
{

/// <summary>
/// Enabled
/// </summary>
Enabled = 0,

/// <summary>
/// Disabled
/// </summary>
Disabled = 1,

}
}
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 AuthenticationMethodTargetType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum AuthenticationMethodTargetType
{

/// <summary>
/// User
/// </summary>
User = 0,

/// <summary>
/// Group
/// </summary>
Group = 1,

/// <summary>
/// Unknown Future Value
/// </summary>
UnknownFutureValue = 2,

}
}
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Call.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ public Call()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "toneInfo", Required = Newtonsoft.Json.Required.Default)]
public ToneInfo ToneInfo { get; set; }

/// <summary>
/// Gets or sets call chain id.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "callChainId", Required = Newtonsoft.Json.Required.Default)]
public string CallChainId { get; set; }

/// <summary>
/// Gets or sets incoming context.
/// </summary>
Expand Down
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 CallLogTeleconferenceDeviceQualityRequestBody.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class CallLogTeleconferenceDeviceQualityRequestBody
{

/// <summary>
/// Gets or sets Quality.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "quality", Required = Newtonsoft.Json.Required.Default)]
public TeleconferenceDeviceQuality Quality { get; set; }

}
}
58 changes: 58 additions & 0 deletions src/Microsoft.Graph/Models/Generated/DirectorySizeQuota.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
// ------------------------------------------------------------------------------
// 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 DirectorySizeQuota.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class DirectorySizeQuota
{
/// <summary>
/// Initializes a new instance of the <see cref="DirectorySizeQuota"/> class.
/// </summary>
public DirectorySizeQuota()
{
this.ODataType = "microsoft.graph.directorySizeQuota";
}

/// <summary>
/// Gets or sets used.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "used", Required = Newtonsoft.Json.Required.Default)]
public Int32? Used { get; set; }

/// <summary>
/// Gets or sets total.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "total", Required = Newtonsoft.Json.Required.Default)]
public Int32? Total { 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; }

}
}
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Models/Generated/DocumentCommentReply.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ public DocumentCommentReply()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "content", Required = Newtonsoft.Json.Required.Default)]
public string Content { get; set; }

/// <summary>
/// Gets or sets location.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "location", Required = Newtonsoft.Json.Required.Default)]
public string Location { get; set; }

}
}

Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ public EmailFileAssessmentRequestObject()

/// <summary>
/// Gets or sets recipient email.
/// The mail recipient whose policies are used to assess the mail.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientEmail", Required = Newtonsoft.Json.Required.Default)]
public string RecipientEmail { get; set; }

/// <summary>
/// Gets or sets destination routing reason.
/// The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "destinationRoutingReason", Required = Newtonsoft.Json.Required.Default)]
public MailDestinationRoutingReason? DestinationRoutingReason { get; set; }

/// <summary>
/// Gets or sets content data.
/// Base64 encoded .eml email file content. The file content cannot fetch back because it isn't stored.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentData", Required = Newtonsoft.Json.Required.Default)]
public string ContentData { get; set; }
Expand Down
64 changes: 64 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Fido2KeyRestrictions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// ------------------------------------------------------------------------------
// 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 Fido2KeyRestrictions.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
[JsonConverter(typeof(DerivedTypeConverter))]
public partial class Fido2KeyRestrictions
{
/// <summary>
/// Initializes a new instance of the <see cref="Fido2KeyRestrictions"/> class.
/// </summary>
public Fido2KeyRestrictions()
{
this.ODataType = "microsoft.graph.fido2KeyRestrictions";
}

/// <summary>
/// Gets or sets isEnforced.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isEnforced", Required = Newtonsoft.Json.Required.Default)]
public bool? IsEnforced { get; set; }

/// <summary>
/// Gets or sets enforcementType.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "enforcementType", Required = Newtonsoft.Json.Required.Default)]
public Fido2RestrictionEnforcementType? EnforcementType { get; set; }

/// <summary>
/// Gets or sets aaGuids.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "aaGuids", Required = Newtonsoft.Json.Required.Default)]
public IEnumerable<string> AaGuids { 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; }

}
}
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 Fido2RestrictionEnforcementType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum Fido2RestrictionEnforcementType
{

/// <summary>
/// Allow
/// </summary>
Allow = 0,

/// <summary>
/// Block
/// </summary>
Block = 1,

/// <summary>
/// Unknown Future Value
/// </summary>
UnknownFutureValue = 2,

}
}
2 changes: 2 additions & 0 deletions src/Microsoft.Graph/Models/Generated/FileAssessmentRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ public FileAssessmentRequestObject()

/// <summary>
/// Gets or sets file name.
/// The file name.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "fileName", Required = Newtonsoft.Json.Required.Default)]
public string FileName { get; set; }

/// <summary>
/// Gets or sets content data.
/// Base64 encoded file content. The file content cannot fetch back because it isn't stored.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentData", Required = Newtonsoft.Json.Required.Default)]
public string ContentData { get; set; }
Expand Down
3 changes: 3 additions & 0 deletions src/Microsoft.Graph/Models/Generated/MailAssessmentRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,21 @@ public MailAssessmentRequestObject()

/// <summary>
/// Gets or sets recipient email.
/// The mail recipient whose policies are used to assess the mail.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientEmail", Required = Newtonsoft.Json.Required.Default)]
public string RecipientEmail { get; set; }

/// <summary>
/// Gets or sets destination routing reason.
/// The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "destinationRoutingReason", Required = Newtonsoft.Json.Required.Default)]
public MailDestinationRoutingReason? DestinationRoutingReason { get; set; }

/// <summary>
/// Gets or sets message uri.
/// The resource URI of the mail message for assessment.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "messageUri", Required = Newtonsoft.Json.Required.Default)]
public string MessageUri { get; set; }
Expand Down
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Models/Generated/OnlineMeeting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ public OnlineMeeting()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "videoTeleconferenceId", Required = Newtonsoft.Json.Required.Default)]
public string VideoTeleconferenceId { get; set; }

/// <summary>
/// Gets or sets external id.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "externalId", Required = Newtonsoft.Json.Required.Default)]
public string ExternalId { get; set; }

}
}

Loading

0 comments on commit c4e2ca4

Please sign in to comment.