Skip to content

Commit

Permalink
Generated models and request builders using Typewriter (#96)
Browse files Browse the repository at this point in the history
* Update generated files with build 2747536
* Updated PR GH action
  • Loading branch information
github-actions[bot] authored Apr 17, 2020
1 parent f9ade00 commit 33c1fcf
Show file tree
Hide file tree
Showing 125 changed files with 8,043 additions and 187 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/create-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ on:
push:
branches:
- "beta/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 beta 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/beta_metadata.xml) \n\n cc: @darrelmiller"
REVIEWERS: peombwa,ddyett,zengin
ASSIGNEDTO: MIchaelMainer
LABELS: generated
BASE: master
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Graph/Microsoft.Graph.Beta.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>Microsoft Graph beta client library allows you to target the Microsoft Graph /beta endpoint. You can call Office 365, Azure AD and other Microsoft services through a single unified developer experience.</Description>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
Expand All @@ -22,7 +22,7 @@
<PackageReleaseNotes>
</PackageReleaseNotes>
<!-- edit this value to change the current major.minor.patch version -->
<VersionPrefix>0.15.0</VersionPrefix>
<VersionPrefix>0.16.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>
71 changes: 71 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Authentication.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// ------------------------------------------------------------------------------
// 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 Authentication.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class Authentication : Entity
{

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

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

/// <summary>
/// Gets or sets sms methods.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "smsMethods", Required = Newtonsoft.Json.Required.Default)]
public IAuthenticationSmsMethodsCollectionPage SmsMethods { get; set; }

/// <summary>
/// Gets or sets voice methods.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "voiceMethods", Required = Newtonsoft.Json.Required.Default)]
public IAuthenticationVoiceMethodsCollectionPage VoiceMethods { get; set; }

/// <summary>
/// Gets or sets phone methods.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "phoneMethods", Required = Newtonsoft.Json.Required.Default)]
public IAuthenticationPhoneMethodsCollectionPage PhoneMethods { get; set; }

/// <summary>
/// Gets or sets password methods.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "passwordMethods", Required = Newtonsoft.Json.Required.Default)]
public IAuthenticationPasswordMethodsCollectionPage PasswordMethods { get; set; }

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

}
}

35 changes: 35 additions & 0 deletions src/Microsoft.Graph/Models/Generated/AuthenticationMethod.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 Authentication Method.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AuthenticationMethod : Entity
{

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

}
}

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\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 AuthenticationMethodResetPasswordRequestBody.
/// </summary>
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
public partial class AuthenticationMethodResetPasswordRequestBody
{

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

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

}
}
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\EnumType.cs.tt


namespace Microsoft.Graph
{
using Newtonsoft.Json;

/// <summary>
/// The enum AuthenticationMethodSignInState.
/// </summary>
[JsonConverter(typeof(EnumConverter))]
public enum AuthenticationMethodSignInState
{

/// <summary>
/// Not Supported
/// </summary>
NotSupported = 0,

/// <summary>
/// Not Allowed By Policy
/// </summary>
NotAllowedByPolicy = 1,

/// <summary>
/// Not Enabled
/// </summary>
NotEnabled = 2,

/// <summary>
/// Phone Number Not Unique
/// </summary>
PhoneNumberNotUnique = 3,

/// <summary>
/// Ready
/// </summary>
Ready = 4,

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

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

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

/// <summary>
/// Mobile
/// </summary>
Mobile = 0,

/// <summary>
/// Alternate Mobile
/// </summary>
AlternateMobile = 1,

/// <summary>
/// Office
/// </summary>
Office = 2,

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

}
}
6 changes: 6 additions & 0 deletions src/Microsoft.Graph/Models/Generated/Calendar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public Calendar()

/// <summary>
/// Gets or sets is default calendar.
/// True if this is the default calendar where new events are created by default, false otherwise.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isDefaultCalendar", Required = Newtonsoft.Json.Required.Default)]
public bool? IsDefaultCalendar { get; set; }
Expand Down Expand Up @@ -111,24 +112,28 @@ public Calendar()

/// <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; }
Expand All @@ -149,6 +154,7 @@ public Calendar()

/// <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; }
Expand Down
5 changes: 5 additions & 0 deletions src/Microsoft.Graph/Models/Generated/CalendarPermission.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,35 @@ public 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; }
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.Graph/Models/Generated/Call.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public Call()

/// <summary>
/// Gets or sets requested modalities.
/// The list of requested modalities.
/// The list of requested modalities. Possible values are: unknown, audio, video, videoBasedScreenSharing, data.
/// </summary>
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "requestedModalities", Required = Newtonsoft.Json.Required.Default)]
public IEnumerable<Modality> RequestedModalities { get; set; }
Expand Down
Loading

0 comments on commit 33c1fcf

Please sign in to comment.