Skip to content

Commit 92d6331

Browse files
authored
Merge pull request #1478 from microsoftgraph/v1.0/pipelinebuild/85887
Generated v1.0 models and request builders using Typewriter
2 parents c34bdb5 + bd64d39 commit 92d6331

33 files changed

Lines changed: 1894 additions & 7 deletions

src/Microsoft.Graph/Generated/model/AccessPackageAssignmentRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public partial class AccessPackageAssignmentRequestObject : Entity
3737

3838
/// <summary>
3939
/// Gets or sets request type.
40-
/// The type of the request. The possible values are: notSpecified, userAdd, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd, unknownFutureValue. A request from the user themselves would have requestType of UserAdd or UserRemove. This property cannot be changed once set.
40+
/// The type of the request. The possible values are: notSpecified, userAdd, UserExtend, userUpdate, userRemove, adminAdd, adminUpdate, adminRemove, systemAdd, systemUpdate, systemRemove, onBehalfAdd, unknownFutureValue. A request from the user themselves would have requestType of userAdd, userUpdate or userRemove. This property cannot be changed once set.
4141
/// </summary>
4242
[JsonPropertyName("requestType")]
4343
public AccessPackageRequestType? RequestType { get; set; }
@@ -72,7 +72,7 @@ public partial class AccessPackageAssignmentRequestObject : Entity
7272

7373
/// <summary>
7474
/// Gets or sets assignment.
75-
/// For a requestType of UserAdd or AdminAdd, this is an access package assignment requested to be created. For a requestType of UserRemove, AdminRemove or SystemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
75+
/// For a requestType of userAdd or adminAdd, this is an access package assignment requested to be created. For a requestType of userRemove, adminRemove or systemRemove, this has the id property of an existing assignment to be removed. Supports $expand.
7676
/// </summary>
7777
[JsonPropertyName("assignment")]
7878
public AccessPackageAssignment Assignment { get; set; }

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ public Application()
7777
[JsonPropertyName("createdDateTime")]
7878
public DateTimeOffset? CreatedDateTime { get; set; }
7979

80+
/// <summary>
81+
/// Gets or sets default redirect uri.
82+
/// </summary>
83+
[JsonPropertyName("defaultRedirectUri")]
84+
public string DefaultRedirectUri { get; set; }
85+
8086
/// <summary>
8187
/// Gets or sets description.
8288
/// Free text field to provide a description of the application object to end users. The maximum allowed size is 1024 characters. Supports $filter (eq, ne, not, ge, le, startsWith) and $search.
@@ -281,7 +287,7 @@ public Application()
281287

282288
/// <summary>
283289
/// Gets or sets federated identity credentials.
284-
/// Federated identities for applications. Supports $expand and $filter (eq when counting empty collections).
290+
/// Federated identities for applications. Supports $expand and $filter (startsWith, and eq, ne when counting empty collections and only with advanced query parameters).
285291
/// </summary>
286292
[JsonPropertyName("federatedIdentityCredentials")]
287293
public IApplicationFederatedIdentityCredentialsCollectionPage FederatedIdentityCredentials { get; set; }

src/Microsoft.Graph/Generated/model/Chat.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,19 @@ public partial class Chat : Entity
112112
[JsonConverter(typeof(NextLinkConverter))]
113113
public string MessagesNextLink { get; set; }
114114

115+
/// <summary>
116+
/// Gets or sets pinned messages.
117+
/// </summary>
118+
[JsonPropertyName("pinnedMessages")]
119+
public IChatPinnedMessagesCollectionPage PinnedMessages { get; set; }
120+
121+
/// <summary>
122+
/// Gets or sets pinnedMessagesNextLink.
123+
/// </summary>
124+
[JsonPropertyName("pinnedMessages@odata.nextLink")]
125+
[JsonConverter(typeof(NextLinkConverter))]
126+
public string PinnedMessagesNextLink { get; set; }
127+
115128
/// <summary>
116129
/// Gets or sets tabs.
117130
/// A collection of all the tabs in the chat. Nullable.
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: ComplexType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Text.Json.Serialization;
16+
17+
/// <summary>
18+
/// The type MessagePinnedEventMessageDetail.
19+
/// </summary>
20+
public partial class MessagePinnedEventMessageDetail : EventMessageDetail
21+
{
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="MessagePinnedEventMessageDetail"/> class.
24+
/// </summary>
25+
public MessagePinnedEventMessageDetail()
26+
{
27+
this.ODataType = "microsoft.graph.messagePinnedEventMessageDetail";
28+
}
29+
30+
/// <summary>
31+
/// Gets or sets eventDateTime.
32+
/// </summary>
33+
[JsonPropertyName("eventDateTime")]
34+
public DateTimeOffset? EventDateTime { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets initiator.
38+
/// </summary>
39+
[JsonPropertyName("initiator")]
40+
public IdentitySet Initiator { get; set; }
41+
42+
}
43+
}
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: ComplexType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Text.Json.Serialization;
16+
17+
/// <summary>
18+
/// The type MessageUnpinnedEventMessageDetail.
19+
/// </summary>
20+
public partial class MessageUnpinnedEventMessageDetail : EventMessageDetail
21+
{
22+
/// <summary>
23+
/// Initializes a new instance of the <see cref="MessageUnpinnedEventMessageDetail"/> class.
24+
/// </summary>
25+
public MessageUnpinnedEventMessageDetail()
26+
{
27+
this.ODataType = "microsoft.graph.messageUnpinnedEventMessageDetail";
28+
}
29+
30+
/// <summary>
31+
/// Gets or sets eventDateTime.
32+
/// </summary>
33+
[JsonPropertyName("eventDateTime")]
34+
public DateTimeOffset? EventDateTime { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets initiator.
38+
/// </summary>
39+
[JsonPropertyName("initiator")]
40+
public IdentitySet Initiator { get; set; }
41+
42+
}
43+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: EntityType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Text.Json.Serialization;
16+
17+
/// <summary>
18+
/// The type Pinned Chat Message Info.
19+
/// </summary>
20+
public partial class PinnedChatMessageInfo : Entity
21+
{
22+
23+
/// <summary>
24+
/// Gets or sets message.
25+
/// </summary>
26+
[JsonPropertyName("message")]
27+
public ChatMessage Message { get; set; }
28+
29+
}
30+
}
31+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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: ComplexType.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System;
13+
using System.Collections.Generic;
14+
using System.IO;
15+
using System.Text.Json.Serialization;
16+
17+
/// <summary>
18+
/// The type RedirectUriSettings.
19+
/// </summary>
20+
[JsonConverter(typeof(DerivedTypeConverter<RedirectUriSettings>))]
21+
public partial class RedirectUriSettings
22+
{
23+
24+
/// <summary>
25+
/// Gets or sets index.
26+
/// </summary>
27+
[JsonPropertyName("index")]
28+
public Int32? Index { get; set; }
29+
30+
/// <summary>
31+
/// Gets or sets uri.
32+
/// </summary>
33+
[JsonPropertyName("uri")]
34+
public string Uri { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets additional data.
38+
/// </summary>
39+
[JsonExtensionData]
40+
public IDictionary<string, object> AdditionalData { get; set; }
41+
42+
/// <summary>
43+
/// Gets or sets @odata.type.
44+
/// </summary>
45+
[JsonPropertyName("@odata.type")]
46+
public string ODataType { get; set; }
47+
48+
}
49+
}

src/Microsoft.Graph/Generated/model/RiskDetection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public partial class RiskDetection : Entity
9393

9494
/// <summary>
9595
/// Gets or sets risk detail.
96-
/// Details of the detected risk. Possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue.
96+
/// Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, m365DAdminDismissedDetection. Note that you must use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: m365DAdminDismissedDetection.
9797
/// </summary>
9898
[JsonPropertyName("riskDetail")]
9999
public RiskDetail? RiskDetail { get; set; }

src/Microsoft.Graph/Generated/model/WebApplication.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ public partial class WebApplication
4949
[JsonPropertyName("redirectUris")]
5050
public IEnumerable<string> RedirectUris { get; set; }
5151

52+
/// <summary>
53+
/// Gets or sets redirectUriSettings.
54+
/// </summary>
55+
[JsonPropertyName("redirectUriSettings")]
56+
public IEnumerable<RedirectUriSettings> RedirectUriSettings { get; set; }
57+
5258
/// <summary>
5359
/// Gets or sets additional data.
5460
/// </summary>
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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: EntityReferenceRequest.cs.tt
9+
10+
namespace Microsoft.Graph
11+
{
12+
using System.Collections.Generic;
13+
using System.Net.Http;
14+
using System.Threading;
15+
16+
/// <summary>
17+
/// The type ChatMessageReferenceRequest.
18+
/// </summary>
19+
public partial class ChatMessageReferenceRequest : BaseRequest, IChatMessageReferenceRequest
20+
{
21+
/// <summary>
22+
/// Constructs a new ChatMessageReferenceRequest.
23+
/// </summary>
24+
/// <param name="requestUrl">The URL for the built request.</param>
25+
/// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
26+
/// <param name="options">Query and header option name value pairs for the request.</param>
27+
public ChatMessageReferenceRequest(
28+
string requestUrl,
29+
IBaseClient client,
30+
IEnumerable<Option> options)
31+
: base(requestUrl, client, options)
32+
{
33+
}
34+
35+
/// <summary>
36+
/// Deletes the specified ChatMessage reference.
37+
/// </summary>
38+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
39+
/// <returns>The task to await.</returns>
40+
public async System.Threading.Tasks.Task DeleteAsync(CancellationToken cancellationToken = default)
41+
{
42+
this.Method = HttpMethods.DELETE;
43+
await this.SendAsync<ChatMessage>(null, cancellationToken).ConfigureAwait(false);
44+
}
45+
46+
/// <summary>
47+
/// Deletes the specified ChatMessage reference and returns a <see cref="GraphResponse"/> object.
48+
/// </summary>
49+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
50+
/// <returns>The task of <see cref="GraphResponse"/> to await.</returns>
51+
public System.Threading.Tasks.Task<GraphResponse> DeleteResponseAsync(CancellationToken cancellationToken = default)
52+
{
53+
this.Method = HttpMethods.DELETE;
54+
return this.SendAsyncWithGraphResponse(null, cancellationToken);
55+
}
56+
57+
/// <summary>
58+
/// Puts the specified ChatMessage reference.
59+
/// </summary>
60+
/// <param name="id">The ChatMessage reference to update.</param>
61+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
62+
/// <returns>The task to await.</returns>
63+
public System.Threading.Tasks.Task PutAsync(string id, CancellationToken cancellationToken = default)
64+
{
65+
this.Method = HttpMethods.PUT;
66+
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
67+
var referenceRequestBody = new ReferenceRequestBody()
68+
{
69+
ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id)
70+
};
71+
return this.SendAsync(referenceRequestBody, cancellationToken);
72+
}
73+
74+
/// <summary>
75+
/// Puts the specified ChatMessage reference and returns <see cref="GraphResponse"/> object.
76+
/// </summary>
77+
/// <param name="id">The ChatMessage reference to update.</param>
78+
/// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
79+
/// <returns>The task to await of <see cref="GraphResponse"/>.</returns>
80+
public System.Threading.Tasks.Task<GraphResponse> PutResponseAsync(string id, CancellationToken cancellationToken = default)
81+
{
82+
this.Method = HttpMethods.PUT;
83+
this.ContentType = CoreConstants.MimeTypeNames.Application.Json;
84+
var referenceRequestBody = new ReferenceRequestBody()
85+
{
86+
ODataId = string.Format(@"{0}/users/{1}", this.Client.BaseUrl, id)
87+
};
88+
return this.SendAsyncWithGraphResponse(referenceRequestBody, cancellationToken);
89+
}
90+
}
91+
}

0 commit comments

Comments
 (0)