Skip to content

Commit

Permalink
Generated models and request builders using Typewriter (#20)
Browse files Browse the repository at this point in the history
* Update generated files with build 1459608
  • Loading branch information
MIchaelMainer authored Jul 2, 2019
1 parent cca4d85 commit 8d3a3d1
Show file tree
Hide file tree
Showing 1,206 changed files with 19,189 additions and 2,062 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.6.0</VersionPrefix>
<VersionPrefix>0.7.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>
38 changes: 38 additions & 0 deletions src/Microsoft.Graph/Models/Generated/ActivityType.cs
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 ActivityType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum ActivityType
{

/// <summary>
/// Signin
/// </summary>
Signin = 0,

/// <summary>
/// User
/// </summary>
User = 1,

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

}
}
38 changes: 38 additions & 0 deletions src/Microsoft.Graph/Models/Generated/AddFooter.cs
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\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 AddFooter.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AddFooter : MarkContent
{

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

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

}
}
38 changes: 38 additions & 0 deletions src/Microsoft.Graph/Models/Generated/AddHeader.cs
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\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 AddHeader.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AddHeader : MarkContent
{

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

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

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,17 @@ namespace Microsoft.Graph
using Newtonsoft.Json;

/// <summary>
/// The type EncryptAction.
/// The type AddWatermark.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class EncryptAction : LabelActionBase
public partial class AddWatermark : MarkContent
{

/// <summary>
/// Initializes a new instance of the <see cref="EncryptAction"/> class.
/// Gets or sets orientation.
/// </summary>
public EncryptAction()
{
this.ODataType = "microsoft.graph.encryptAction";
}

[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "orientation", Required = Newtonsoft.Json.Required.Default)]
public PageOrientation? Orientation { get; set; }

}
}
38 changes: 38 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Alignment.cs
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 Alignment.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum Alignment
{

/// <summary>
/// Left
/// </summary>
Left = 0,

/// <summary>
/// Right
/// </summary>
Right = 1,

/// <summary>
/// Center
/// </summary>
Center = 2,

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class AndroidEnterpriseWiFiConfiguration : AndroidWiFiConfigurati

/// <summary>
/// Gets or sets eap type.
/// Indicates the type of EAP protocol set on the the Wi-Fi endpoint (router).
/// Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "eapType", Required = Newtonsoft.Json.Required.Default)]
public AndroidEapType? EapType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class AndroidForWorkEnterpriseWiFiConfiguration : AndroidForWorkW

/// <summary>
/// Gets or sets eap type.
/// Indicates the type of EAP protocol set on the the Wi-Fi endpoint (router).
/// Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "eapType", Required = Newtonsoft.Json.Required.Default)]
public AndroidEapType? EapType { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@ public enum AndroidWiFiSecurityType
/// </summary>
WpaEnterprise = 1,

/// <summary>
/// Wpa2Enterprise
/// </summary>
Wpa2Enterprise = 2,

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public partial class AndroidWorkProfileEnterpriseWiFiConfiguration : AndroidWork

/// <summary>
/// Gets or sets eap type.
/// Indicates the type of EAP protocol set on the the Wi-Fi endpoint (router).
/// Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "eapType", Required = Newtonsoft.Json.Required.Default)]
public AndroidEapType? EapType { get; set; }
Expand Down
48 changes: 48 additions & 0 deletions src/Microsoft.Graph/Models/Generated/AppInstallControlType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// ------------------------------------------------------------------------------
// 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 AppInstallControlType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum AppInstallControlType
{

/// <summary>
/// Not Configured
/// </summary>
NotConfigured = 0,

/// <summary>
/// Anywhere
/// </summary>
Anywhere = 1,

/// <summary>
/// Store Only
/// </summary>
StoreOnly = 2,

/// <summary>
/// Recommendations
/// </summary>
Recommendations = 3,

/// <summary>
/// Prefer Store
/// </summary>
PreferStore = 4,

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// ------------------------------------------------------------------------------
// 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 Vulnerability Managed Device.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AppVulnerabilityManagedDevice : Entity
{

/// <summary>
/// Gets or sets managed device id.
/// The Intune managed device ID.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "managedDeviceId", Required = Newtonsoft.Json.Required.Default)]
public string ManagedDeviceId { get; set; }

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

/// <summary>
/// Gets or sets last sync date time.
/// The created date.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastSyncDateTime", Required = Newtonsoft.Json.Required.Default)]
public DateTimeOffset? LastSyncDateTime { get; set; }

}
}

Loading

0 comments on commit 8d3a3d1

Please sign in to comment.