Skip to content

Commit

Permalink
Generated models and request builders using Typewriter (#649)
Browse files Browse the repository at this point in the history
* Update generated files with build 2583988
* Bump version to 3.0.1
  • Loading branch information
github-actions[bot] authored Mar 18, 2020
1 parent f784b2e commit 6df97f0
Show file tree
Hide file tree
Showing 307 changed files with 9,627 additions and 8,246 deletions.
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Microsoft.Graph.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<VersionPrefix>3.0.0</VersionPrefix>
<VersionPrefix>3.0.1</VersionPrefix>
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
<!-- VersionPrefix major and patch versions must be manually set. -->
Expand Down Expand Up @@ -47,4 +47,4 @@
</PackagePath>
</None>
</ItemGroup>
</Project>
</Project>
77 changes: 0 additions & 77 deletions src/Microsoft.Graph/Models/Generated/AppRoleAssignment.cs

This file was deleted.

53 changes: 53 additions & 0 deletions src/Microsoft.Graph/Models/Generated/ChangeTrackedEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// ------------------------------------------------------------------------------
// 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 Change Tracked Entity.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class ChangeTrackedEntity : Entity
{

///<summary>
/// The internal ChangeTrackedEntity constructor
///</summary>
protected internal ChangeTrackedEntity()
{
// Don't allow initialization of abstract entity types
}

/// <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 last modified date time.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedDateTime", Required = Newtonsoft.Json.Required.Default)]
public DateTimeOffset? LastModifiedDateTime { get; set; }

/// <summary>
/// Gets or sets last modified by.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "lastModifiedBy", Required = Newtonsoft.Json.Required.Default)]
public IdentitySet LastModifiedBy { 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
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
6 changes: 0 additions & 6 deletions src/Microsoft.Graph/Models/Generated/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,6 @@ public Group()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isArchived", Required = Newtonsoft.Json.Required.Default)]
public bool? IsArchived { get; set; }

/// <summary>
/// Gets or sets app role assignments.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "appRoleAssignments", Required = Newtonsoft.Json.Required.Default)]
public IGroupAppRoleAssignmentsCollectionPage AppRoleAssignments { get; set; }

/// <summary>
/// Gets or sets members.
/// Users and groups that are members of this group. HTTP Methods: GET (supported for all groups), POST (supported for Office 365 groups, security groups and mail-enabled security groups), DELETE (supported for Office 365 groups and security groups) Nullable.
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,49 +16,43 @@ namespace Microsoft.Graph
using Newtonsoft.Json;

/// <summary>
/// The type OAuth2Permission Grant.
/// The type Offer Shift Request.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class OAuth2PermissionGrant : Entity
public partial class OfferShiftRequestObject : ScheduleChangeRequestObject
{

///<summary>
/// The OAuth2PermissionGrant constructor
/// The OfferShiftRequest constructor
///</summary>
public OAuth2PermissionGrant()
public OfferShiftRequestObject()
{
this.ODataType = "microsoft.graph.oAuth2PermissionGrant";
this.ODataType = "microsoft.graph.offerShiftRequest";
}

/// <summary>
/// Gets or sets client id.
/// Gets or sets recipient action message.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "clientId", Required = Newtonsoft.Json.Required.Default)]
public string ClientId { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientActionMessage", Required = Newtonsoft.Json.Required.Default)]
public string RecipientActionMessage { get; set; }

/// <summary>
/// Gets or sets consent type.
/// Gets or sets recipient action date time.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "consentType", Required = Newtonsoft.Json.Required.Default)]
public string ConsentType { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "recipientActionDateTime", Required = Newtonsoft.Json.Required.Default)]
public DateTimeOffset? RecipientActionDateTime { get; set; }

/// <summary>
/// Gets or sets principal id.
/// Gets or sets sender shift id.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "principalId", Required = Newtonsoft.Json.Required.Default)]
public string PrincipalId { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "senderShiftId", Required = Newtonsoft.Json.Required.Default)]
public string SenderShiftId { get; set; }

/// <summary>
/// Gets or sets resource id.
/// Gets or sets recipient user id.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "resourceId", Required = Newtonsoft.Json.Required.Default)]
public string ResourceId { get; set; }

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

}
}
Expand Down
53 changes: 53 additions & 0 deletions src/Microsoft.Graph/Models/Generated/OpenShift.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// ------------------------------------------------------------------------------
// 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 Open Shift.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class OpenShift : ChangeTrackedEntity
{

///<summary>
/// The OpenShift constructor
///</summary>
public OpenShift()
{
this.ODataType = "microsoft.graph.openShift";
}

/// <summary>
/// Gets or sets shared open shift.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "sharedOpenShift", Required = Newtonsoft.Json.Required.Default)]
public OpenShiftItem SharedOpenShift { get; set; }

/// <summary>
/// Gets or sets draft open shift.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "draftOpenShift", Required = Newtonsoft.Json.Required.Default)]
public OpenShiftItem DraftOpenShift { get; set; }

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

}
}

41 changes: 41 additions & 0 deletions src/Microsoft.Graph/Models/Generated/OpenShiftChangeRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// ------------------------------------------------------------------------------
// 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 Open Shift Change Request.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class OpenShiftChangeRequestObject : ScheduleChangeRequestObject
{

///<summary>
/// The internal OpenShiftChangeRequest constructor
///</summary>
protected internal OpenShiftChangeRequestObject()
{
// Don't allow initialization of abstract entity types
}

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

}
}

Loading

0 comments on commit 6df97f0

Please sign in to comment.