Skip to content

Commit a9219fc

Browse files
Generated models and request builders using Typewriter (#670)
* Update generated files with build 2738952 * Add CI skip, added Mustafa, improve PR title
1 parent 5ddc999 commit a9219fc

File tree

196 files changed

+13429
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+13429
-15
lines changed

.github/workflows/create-v1.0-pull-request.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ on:
1313
push:
1414
branches:
1515
- "v1.0/pipelinebuild/*"
16+
paths:
17+
- 'src/**/*.cs'
1618

1719
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1820
jobs:
1921
# This workflow contains a single job called "create-pull-request"
2022
create-pull-request:
23+
# GitHub Actions don't support skip ci yet like Azure Pipelines so this check will do the same.
24+
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]')
25+
2126
# The type of runner that the job will run on
2227
runs-on: ubuntu-latest
2328
# https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md
@@ -32,9 +37,9 @@ jobs:
3237
shell: bash
3338
env:
3439
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
MESSAGE_TITLE: Generated models and request builders using Typewriter
36-
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"
37-
REVIEWERS: peombwa,ddyett
40+
MESSAGE_TITLE: Generated v1.0 models and request builders using Typewriter
41+
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"
42+
REVIEWERS: peombwa,ddyett,zengin
3843
ASSIGNEDTO: MIchaelMainer
3944
LABELS: generated
4045
BASE: dev

src/Microsoft.Graph/Microsoft.Graph.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<DelaySign>false</DelaySign>
2020
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2121
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
22-
<VersionPrefix>3.2.0</VersionPrefix>
22+
<VersionPrefix>3.3.0</VersionPrefix>
2323
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
2424
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
2525
<!-- VersionPrefix major and patch versions must be manually set. -->
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The type Activity Based Timeout Policy.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class ActivityBasedTimeoutPolicy : StsPolicy
23+
{
24+
25+
///<summary>
26+
/// The ActivityBasedTimeoutPolicy constructor
27+
///</summary>
28+
public ActivityBasedTimeoutPolicy()
29+
{
30+
this.ODataType = "microsoft.graph.activityBasedTimeoutPolicy";
31+
}
32+
33+
}
34+
}
35+

src/Microsoft.Graph/Models/Generated/Application.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,18 @@ public Application()
223223
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "owners", Required = Newtonsoft.Json.Required.Default)]
224224
public IApplicationOwnersCollectionWithReferencesPage Owners { get; set; }
225225

226+
/// <summary>
227+
/// Gets or sets token lifetime policies.
228+
/// </summary>
229+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tokenLifetimePolicies", Required = Newtonsoft.Json.Required.Default)]
230+
public IApplicationTokenLifetimePoliciesCollectionWithReferencesPage TokenLifetimePolicies { get; set; }
231+
232+
/// <summary>
233+
/// Gets or sets token issuance policies.
234+
/// </summary>
235+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "tokenIssuancePolicies", Required = Newtonsoft.Json.Required.Default)]
236+
public IApplicationTokenIssuancePoliciesCollectionWithReferencesPage TokenIssuancePolicies { get; set; }
237+
226238
}
227239
}
228240

src/Microsoft.Graph/Models/Generated/Calendar.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,34 @@ public Calendar()
7979
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "owner", Required = Newtonsoft.Json.Required.Default)]
8080
public EmailAddress Owner { get; set; }
8181

82+
/// <summary>
83+
/// Gets or sets allowed online meeting providers.
84+
/// Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
85+
/// </summary>
86+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "allowedOnlineMeetingProviders", Required = Newtonsoft.Json.Required.Default)]
87+
public IEnumerable<OnlineMeetingProviderType> AllowedOnlineMeetingProviders { get; set; }
88+
89+
/// <summary>
90+
/// Gets or sets default online meeting provider.
91+
/// The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
92+
/// </summary>
93+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "defaultOnlineMeetingProvider", Required = Newtonsoft.Json.Required.Default)]
94+
public OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; }
95+
96+
/// <summary>
97+
/// Gets or sets is tallying responses.
98+
/// Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.
99+
/// </summary>
100+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isTallyingResponses", Required = Newtonsoft.Json.Required.Default)]
101+
public bool? IsTallyingResponses { get; set; }
102+
103+
/// <summary>
104+
/// Gets or sets is removable.
105+
/// Indicates whether this user calendar can be deleted from the user mailbox.
106+
/// </summary>
107+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isRemovable", Required = Newtonsoft.Json.Required.Default)]
108+
public bool? IsRemovable { get; set; }
109+
82110
/// <summary>
83111
/// Gets or sets single value extended properties.
84112
/// The collection of single-value extended properties defined for the calendar. Read-only. Nullable.
@@ -93,6 +121,13 @@ public Calendar()
93121
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "multiValueExtendedProperties", Required = Newtonsoft.Json.Required.Default)]
94122
public ICalendarMultiValueExtendedPropertiesCollectionPage MultiValueExtendedProperties { get; set; }
95123

124+
/// <summary>
125+
/// Gets or sets calendar permissions.
126+
/// The permissions of the users with whom the calendar is shared.
127+
/// </summary>
128+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "calendarPermissions", Required = Newtonsoft.Json.Required.Default)]
129+
public ICalendarCalendarPermissionsCollectionPage CalendarPermissions { get; set; }
130+
96131
/// <summary>
97132
/// Gets or sets events.
98133
/// The events in the calendar. Navigation property. Read-only.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EntityType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Runtime.Serialization;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The type Calendar Permission.
20+
/// </summary>
21+
[JsonObject(MemberSerialization = MemberSerialization.OptIn)]
22+
public partial class CalendarPermission : Entity
23+
{
24+
25+
///<summary>
26+
/// The CalendarPermission constructor
27+
///</summary>
28+
public CalendarPermission()
29+
{
30+
this.ODataType = "microsoft.graph.calendarPermission";
31+
}
32+
33+
/// <summary>
34+
/// Gets or sets email address.
35+
/// Represents a sharee or delegate who has access to the calendar. For the 'My Organization' sharee, the address property is null. Read-only.
36+
/// </summary>
37+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "emailAddress", Required = Newtonsoft.Json.Required.Default)]
38+
public EmailAddress EmailAddress { get; set; }
39+
40+
/// <summary>
41+
/// Gets or sets is removable.
42+
/// 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.
43+
/// </summary>
44+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isRemovable", Required = Newtonsoft.Json.Required.Default)]
45+
public bool? IsRemovable { get; set; }
46+
47+
/// <summary>
48+
/// Gets or sets is inside organization.
49+
/// True if the user in context (sharee or delegate) is inside the same organization as the calendar owner.
50+
/// </summary>
51+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInsideOrganization", Required = Newtonsoft.Json.Required.Default)]
52+
public bool? IsInsideOrganization { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets role.
56+
/// Current permission level of the calendar sharee or delegate.
57+
/// </summary>
58+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "role", Required = Newtonsoft.Json.Required.Default)]
59+
public CalendarRoleType? Role { get; set; }
60+
61+
/// <summary>
62+
/// Gets or sets allowed roles.
63+
/// List of allowed sharing or delegating permission levels for the calendar. Possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom.
64+
/// </summary>
65+
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "allowedRoles", Required = Newtonsoft.Json.Required.Default)]
66+
public IEnumerable<CalendarRoleType> AllowedRoles { get; set; }
67+
68+
}
69+
}
70+
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
9+
10+
11+
namespace Microsoft.Graph
12+
{
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// The enum CalendarRoleType.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum CalendarRoleType
20+
{
21+
22+
/// <summary>
23+
/// None
24+
/// </summary>
25+
None = 0,
26+
27+
/// <summary>
28+
/// Free Busy Read
29+
/// </summary>
30+
FreeBusyRead = 1,
31+
32+
/// <summary>
33+
/// Limited Read
34+
/// </summary>
35+
LimitedRead = 2,
36+
37+
/// <summary>
38+
/// Read
39+
/// </summary>
40+
Read = 3,
41+
42+
/// <summary>
43+
/// Write
44+
/// </summary>
45+
Write = 4,
46+
47+
/// <summary>
48+
/// Delegate Without Private Event Access
49+
/// </summary>
50+
DelegateWithoutPrivateEventAccess = 5,
51+
52+
/// <summary>
53+
/// Delegate With Private Event Access
54+
/// </summary>
55+
DelegateWithPrivateEventAccess = 6,
56+
57+
/// <summary>
58+
/// Custom
59+
/// </summary>
60+
Custom = 7,
61+
62+
}
63+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
9+
10+
11+
namespace Microsoft.Graph
12+
{
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// The enum CalendarSharingAction.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum CalendarSharingAction
20+
{
21+
22+
/// <summary>
23+
/// Accept
24+
/// </summary>
25+
Accept = 0,
26+
27+
/// <summary>
28+
/// Accept And View Calendar
29+
/// </summary>
30+
AcceptAndViewCalendar = 1,
31+
32+
/// <summary>
33+
/// View Calendar
34+
/// </summary>
35+
ViewCalendar = 2,
36+
37+
/// <summary>
38+
/// Add This Calendar
39+
/// </summary>
40+
AddThisCalendar = 3,
41+
42+
}
43+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
9+
10+
11+
namespace Microsoft.Graph
12+
{
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// The enum CalendarSharingActionImportance.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum CalendarSharingActionImportance
20+
{
21+
22+
/// <summary>
23+
/// Primary
24+
/// </summary>
25+
Primary = 0,
26+
27+
/// <summary>
28+
/// Secondary
29+
/// </summary>
30+
Secondary = 1,
31+
32+
}
33+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// ------------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
3+
// ------------------------------------------------------------------------------
4+
5+
// **NOTE** This file was generated by a tool and any changes will be overwritten.
6+
// <auto-generated/>
7+
8+
// Template Source: Templates\CSharp\Model\EnumType.cs.tt
9+
10+
11+
namespace Microsoft.Graph
12+
{
13+
using Newtonsoft.Json;
14+
15+
/// <summary>
16+
/// The enum CalendarSharingActionType.
17+
/// </summary>
18+
[JsonConverter(typeof(EnumConverter))]
19+
public enum CalendarSharingActionType
20+
{
21+
22+
/// <summary>
23+
/// Accept
24+
/// </summary>
25+
Accept = 0,
26+
27+
}
28+
}

0 commit comments

Comments
 (0)