Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders using Typewriter #670

Merged
merged 5 commits into from
Apr 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/create-v1.0-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ on:
push:
branches:
- "v1.0/pipelinebuild/*"
paths:
- 'src/**/*.cs'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "create-pull-request"
create-pull-request:
# GitHub Actions don't support skip ci yet like Azure Pipelines so this check will do the same.
if: github.event_name == 'push' && !contains(toJson(github.event.commits), 'NO_CI') && !contains(toJson(github.event.commits), '[ci skip]') && !contains(toJson(github.event.commits), '[skip ci]')

# The type of runner that the job will run on
runs-on: ubuntu-latest
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
Expand All @@ -32,9 +37,9 @@ jobs:
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE_TITLE: Generated models and request builders using Typewriter
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. \n\n cc: @darrelmiller"
REVIEWERS: peombwa,ddyett
MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter
MESSAGE_BODY: "This pull request was automatically created by the GitHub Action, **${{github.workflow}}**. \n\n The commit hash is _${{github.sha}}_. \n\n **Important** Check for unexpected deletions or changes in this PR. \n\n - [ ] Check that the changes match the changes in the captured commit for [v1.0_metadata.xml](https://github.com/microsoftgraph/msgraph-metadata/blob/master/v1.0_metadata.xml) \n\n cc: @darrelmiller"
REVIEWERS: peombwa,ddyett,zengin
ASSIGNEDTO: MIchaelMainer
LABELS: generated
BASE: dev
Expand Down
2 changes: 1 addition & 1 deletion 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.2.0</VersionPrefix>
<VersionPrefix>3.3.0</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
35 changes: 35 additions & 0 deletions src/Microsoft.Graph/Models/Generated/ActivityBasedTimeoutPolicy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ------------------------------------------------------------------------------
// 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 Activity Based Timeout Policy.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class ActivityBasedTimeoutPolicy : StsPolicy
{

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

}
}

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

/// <summary>
/// Gets or sets token lifetime policies.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tokenLifetimePolicies", Required = Newtonsoft.Json.Required.Default)]
public IApplicationTokenLifetimePoliciesCollectionWithReferencesPage TokenLifetimePolicies { get; set; }

/// <summary>
/// Gets or sets token issuance policies.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tokenIssuancePolicies", Required = Newtonsoft.Json.Required.Default)]
public IApplicationTokenIssuancePoliciesCollectionWithReferencesPage TokenIssuancePolicies { get; set; }

}
}

35 changes: 35 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,34 @@ public Calendar()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "owner", Required = Newtonsoft.Json.Required.Default)]
public EmailAddress Owner { get; set; }

/// <summary>
/// Gets or sets allowed online meeting providers.
/// Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "allowedOnlineMeetingProviders", Required = Newtonsoft.Json.Required.Default)]
public IEnumerable<OnlineMeetingProviderType> AllowedOnlineMeetingProviders { get; set; }

/// <summary>
/// Gets or sets default online meeting provider.
/// The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "defaultOnlineMeetingProvider", Required = Newtonsoft.Json.Required.Default)]
public OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; }

/// <summary>
/// Gets or sets is tallying responses.
/// Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isTallyingResponses", Required = Newtonsoft.Json.Required.Default)]
public bool? IsTallyingResponses { get; set; }

/// <summary>
/// Gets or sets is removable.
/// Indicates whether this user calendar can be deleted from the user mailbox.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isRemovable", Required = Newtonsoft.Json.Required.Default)]
public bool? IsRemovable { get; set; }

/// <summary>
/// Gets or sets single value extended properties.
/// The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
Expand All @@ -93,6 +121,13 @@ public Calendar()
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "multiValueExtendedProperties", Required = Newtonsoft.Json.Required.Default)]
public ICalendarMultiValueExtendedPropertiesCollectionPage MultiValueExtendedProperties { get; set; }

/// <summary>
/// Gets or sets calendar permissions.
/// The permissions of the users with whom the calendar is shared.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "calendarPermissions", Required = Newtonsoft.Json.Required.Default)]
public ICalendarCalendarPermissionsCollectionPage CalendarPermissions { get; set; }

/// <summary>
/// Gets or sets events.
/// The events in the calendar. Navigation property. Read-only.
Expand Down
70 changes: 70 additions & 0 deletions src/Microsoft.Graph/Models/Generated/CalendarPermission.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
// ------------------------------------------------------------------------------
// 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 Calendar Permission.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class CalendarPermission : Entity
{

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

/// <summary>
/// Gets or sets email address.
/// Represents a sharee or delegate who has access to the calendar. For the 'My Organization' sharee, the address property is null. Read-only.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "emailAddress", Required = Newtonsoft.Json.Required.Default)]
public EmailAddress EmailAddress { get; set; }

/// <summary>
/// Gets or sets is removable.
/// True if the user can be removed from the list of sharees or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You cannot remove 'My organization' as a sharee to a calendar.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isRemovable", Required = Newtonsoft.Json.Required.Default)]
public bool? IsRemovable { get; set; }

/// <summary>
/// Gets or sets is inside organization.
/// True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInsideOrganization", Required = Newtonsoft.Json.Required.Default)]
public bool? IsInsideOrganization { get; set; }

/// <summary>
/// Gets or sets role.
/// Current permission level of the calendar sharee or delegate.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "role", Required = Newtonsoft.Json.Required.Default)]
public CalendarRoleType? Role { get; set; }

/// <summary>
/// Gets or sets allowed roles.
/// List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "allowedRoles", Required = Newtonsoft.Json.Required.Default)]
public IEnumerable<CalendarRoleType> AllowedRoles { get; set; }

}
}

63 changes: 63 additions & 0 deletions src/Microsoft.Graph/Models/Generated/CalendarRoleType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// ------------------------------------------------------------------------------
// 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 CalendarRoleType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum CalendarRoleType
{

/// <summary>
/// None
/// </summary>
None = 0,

/// <summary>
/// Free Busy Read
/// </summary>
FreeBusyRead = 1,

/// <summary>
/// Limited Read
/// </summary>
LimitedRead = 2,

/// <summary>
/// Read
/// </summary>
Read = 3,

/// <summary>
/// Write
/// </summary>
Write = 4,

/// <summary>
/// Delegate Without Private Event Access
/// </summary>
DelegateWithoutPrivateEventAccess = 5,

/// <summary>
/// Delegate With Private Event Access
/// </summary>
DelegateWithPrivateEventAccess = 6,

/// <summary>
/// Custom
/// </summary>
Custom = 7,

}
}
43 changes: 43 additions & 0 deletions src/Microsoft.Graph/Models/Generated/CalendarSharingAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// ------------------------------------------------------------------------------
// 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 CalendarSharingAction.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum CalendarSharingAction
{

/// <summary>
/// Accept
/// </summary>
Accept = 0,

/// <summary>
/// Accept And View Calendar
/// </summary>
AcceptAndViewCalendar = 1,

/// <summary>
/// View Calendar
/// </summary>
ViewCalendar = 2,

/// <summary>
/// Add This Calendar
/// </summary>
AddThisCalendar = 3,

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

/// <summary>
/// Primary
/// </summary>
Primary = 0,

/// <summary>
/// Secondary
/// </summary>
Secondary = 1,

}
}
28 changes: 28 additions & 0 deletions src/Microsoft.Graph/Models/Generated/CalendarSharingActionType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// ------------------------------------------------------------------------------
// 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 CalendarSharingActionType.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum CalendarSharingActionType
{

/// <summary>
/// Accept
/// </summary>
Accept = 0,

}
}
Loading