Skip to content

Commit

Permalink
feat(generation): update request builders and models (#473)
Browse files Browse the repository at this point in the history
Update generated files with build 149875
  • Loading branch information
andrueastman authored May 21, 2024
1 parent 7ccbee9 commit 4319915
Show file tree
Hide file tree
Showing 12,688 changed files with 97,024 additions and 48,968 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 3 additions & 2 deletions src/generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin {
namespace ApiSdk.Admin
{
/// <summary>
/// Provides operations to manage the admin singleton.
/// </summary>
public class AdminRequestBuilder : BaseCliRequestBuilder
public class AdminRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
Expand Down
5 changes: 3 additions & 2 deletions src/generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge {
namespace ApiSdk.Admin.Edge
{
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
public class EdgeRequestBuilder : BaseCliRequestBuilder
public class EdgeRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property edge for admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode {
namespace ApiSdk.Admin.Edge.InternetExplorerMode
{
/// <summary>
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
/// </summary>
public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property internetExplorerMode for admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Count {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item
{
/// <summary>
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
/// </summary>
public class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
public class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete a browserSiteList object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
using System.IO;
using System.Linq;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish {
public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
{
#pragma warning disable CS1591
public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
Expand Down Expand Up @@ -59,9 +62,9 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
return new Dictionary<string, Action<IParseNode>>
{
{"revision", n => { Revision = n.GetStringValue(); } },
{"sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues<BrowserSharedCookie>(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } },
{"sites", n => { Sites = n.GetCollectionOfObjectValues<BrowserSite>(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } },
{ "revision", n => { Revision = n.GetStringValue(); } },
{ "sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues<BrowserSharedCookie>(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } },
{ "sites", n => { Sites = n.GetCollectionOfObjectValues<BrowserSite>(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } },
};
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
{
/// <summary>
/// Provides operations to call the publish method.
/// </summary>
public class PublishRequestBuilder : BaseCliRequestBuilder
public class PublishRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Publish the specified browserSiteList for devices to download.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildPostCommand()
{
var command = new Command("post");
command.Description = "Publish the specified browserSiteList for devices to download.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0";
command.Description = "Publish the specified browserSiteList for devices to download.";
var browserSiteListIdOption = new Option<string>("--browser-site-list-id", description: "The unique identifier of browserSiteList") {
};
browserSiteListIdOption.IsRequired = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Count {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Item {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Item
{
/// <summary>
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
/// </summary>
public class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
public class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete a browserSharedCookie from a browserSiteList.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies
{
/// <summary>
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
/// </summary>
public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
Expand Down Expand Up @@ -194,7 +195,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Count {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Item {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites.Item
{
/// <summary>
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
/// </summary>
public class BrowserSiteItemRequestBuilder : BaseCliRequestBuilder
public class BrowserSiteItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete a browserSite from a browserSiteList.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Sites
{
/// <summary>
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
/// </summary>
public class SitesRequestBuilder : BaseCliRequestBuilder
public class SitesRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the sites property of the microsoft.graph.browserSiteList entity.
Expand Down Expand Up @@ -194,7 +195,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists {
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists
{
/// <summary>
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
/// </summary>
public class SiteListsRequestBuilder : BaseCliRequestBuilder
public class SiteListsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
Expand Down Expand Up @@ -186,7 +187,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Microsoft365Apps.InstallationOptions {
namespace ApiSdk.Admin.Microsoft365Apps.InstallationOptions
{
/// <summary>
/// Provides operations to manage the installationOptions property of the microsoft.graph.adminMicrosoft365Apps entity.
/// </summary>
public class InstallationOptionsRequestBuilder : BaseCliRequestBuilder
public class InstallationOptionsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property installationOptions for admin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.Microsoft365Apps {
namespace ApiSdk.Admin.Microsoft365Apps
{
/// <summary>
/// Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
/// </summary>
public class Microsoft365AppsRequestBuilder : BaseCliRequestBuilder
public class Microsoft365AppsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property microsoft365Apps for admin
Expand Down
5 changes: 3 additions & 2 deletions src/generated/Admin/People/PeopleRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.People {
namespace ApiSdk.Admin.People
{
/// <summary>
/// Provides operations to manage the people property of the microsoft.graph.admin entity.
/// </summary>
public class PeopleRequestBuilder : BaseCliRequestBuilder
public class PeopleRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Retrieve the properties and relationships of a peopleAdminSettings object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.People.ProfileCardProperties.Count {
namespace ApiSdk.Admin.People.ProfileCardProperties.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.People.ProfileCardProperties.Item {
namespace ApiSdk.Admin.People.ProfileCardProperties.Item
{
/// <summary>
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
/// </summary>
public class ProfileCardPropertyItemRequestBuilder : BaseCliRequestBuilder
public class ProfileCardPropertyItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete the profileCardProperty object specified by its directoryPropertyName from the organization&apos;s profile card, and remove any localized customizations for that property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.People.ProfileCardProperties {
namespace ApiSdk.Admin.People.ProfileCardProperties
{
/// <summary>
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
/// </summary>
public class ProfileCardPropertiesRequestBuilder : BaseCliRequestBuilder
public class ProfileCardPropertiesRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the profileCardProperties property of the microsoft.graph.peopleAdminSettings entity.
Expand Down Expand Up @@ -182,7 +183,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
5 changes: 3 additions & 2 deletions src/generated/Admin/People/Pronouns/PronounsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.People.Pronouns {
namespace ApiSdk.Admin.People.Pronouns
{
/// <summary>
/// Provides operations to manage the pronouns property of the microsoft.graph.peopleAdminSettings entity.
/// </summary>
public class PronounsRequestBuilder : BaseCliRequestBuilder
public class PronounsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the properties of the pronounsSettings resource for an organization. For more information on settings to manage pronouns support, see Manage pronouns settings for an organization using the Microsoft Graph API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Count {
namespace ApiSdk.Admin.ServiceAnnouncement.HealthOverviews.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Loading

0 comments on commit 4319915

Please sign in to comment.