Skip to content

Commit

Permalink
Merge pull request #2732 from microsoftgraph/kiota/v1.0/pipelinebuild…
Browse files Browse the repository at this point in the history
…/169540

Generated  models and request builders
  • Loading branch information
shemogumbe authored Nov 7, 2024
2 parents cce3ac1 + 597a3a3 commit d106e0a
Show file tree
Hide file tree
Showing 109 changed files with 2,269 additions and 303 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ public string DisplayName
get { return BackingStore?.Get<string>("displayName"); }
set { BackingStore?.Set("displayName", value); }
}
#endif
/// <summary>The serviceManagementReference property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public string? ServiceManagementReference
{
get { return BackingStore?.Get<string?>("serviceManagementReference"); }
set { BackingStore?.Set("serviceManagementReference", value); }
}
#nullable restore
#else
public string ServiceManagementReference
{
get { return BackingStore?.Get<string>("serviceManagementReference"); }
set { BackingStore?.Set("serviceManagementReference", value); }
}
#endif
/// <summary>
/// Instantiates a new <see cref="global::Microsoft.Graph.ApplicationTemplates.Item.Instantiate.InstantiatePostRequestBody"/> and sets the default values.
Expand Down Expand Up @@ -64,6 +80,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
return new Dictionary<string, Action<IParseNode>>
{
{ "displayName", n => { DisplayName = n.GetStringValue(); } },
{ "serviceManagementReference", n => { ServiceManagementReference = n.GetStringValue(); } },
};
}
/// <summary>
Expand All @@ -74,6 +91,7 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("displayName", DisplayName);
writer.WriteStringValue("serviceManagementReference", ServiceManagementReference);
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public InstantiateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
{
}
/// <summary>
/// Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.
/// Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/applicationtemplate-instantiate?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.ApplicationServicePrincipal"/></returns>
Expand All @@ -61,7 +61,7 @@ public InstantiateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ApplicationServicePrincipal>(requestInfo, global::Microsoft.Graph.Models.ApplicationServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Add an instance of an application from the Microsoft Entra application gallery into your directory. The application template with ID 8adf8e6e-67b2-4cf2-a259-e3dc5476c621 can be used to add a non-gallery app that you can configure different single-sign on (SSO) modes like SAML SSO and password-based SSO.
/// Add an instance of an application from the Microsoft Entra application gallery into your directory. For non-gallery apps, use an application template with one of the following IDs to configure different single sign-on (SSO) modes like SAML SSO and password-based SSO.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
/// <summary>
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Applications.Delta.DeltaGetResponse"/></returns>
Expand All @@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Applications.Delta.DeltaGetResponse>(requestInfo, global::Microsoft.Graph.Applications.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/application-delta?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Applications.Delta.DeltaResponse"/></returns>
Expand All @@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Applications.Delta.DeltaResponse>(requestInfo, global::Microsoft.Graph.Applications.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
return new global::Microsoft.Graph.Applications.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For details, see Using delta query.
/// Get newly created, updated, or deleted applications without performing a full read of the entire resource collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class DeltaRequestBuilderGetQueryParameters
Expand Down
11 changes: 11 additions & 0 deletions src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
using Microsoft.Graph.Teamwork;
using Microsoft.Graph.TenantRelationships;
using Microsoft.Graph.Users;
using Microsoft.Graph.UsersWithUserPrincipalName;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Store;
using Microsoft.Kiota.Abstractions;
Expand Down Expand Up @@ -520,6 +521,16 @@ public partial class BaseGraphServiceClient : BaseRequestBuilder
if(string.IsNullOrEmpty(appId)) throw new ArgumentNullException(nameof(appId));
return new global::Microsoft.Graph.ServicePrincipalsWithAppId.ServicePrincipalsWithAppIdRequestBuilder(PathParameters, RequestAdapter, appId);
}
/// <summary>
/// Provides operations to manage the collection of user entities.
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.UsersWithUserPrincipalName.UsersWithUserPrincipalNameRequestBuilder"/></returns>
/// <param name="userPrincipalName">Alternate key of user</param>
public global::Microsoft.Graph.UsersWithUserPrincipalName.UsersWithUserPrincipalNameRequestBuilder UsersWithUserPrincipalName(string userPrincipalName)
{
if(string.IsNullOrEmpty(userPrincipalName)) throw new ArgumentNullException(nameof(userPrincipalName));
return new global::Microsoft.Graph.UsersWithUserPrincipalName.UsersWithUserPrincipalNameRequestBuilder(PathParameters, RequestAdapter, userPrincipalName);
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public CallsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.CallCollectionResponse>(requestInfo, global::Microsoft.Graph.Models.CallCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API supports the following PSTN scenarios:
/// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios:
/// Find more info here <see href="https://learn.microsoft.com/graph/api/application-post-calls?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.Call"/></returns>
Expand Down Expand Up @@ -128,7 +128,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
return requestInfo;
}
/// <summary>
/// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You will need to register the calling bot and go through the list of permissions needed as mentioned below. This API supports the following PSTN scenarios:
/// Create call enables your bot to create a new outgoing peer-to-peer or group call, or join an existing meeting. You need to register the calling bot and go through the list of permissions needed. This API supports the following PSTN scenarios:
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public AnswerRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
/// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
/// Find more info here <see href="https://learn.microsoft.com/graph/api/call-answer?view=graph-rest-1.0" />
/// </summary>
/// <param name="body">The request body</param>
Expand All @@ -59,7 +59,7 @@ public async Task PostAsync(global::Microsoft.Graph.Communications.Calls.Item.An
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification will contain the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios, and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
/// Enable a bot to answer an incoming call. The incoming call request can be an invitation from a participant in a group call or a peer-to-peer call. If an invitation to a group call is received, the notification contains the chatInfo and meetingInfo parameters. The bot is expected to answer, reject, or redirect the call before the call times out. The current timeout value is 15 seconds for regular scenarios and 5 seconds for policy-based recording scenarios. This API supports the following PSTN scenarios:
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
{
}
/// <summary>
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0" />
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Models.InviteParticipantsOperation"/></returns>
/// <param name="body">The request body</param>
Expand All @@ -61,7 +61,7 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.InviteParticipantsOperation>(requestInfo, global::Microsoft.Graph.Models.InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
{
}
/// <summary>
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/orgcontact-delta?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Contacts.Delta.DeltaGetResponse"/></returns>
Expand All @@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Contacts.Delta.DeltaGetResponse>(requestInfo, global::Microsoft.Graph.Contacts.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/orgcontact-delta?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="global::Microsoft.Graph.Contacts.Delta.DeltaResponse"/></returns>
Expand All @@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Contacts.Delta.DeltaResponse>(requestInfo, global::Microsoft.Graph.Contacts.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
return new global::Microsoft.Graph.Contacts.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. See change tracking for details.
/// Get newly created, updated, or deleted organizational contacts without having to perform a full read of the entire collection. For more information, see Use delta query to track changes in Microsoft Graph data for details.
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
public partial class DeltaRequestBuilderGetQueryParameters
Expand Down
Loading

0 comments on commit d106e0a

Please sign in to comment.